Skip to content

Commit

Permalink
test CountryList.get()
Browse files Browse the repository at this point in the history
  • Loading branch information
talavis committed Apr 6, 2019
1 parent edebf11 commit 8c5105a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions backend/tests/test_application.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,12 @@ def test_get_schema():
ds_version = '20171025'
response = requests.get(f'{BASE_URL}/api/schema/dataset/{dataset}/version/{ds_version}')
assert response.status_code == 403


def test_country_list():
'''
Test CountryList.get()
'''
response = requests.get(f'{BASE_URL}/api/countries')
data = json.loads(response.text)
assert len(data['countries']) == 240

0 comments on commit 8c5105a

Please sign in to comment.