From f91d13b1a14eeaa56ca6f148071b3b40415e1a94 Mon Sep 17 00:00:00 2001 From: Viacheslav Bessonov Date: Mon, 23 Aug 2021 18:35:46 +0500 Subject: [PATCH] Move common functionality from TestOPDS2Importer to OPDS2Test --- tests/test_opds2_import.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_opds2_import.py b/tests/test_opds2_import.py index f04ff2b0..0c6716e6 100644 --- a/tests/test_opds2_import.py +++ b/tests/test_opds2_import.py @@ -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. @@ -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")