Skip to content

Commit

Permalink
Updating schema validator unit tests #523
Browse files Browse the repository at this point in the history
  • Loading branch information
tjmadonna committed Nov 13, 2024
1 parent 2471a5f commit 28958a3
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions test/test_schema_validators.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
import test

test.cwd_to_src()

import pytest

from schema import schema_validators
Expand All @@ -12,7 +8,7 @@
('central process', True),
('Lab Process', True),
('lab process', True),
(None, True),
(None, False),
('Multi-Assay Split', False),
('multi-assay split', False),
('', False),
Expand All @@ -38,7 +34,7 @@ def test_validate_single_creation_action(creation_action, succeeds):
)
else:
# Test invalid creation action
with pytest.raises(ValueError):
with pytest.raises((ValueError, KeyError)):
schema_validators.validate_creation_action(
property_key, normalized_entity_type, request,
existing_data_dict, new_data_dict
Expand Down

0 comments on commit 28958a3

Please sign in to comment.