diff options
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/test_hydrilla_builder.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/test/test_hydrilla_builder.py b/src/test/test_hydrilla_builder.py index 5b11dd9..bee77a2 100644 --- a/src/test/test_hydrilla_builder.py +++ b/src/test/test_hydrilla_builder.py @@ -65,7 +65,7 @@ class CaseSettings: self.contents = default_contents.copy() self.expected_resources = [{ - '$schema': 'https://hydrilla.koszko.org/schemas/api_resource_description-1.schema.json', + '$schema': 'https://hydrilla.koszko.org/schemas/api_resource_description-1.0.1.schema.json', 'source_name': 'hello', 'source_copyright': [{ 'file': 'report.spdx', @@ -91,7 +91,7 @@ class CaseSettings: }], 'generated_by': expected_generated_by }, { - '$schema': 'https://hydrilla.koszko.org/schemas/api_resource_description-1.schema.json', + '$schema': 'https://hydrilla.koszko.org/schemas/api_resource_description-1.0.1.schema.json', 'source_name': 'hello', 'source_copyright': [{ 'file': 'report.spdx', @@ -115,7 +115,7 @@ class CaseSettings: 'generated_by': expected_generated_by }] self.expected_mapping = { - '$schema': 'https://hydrilla.koszko.org/schemas/api_mapping_description-1.schema.json', + '$schema': 'https://hydrilla.koszko.org/schemas/api_mapping_description-1.0.1.schema.json', 'source_name': 'hello', 'source_copyright': [{ 'file': 'report.spdx', @@ -141,7 +141,7 @@ class CaseSettings: 'generated_by': expected_generated_by } self.expected_source_description = { - '$schema': 'https://hydrilla.koszko.org/schemas/api_source_description-1.schema.json', + '$schema': 'https://hydrilla.koszko.org/schemas/api_source_description-1.0.1.schema.json', 'source_name': 'hello', 'source_copyright': [{ 'file': 'report.spdx', @@ -367,7 +367,7 @@ def test_build(tmpdir, prepare_source_example): with open(subdir / '2021.11.10', 'rt') as file_handle: assert json.load(file_handle) == resource_json - hydrilla_util.validator_for('api_resource_description-1.schema.json')\ + hydrilla_util.validator_for('api_resource_description-1.0.1.schema.json')\ .validate(resource_json) # Verify files under 'mapping/' @@ -380,7 +380,7 @@ def test_build(tmpdir, prepare_source_example): with open(subdir / '2021.11.10', 'rt') as file_handle: assert json.load(file_handle) == settings.expected_mapping - hydrilla_util.validator_for('api_mapping_description-1.schema.json')\ + hydrilla_util.validator_for('api_mapping_description-1.0.1.schema.json')\ .validate(settings.expected_mapping) # Verify files under 'source/' @@ -404,7 +404,7 @@ def test_build(tmpdir, prepare_source_example): with open(source_dir / 'hello.json', 'rt') as file_handle: assert json.load(file_handle) == settings.expected_source_description - hydrilla_util.validator_for('api_source_description-1.schema.json')\ + hydrilla_util.validator_for('api_source_description-1.0.1.schema.json')\ .validate(settings.expected_source_description) def modify_index_missing_file(dummy: CaseSettings, obj: dict) -> None: |