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

Commit

Permalink
Move common functionality from TestOPDS2Importer to OPDS2Test (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
vbessonov authored Aug 23, 2021
1 parent ce520ba commit 2b80e9c
Showing 1 changed file with 3 additions and 1 deletion.
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

0 comments on commit 2b80e9c

Please sign in to comment.