Skip to content
Snippets Groups Projects
Commit cf2f2d00 authored by Erik Reid's avatar Erik Reid
Browse files

additional sanity checks

parent 29dd0457
No related branches found
No related tags found
No related merge requests found
...@@ -415,4 +415,6 @@ def test_ip_services(client): ...@@ -415,4 +415,6 @@ def test_ip_services(client):
response_data = json.loads(rv.data.decode('utf-8')) response_data = json.loads(rv.data.decode('utf-8'))
jsonschema.validate(response_data, IP_SERVICES_LIST_SCHEMA) jsonschema.validate(response_data, IP_SERVICES_LIST_SCHEMA)
assert response_data # test data is non-empty # sanity that there are some non-trivial elements in test data
assert any(len(_x['peerings']) > 0 for _x in response_data)
assert any(len(_x['services']) > 0 for _x in response_data)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment