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