Skip to content
This repository has been archived by the owner on Dec 22, 2021. It is now read-only.

Move common functionality from TestOPDS2Importer to OPDS2Test #19

Merged
merged 1 commit into from
Aug 23, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion tests/test_opds2_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from .test_opds_import import OPDSTest


class TestOPDS2Importer(OPDSTest):
class OPDS2Test(OPDSTest):
@staticmethod
def _get_edition_by_identifier(editions, identifier):
"""Find an edition in the list by its identifier.
Expand Down Expand Up @@ -68,6 +68,8 @@ def _get_work_by_identifier(works, identifier):

return None


class TestOPDS2Importer(OPDS2Test):
def sample_opds(self, filename, file_type="r"):
base_path = os.path.split(__file__)[0]
resource_path = os.path.join(base_path, "files", "opds2")
Expand Down