feat(topology): render temporal graph from database
This commit is contained in:
@@ -124,6 +124,23 @@ class TopologyApiQueryTests(unittest.TestCase):
|
||||
},
|
||||
)
|
||||
|
||||
def test_habitat_walkway_terminates_at_power_north_module(self) -> None:
|
||||
response = self.client.get(
|
||||
"/api/v1/bases/guanghan/snapshot?mission=GHC-05"
|
||||
)
|
||||
pressurized = {
|
||||
frozenset((connection["fromPort"], connection["toPort"]))
|
||||
for connection in response.get_json()["connections"]
|
||||
if connection["type"] == "pressurized_passage"
|
||||
}
|
||||
self.assertIn(
|
||||
frozenset((
|
||||
"habitat_1.distal",
|
||||
"power_storage_rack.passage",
|
||||
)),
|
||||
pressurized,
|
||||
)
|
||||
|
||||
def test_layout_contains_members_labels_and_radiators(self) -> None:
|
||||
response = self.client.get(
|
||||
"/api/v1/bases/guanghan/snapshot?mission=GHC-05"
|
||||
|
||||
Reference in New Issue
Block a user