Skip to content

Commit

Permalink
Fixing stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
PonteIneptique committed Aug 24, 2024
1 parent 568bc5d commit 4345b6d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tests/test_catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@
from dapitains.metadata.classes import *


local_dir = os.path.join(os.path.dirname(__file__), "catalog")
local_dir = os.path.join(os.path.dirname(__file__))


def test_ingestion():
tree, _ = ingest_catalog(f"{local_dir}/example-collection.xml")
tree, _ = ingest_catalog(f"{local_dir}/catalog/example-collection.xml")

assert tree.objects == {
"https://foo.bar/default": Collection(
Expand Down Expand Up @@ -43,7 +44,7 @@ def test_ingestion():
DublinCore(term='language', value='en', language=None)
],
extension=[], resource=True,
filepath=os.path.abspath("tei/multiple_tree.xml")
filepath=os.path.abspath(f"{local_dir}/tei/multiple_tree.xml")
),
"https://foo.bar/text": Collection(
identifier='https://foo.bar/text',
Expand All @@ -56,6 +57,6 @@ def test_ingestion():
],
extension=[],
resource=True,
filepath=os.path.abspath("tei/base_tei.xml")
filepath=os.path.abspath(f"{local_dir}/tei/base_tei.xml")
)
}

0 comments on commit 4345b6d

Please sign in to comment.