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

removed equipment from service response, temporarily (for clarity)

parent a870a0cb
No related branches found
No related tags found
No related merge requests found
......@@ -30,7 +30,8 @@ class Service(BaseModel):
name: str
type: str
pops: list[str]
equipment: list[str]
# TODO: temporarily removed for simplicity (first map POC is only POP-based)
# equipment: list[str]
overlays: Overlays
......@@ -132,7 +133,8 @@ def _services(service_type: str | None = None) -> Generator[Service]:
name = _s['name'],
type = _s['service_type'],
pops = pops,
equipment = equipment,
# TODO: temporarily removed for simplicity (first map POC is only POP-based)
# equipment = equipment,
overlays = overlays,
)
......
......@@ -74,6 +74,7 @@ def test_get_services(client, service_type):
assert service_list.services, 'test data should not be empty'
assert all(s.type == service_type for s in service_list.services)
def test_get_unknown_service_type(client):
rv = client.get(f"/map/services/BOGUS_SERVICE_TYPE")
assert rv.status_code == 404
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment