feat(topology): render temporal graph from database

This commit is contained in:
2026-07-09 22:04:31 +08:00
parent 0dbcd3086e
commit 6ff18623e0
5 changed files with 430 additions and 451 deletions
+17
View File
@@ -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"