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

pep8

parent eaf6c5b7
Branches
Tags
No related merge requests found
......@@ -337,7 +337,10 @@ WHERE
print(row)
return {
'equipment name': row['router_name'],
'type': 'INTERNAL' if row['pop_name'] in INTERNAL_POP_NAMES else 'CORE',
'type':
'INTERNAL'
if row['pop_name'] in INTERNAL_POP_NAMES
else 'CORE',
'pop': {
'name': row['pop_name'],
'city': row['pop_city'],
......
import json
import re
from flask import Blueprint, jsonify, Response
......
......@@ -66,6 +66,7 @@ def test_public_routers(client):
# no internal routers should be present
assert all(r['type'] == 'CORE' for r in response_data)
def test_internal_routers(client):
rv = client.get(
'/lg/routers/all',
......@@ -82,7 +83,6 @@ def test_internal_routers(client):
assert any(r['type'] == 'CORE' for r in response_data)
@pytest.mark.parametrize('bad_endpoint', [
# bad access param keyword
......@@ -99,7 +99,7 @@ def test_internal_routers(client):
'/lg/',
'/lg/something'
])
def test_internal_routers(client, bad_endpoint):
def test_bad_endpoints(client, bad_endpoint):
rv = client.get(
bad_endpoint,
headers=DEFAULT_REQUEST_HEADERS)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment