From 28958a3beb2ff45b875f3e12289eefca92425046 Mon Sep 17 00:00:00 2001 From: Tyler Madonna Date: Wed, 13 Nov 2024 10:47:20 -0500 Subject: [PATCH] Updating schema validator unit tests #523 --- test/test_schema_validators.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/test/test_schema_validators.py b/test/test_schema_validators.py index 9d4b062e..e9d3c443 100644 --- a/test/test_schema_validators.py +++ b/test/test_schema_validators.py @@ -1,7 +1,3 @@ -import test - -test.cwd_to_src() - import pytest from schema import schema_validators @@ -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), @@ -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