mirror of
https://github.com/GSA/notifications-api.git
synced 2026-01-14 06:31:12 -05:00
Refactor test so that it does not have to change every time we add a new organisation.
This commit is contained in:
@@ -10,4 +10,5 @@ def test_get_dvla_organisations(client):
|
||||
|
||||
assert response.status_code == 200
|
||||
dvla_organisations = json.loads(response.get_data(as_text=True))
|
||||
assert dvla_organisations == {'001': 'HM Government', '500': 'Land Registry'}
|
||||
assert dvla_organisations['001'] == 'HM Government'
|
||||
assert dvla_organisations['500'] == 'Land Registry'
|
||||
|
||||
Reference in New Issue
Block a user