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
Branches
Tags
No related merge requests found
...@@ -30,7 +30,8 @@ class Service(BaseModel): ...@@ -30,7 +30,8 @@ class Service(BaseModel):
name: str name: str
type: str type: str
pops: list[str] pops: list[str]
equipment: list[str] # TODO: temporarily removed for simplicity (first map POC is only POP-based)
# equipment: list[str]
overlays: Overlays overlays: Overlays
...@@ -132,7 +133,8 @@ def _services(service_type: str | None = None) -> Generator[Service]: ...@@ -132,7 +133,8 @@ def _services(service_type: str | None = None) -> Generator[Service]:
name = _s['name'], name = _s['name'],
type = _s['service_type'], type = _s['service_type'],
pops = pops, pops = pops,
equipment = equipment, # TODO: temporarily removed for simplicity (first map POC is only POP-based)
# equipment = equipment,
overlays = overlays, overlays = overlays,
) )
......
...@@ -74,6 +74,7 @@ def test_get_services(client, service_type): ...@@ -74,6 +74,7 @@ def test_get_services(client, service_type):
assert service_list.services, 'test data should not be empty' assert service_list.services, 'test data should not be empty'
assert all(s.type == service_type for s in service_list.services) assert all(s.type == service_type for s in service_list.services)
def test_get_unknown_service_type(client): def test_get_unknown_service_type(client):
rv = client.get(f"/map/services/BOGUS_SERVICE_TYPE") rv = client.get(f"/map/services/BOGUS_SERVICE_TYPE")
assert rv.status_code == 404 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