From 65eb5685f7f3e33255c774897c793fca2fb03d67 Mon Sep 17 00:00:00 2001 From: dev-bot Date: Tue, 17 Mar 2026 23:07:22 +0000 Subject: [PATCH] test(lobby): lock scoreboard ownership boundary --- lobby/tests.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lobby/tests.py b/lobby/tests.py index 0ed6cc5..2b6a703 100644 --- a/lobby/tests.py +++ b/lobby/tests.py @@ -99,6 +99,15 @@ class LobbyGameplayExtractionTests(TestCase): self.assertNotIn("build_finish_game_response", source) self.assertNotIn("build_finish_game_phase_event", source) + def test_reveal_scoreboard_view_source_stays_http_thin(self): + source = inspect.getsource(inspect.unwrap(lobby_views.reveal_scoreboard)) + + self.assertIn("transition = _promote_reveal_to_scoreboard(session)", source) + self.assertNotIn("Player.objects.filter(session=session)", source) + self.assertNotIn("ScoreEvent.objects.filter", source) + self.assertNotIn("build_reveal_scoreboard_response", source) + self.assertNotIn("build_scoreboard_phase_event", source) + def test_session_detail_view_source_stays_http_thin(self): source = inspect.getsource(inspect.unwrap(lobby_views.session_detail))