Skip to content

Commit

Permalink
improve test
Browse files Browse the repository at this point in the history
  • Loading branch information
adnejacobsen committed Sep 7, 2023
1 parent 94014ec commit 120a5ca
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_schema/test_schema_logic.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,5 +366,9 @@ def test_schema_logic_data_spec(schema_080, metadata_examples):
# fetch dictionary example
example_dict = deepcopy(metadata_examples["dictionary_parameters.yml"])

# assert data.spec is not present
with pytest.raises(KeyError):
example_dict["data"]["spec"]

# assert data.spec not required when class === dictionary
jsonschema.validate(instance=example_dict, schema=schema_080)

0 comments on commit 120a5ca

Please sign in to comment.