feat(office): align heartbeat office registrations

This commit is contained in:
冰朔 2026-09-11 20:53:58 +08:00
commit a17d7d678a
19 changed files with 1085 additions and 45 deletions

View file

@ -22,10 +22,10 @@ L = module(LOADER, "hololake_loader_test")
class Tests(unittest.TestCase):
def test_office_board_has_exactly_two_registered_offices(self):
def test_office_board_has_current_registered_offices(self):
board = C.load(C.BOARD)
self.assertEqual([x["office_id"] for x in board["offices"]], ["HB-OFFICE-VIDEO-0001", "HB-OFFICE-HOLOLAKE-0001"])
self.assertEqual(board["office_count"], 2)
self.assertEqual([x["office_id"] for x in board["offices"]], ["HB-OFFICE-VIDEO-0001", "HB-OFFICE-HOLOLAKE-0001", "HB-OFFICE-WEBNOVEL-0001", "HB-OFFICE-LANGUAGE-REASONING-0001", "HB-OFFICE-ZERO-CORE-CONTROL-0001"])
self.assertEqual(board["office_count"], 5)
def test_old_building_is_moved_and_new_building_is_current(self):
building = C.load(C.BUILDING_MAP)