|
|
|
@ -5,8 +5,8 @@ from jsonschema import validate
|
|
|
|
|
|
|
|
|
|
def test_validate_manifest_against_local_schema():
|
|
|
|
|
"""Ensures that the manifest matches the local schema, for situations where the schema is being changed."""
|
|
|
|
|
json_relative: str = '../sherlock/resources/data.json'
|
|
|
|
|
schema_relative: str = '../sherlock/resources/data.schema.json'
|
|
|
|
|
json_relative: str = '../sherlock_project/resources/data.json'
|
|
|
|
|
schema_relative: str = '../sherlock_project/resources/data.schema.json'
|
|
|
|
|
|
|
|
|
|
json_path: str = os.path.join(os.path.dirname(__file__), json_relative)
|
|
|
|
|
schema_path: str = os.path.join(os.path.dirname(__file__), schema_relative)
|
|
|
|
@ -22,7 +22,7 @@ def test_validate_manifest_against_local_schema():
|
|
|
|
|
@pytest.mark.online
|
|
|
|
|
def test_validate_manifest_against_remote_schema(remote_schema):
|
|
|
|
|
"""Ensures that the manifest matches the remote schema, so as to not unexpectedly break clients."""
|
|
|
|
|
json_relative: str = '../sherlock/resources/data.json'
|
|
|
|
|
json_relative: str = '../sherlock_project/resources/data.json'
|
|
|
|
|
json_path: str = os.path.join(os.path.dirname(__file__), json_relative)
|
|
|
|
|
|
|
|
|
|
with open(json_path, 'r') as f:
|
|
|
|
|