Skip to content

Commit 0381343

Browse files
Update conftest.py
1 parent af021e0 commit 0381343

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

tests/unit/conftest.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1+
import pathlib
2+
13
import pytest
24

35
from ted_sws.notice_transformer.adapters.rml_mapper import RMLMapperABC, SerializationFormat as RMLSerializationFormat
6+
from tests import TEST_DATA_PATH
47
from tests.fakes.fake_rml_mapper import FakeRMLMapper
58

69

@@ -9,3 +12,18 @@ def fake_rml_mapper() -> RMLMapperABC:
912
rml_mapper = FakeRMLMapper()
1013
rml_mapper.set_serialization_format(RMLSerializationFormat.TURTLE)
1114
return rml_mapper
15+
16+
17+
@pytest.fixture
18+
def rdf_file_path() -> pathlib.Path:
19+
return TEST_DATA_PATH / "example.ttl"
20+
21+
22+
@pytest.fixture
23+
def rdf_content(rdf_file_path) -> str:
24+
return rdf_file_path.read_text(encoding="utf-8")
25+
26+
27+
@pytest.fixture
28+
def organisation_cet_uri() -> str:
29+
return "http://data.europa.eu/a4g/ontology#Organisation"

0 commit comments

Comments
 (0)