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

basic unit test for /poller/gws/direct

parent c5549035
No related branches found
No related tags found
No related merge requests found
......@@ -50,3 +50,16 @@ def test_eumetsat_multicast(mocker, client):
jsonschema.validate(
response_data, poller.MULTICAST_SUBSCRIPTION_LIST_SCHEMA)
assert response_data, "the subscription list shouldn't be empty"
def test_gws_direct(client):
rv = client.get(
'/poller/gws/direct',
headers=DEFAULT_REQUEST_HEADERS)
assert rv.status_code == 200
assert rv.is_json
response_data = json.loads(rv.data.decode('utf-8'))
jsonschema.validate(
response_data, poller.GWS_DIRECT_DATA_SCHEMA)
assert response_data, "the subscription list shouldn't be empty"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment