diff --git a/pyproject.toml b/pyproject.toml index 32c56e9..2d7bf02 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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" diff --git a/tests/webpub_manifest_parser/odl/test_semantic.py b/tests/webpub_manifest_parser/odl/test_semantic.py index c331007..e170d09 100644 --- a/tests/webpub_manifest_parser/odl/test_semantic.py +++ b/tests/webpub_manifest_parser/odl/test_semantic.py @@ -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",