Revert "Revert "add DVLA organisations to API""

This commit is contained in:
Imdad Ahad
2017-04-21 12:39:42 +01:00
committed by Chris Hill-Scott
parent 4c764dcc80
commit c4fac1d937
13 changed files with 139 additions and 79 deletions

View File

View 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'}