mirror of
https://github.com/GSA/notifications-api.git
synced 2026-01-30 14:31:57 -05:00
add GET /dvla_organisation endpoint
This commit is contained in:
0
tests/app/dvla_organisation/__init__.py
Normal file
0
tests/app/dvla_organisation/__init__.py
Normal file
13
tests/app/dvla_organisation/test_rest.py
Normal file
13
tests/app/dvla_organisation/test_rest.py
Normal file
@@ -0,0 +1,13 @@
|
||||
from flask import json
|
||||
|
||||
from tests import create_authorization_header
|
||||
|
||||
|
||||
def test_get_dvla_organisations(client):
|
||||
auth_header = create_authorization_header()
|
||||
|
||||
response = client.get('/dvla_organisations', headers=[auth_header])
|
||||
|
||||
assert response.status_code == 200
|
||||
dvla_organisations = json.loads(response.get_data(as_text=True))
|
||||
assert dvla_organisations == {'001': 'HM Government', '500': 'Land Registry'}
|
||||
Reference in New Issue
Block a user