diff --git a/test/data/reference.xml b/test/data/articles/reference.xml similarity index 100% rename from test/data/reference.xml rename to test/data/articles/reference.xml diff --git a/test/test_oai_preview.py b/test/test_oai_preview.py index abbce73..9fe1aee 100644 --- a/test/test_oai_preview.py +++ b/test/test_oai_preview.py @@ -11,7 +11,7 @@ class MyTestCase(unittest.TestCase): def test_something(self): real = getWithSwagger.get_final_xml("6383667") real_string = real.parentNode.parentNode.toprettyxml() - ref_location = os.path.join(os.path.dirname(__file__), './data/reference.xml') + ref_location = os.path.join(os.path.dirname(__file__), 'data/articles/reference.xml') with open(ref_location) as f: dom = parse(f) expected_string = dom.toprettyxml()