From 95fabe4e5822035b4bc3ede315d8e0996fde7ec7 Mon Sep 17 00:00:00 2001 From: Kevin Zhang Date: Tue, 10 Oct 2023 10:15:53 -0700 Subject: [PATCH] remove validation --- .../schemas/agm_location_change.json | 4 +--- tests/unit/test_agm_location_change.py | 16 ---------------- 2 files changed, 1 insertion(+), 19 deletions(-) diff --git a/src/registry_schemas/schemas/agm_location_change.json b/src/registry_schemas/schemas/agm_location_change.json index 7bab2ca..29c6998 100644 --- a/src/registry_schemas/schemas/agm_location_change.json +++ b/src/registry_schemas/schemas/agm_location_change.json @@ -46,12 +46,10 @@ "maxLength": 40 }, "addressCountry": { - "type": "string", - "enum": ["Canada", "CA"] + "type": "string" }, "addressRegion": { "type": "string", - "enum": ["BC"], "description": "Must be in B.C." }, "postalCode": { diff --git a/tests/unit/test_agm_location_change.py b/tests/unit/test_agm_location_change.py index 08bc207..3211802 100644 --- a/tests/unit/test_agm_location_change.py +++ b/tests/unit/test_agm_location_change.py @@ -43,19 +43,3 @@ def test_validate_no_agm_year(): print(errors) assert not is_valid - -def test_validate_not_BC(): - """Assert that an address region node is BC in the agm location change.""" - alc_json = {'agmLocationChange': AGM_LOCATION_CHANGE} - alc_json['agmLocationChange']['newAgmLocation']['addressRegion'] = 'ON' - - updated_alc_json = alc_json - - is_valid, errors = validate(updated_alc_json, 'agm_location_change') - - if errors: - for err in errors: - print(err.message) - print(errors) - - assert not is_valid