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

enable but skip a test

parent 165dd4db
No related branches found
No related tags found
No related merge requests found
...@@ -23,21 +23,21 @@ def test_public_routers(client): ...@@ -23,21 +23,21 @@ def test_public_routers(client):
assert all(r['type'] == 'CORE' for r in response_data) assert all(r['type'] == 'CORE' for r in response_data)
# Temporarily removed until I check IMS - RL @pytest.mark.skip(reason='IMS INTERNAL vs CORE calcualtion is not clear')
# def test_internal_routers(client): def test_internal_routers(client):
# rv = client.get( rv = client.get(
# '/lg/routers/all', '/lg/routers/all',
# headers=DEFAULT_REQUEST_HEADERS) headers=DEFAULT_REQUEST_HEADERS)
# assert rv.status_code == 200 assert rv.status_code == 200
# assert rv.is_json assert rv.is_json
# response_data = json.loads(rv.data.decode('utf-8')) response_data = json.loads(rv.data.decode('utf-8'))
# jsonschema.validate(response_data, LG_ROUTERS_SCHEMA) jsonschema.validate(response_data, LG_ROUTERS_SCHEMA)
#
# assert response_data # test data is non-empty assert response_data # test data is non-empty
#
# # response should contain both public & internal routers # response should contain both public & internal routers
# assert any(r['type'] == 'INTERNAL' for r in response_data) assert any(r['type'] == 'INTERNAL' for r in response_data)
# assert any(r['type'] == 'CORE' for r in response_data) assert any(r['type'] == 'CORE' for r in response_data)
@pytest.mark.parametrize('bad_endpoint', [ @pytest.mark.parametrize('bad_endpoint', [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment