Skip to content

Commit

Permalink
OPDS2 duration import test
Browse files Browse the repository at this point in the history
  • Loading branch information
RishiDiwanTT committed Oct 24, 2023
1 parent 141db89 commit 7c801cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/core/files/opds2/feed.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"title": "Moby-Dick",
"author": "Herman Melville",
"identifier": "urn:isbn:978-3-16-148410-0",
"duration": 100.2,
"language": "en",
"publisher": {
"name": "Test Publisher"
Expand Down
1 change: 1 addition & 0 deletions tests/core/test_opds2_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ def test_opds2_importer_correctly_imports_valid_opds2_feed(
assert "eng" == moby_dick_edition.language
assert EditionConstants.BOOK_MEDIUM == moby_dick_edition.medium
assert "Herman Melville" == moby_dick_edition.author
assert moby_dick_edition.duration == 100.2

assert 1 == len(moby_dick_edition.author_contributors)
[moby_dick_author] = moby_dick_edition.author_contributors
Expand Down

0 comments on commit 7c801cd

Please sign in to comment.