Skip to content
This repository has been archived by the owner on Nov 21, 2024. It is now read-only.

Commit

Permalink
Lint files
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathangreen committed Jan 17, 2024
1 parent 0063d38 commit a99ea94
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 22 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
requires = ["poetry-core>=1.0.0"]

[tool.isort]
profile = "black"
Expand Down
50 changes: 29 additions & 21 deletions tests/webpub_manifest_parser/odl/test_semantic.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,28 +187,36 @@ class ODLSemanticAnalyzerTest(AnalyzerTest):
],
),
(
"when_publication_does_not_contain_neither_licenses_nor_oa_link",
ODLFeed(
metadata=OPDS2FeedMetadata(title="test"),
links=LinkList(
[
Link(
href="http://example.com",
rels=[LinkRelationsRegistry.SELF.key],
)
]
),
publications=CollectionList(
[
ODLPublication(
metadata=PresentationMetadata(title="Publication 1"),
links=LinkList([Link(href="http://example.com", rels=[OPDS2LinkRelationsRegistry.OPEN_ACCESS.key])]),
)
]
),
"when_publication_does_not_contain_neither_licenses_nor_oa_link",
ODLFeed(
metadata=OPDS2FeedMetadata(title="test"),
links=LinkList(
[
Link(
href="http://example.com",
rels=[LinkRelationsRegistry.SELF.key],
)
]
),
[
],
publications=CollectionList(
[
ODLPublication(
metadata=PresentationMetadata(title="Publication 1"),
links=LinkList(
[
Link(
href="http://example.com",
rels=[
OPDS2LinkRelationsRegistry.OPEN_ACCESS.key
],
)
]
),
)
]
),
),
[],
),
(
"when_license_does_not_contain_self_link_and_borrow_link",
Expand Down

0 comments on commit a99ea94

Please sign in to comment.