fix(topology): repair controls navigation and details
This commit is contained in:
@@ -181,6 +181,25 @@ class TopologyApiQueryTests(unittest.TestCase):
|
||||
},
|
||||
)
|
||||
|
||||
def test_components_include_introduction_mission_and_time(self) -> None:
|
||||
response = self.client.get(
|
||||
"/api/v1/bases/guanghan/snapshot?mission=GHC-05"
|
||||
)
|
||||
components = {
|
||||
component["key"]: component
|
||||
for component in response.get_json()["components"]
|
||||
}
|
||||
self.assertEqual(
|
||||
components["core_cabin"]["introducedMission"],
|
||||
"GHC-01",
|
||||
)
|
||||
self.assertEqual(
|
||||
datetime.fromisoformat(
|
||||
components["core_cabin"]["introducedAt"]
|
||||
).astimezone(timezone.utc),
|
||||
datetime.fromisoformat("2024-06-16T07:23:00+00:00"),
|
||||
)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
|
||||
Reference in New Issue
Block a user