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))