Skip to content

Commit

Permalink
remove validation
Browse files Browse the repository at this point in the history
  • Loading branch information
kzdev420 committed Oct 10, 2023
1 parent c1731bd commit 95fabe4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 19 deletions.
4 changes: 1 addition & 3 deletions src/registry_schemas/schemas/agm_location_change.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
16 changes: 0 additions & 16 deletions tests/unit/test_agm_location_change.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 95fabe4

Please sign in to comment.