Commit graph

13 commits

Author SHA1 Message Date
Lars Kiesow
3371c2882f
Use Unittest Asserts
This patch switches to the assert statements provided by Python's unit
test framework to assure the statements are always executed and produce
proper error messages in case of test failures.
2020-01-29 00:10:33 +01:00
Carey Metcalfe
e771488854 Add support for html summaries for Atom feeds
- Add a test
 - Update existing test
 - Make flake8 happy
2019-11-25 23:18:41 -05:00
Lars Kiesow
c6c7165a97
Add Source Element to Feed Entries
This patch implements the source element for feed entries/items. Note
that only the set of RSS elements (URL and title) are implemented right
now. ATOM supports additional elements which cannot be set at the
moment.

This fixes #79
2018-08-12 21:07:47 +02:00
Lars Kiesow
7a053dc74c
Consistent method naming
This patch renames the entries `pubdate` method to `pubDate` to be
consistent with the feed's method as well as the documentation. Note
that for now, the old method is preserved as well but is marked as
deprecated and to be removed.

This fixes #71
2018-04-29 21:11:30 +02:00
Lars Kiesow
9026316391
Use isort to sort import
…so that they all have the same structure.
2018-03-04 20:05:29 +01:00
Lars Kiesow
9f05e108b5
Merge branch 'issue-60-guid-permalink-attr' 2017-10-14 21:24:09 +02:00
Lars Kiesow
ebb44be9b2 Make Author's Name Optional
RSS does not require an author's name, but only his email address. This
patch makes the name optional for RSS. Note that the name is required in
ATOM feeds and an author will not be included if the name is missing.

This fixes #59
2017-10-14 19:58:37 +02:00
Lars Kiesow
281765fefd
Add Permalink Attribute To RSS GUID
The `isPermalink` attribute can now be set using the `guid()` function
for entries. Note that this only effects RSS feeds. This patch does not
change Atom feeds in any way.

This fixes #60
2017-10-14 19:51:02 +02:00
Lars Kiesow
4c763dc832
Added more tests
Signed-off-by: Lars Kiesow <lkiesow@uos.de>
2017-02-05 22:46:43 +01:00
Lars Kiesow
4314475bfb
Extended test Coverage
This patch extends the test coverage of the unit tests. It also enables
python-coverage and coveralls to track unit test coverage.

There are some additional minor issue fixed discovered during the test
creation.

Signed-off-by: Lars Kiesow <lkiesow@uos.de>
2017-02-05 22:03:02 +01:00
Lars Kiesow
444855a248
Flake8 Compatibility
This patch makes the feedgen flake8 compatible, fixing some minor issues
along the way. Most noticeable, this switches from tabs to spaces.

Signed-off-by: Lars Kiesow <lkiesow@uos.de>
2017-01-05 00:39:33 +01:00
Lars Kiesow
a9f561bff9
Added unit tests for Itunes extension
Signed-off-by: Lars Kiesow <lkiesow@uos.de>
2016-09-04 17:49:07 +02:00
Lars Kiesow
44cd92837d
Update distribution setup
Signed-off-by: Lars Kiesow <lkiesow@uos.de>
2016-08-29 00:33:10 +02:00
Renamed from feedgen/tests/test_entry.py (Browse further)