Skip to content

Commit d9b084c

Browse files
committed
tests fixes
1 parent c68bd44 commit d9b084c

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

tests/e2e/notice_metadata_processor/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from ted_sws.core.model.manifestation import RDFManifestation
44
from ted_sws.core.model.notice import NoticeStatus
55
from ted_sws.core.model.transform import FileResource, SPARQLTestSuite, MetadataConstraints, TransformationRuleSet, \
6-
SHACLTestSuite, TransformationTestData, MappingSuite
6+
SHACLTestSuite, TransformationTestData, MappingSuite, MetadataConstraintsStandardForm
77
from tests import TEST_DATA_PATH
88

99

@@ -189,7 +189,7 @@ def sparql_test_suite_with_invalid_query(invalid_sparql_file):
189189

190190
@pytest.fixture
191191
def dummy_mapping_suite(sparql_test_suite, shacl_test_suite):
192-
metadata_constrains = MetadataConstraints(constraints=dict())
192+
metadata_constrains = MetadataConstraints(constraints=MetadataConstraintsStandardForm(eforms_subtype=[29],min_xsd_version=["R2.0.9.S01.E01"]))
193193
file_name = "fake_title.txt"
194194
empty_file_resource = FileResource(file_name=file_name, file_content="no content here", original_name=file_name)
195195
transformation_rule_set = TransformationRuleSet(resources=[empty_file_resource],

tests/features/notice_validator/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from ted_sws.core.model.manifestation import RDFManifestation
44
from ted_sws.core.model.notice import NoticeStatus
55
from ted_sws.core.model.transform import FileResource, SPARQLTestSuite, MetadataConstraints, TransformationRuleSet, \
6-
SHACLTestSuite, TransformationTestData, MappingSuite
6+
SHACLTestSuite, TransformationTestData, MappingSuite, MetadataConstraintsStandardForm
77
from tests import TEST_DATA_PATH
88

99

0 commit comments

Comments
 (0)