@@ -156,34 +156,13 @@ def test_sign_in_post_new_user(self):
156156 new_player = Player .objects .get (playername = 'newuser' )
157157
158158 def test_start_game_get (self ):
159- # Check redirect URL
160- self .assertRedirects (
161- response ,
162- reverse ('start_temp' , kwargs = {'player_id' : new_player .id }),
163- fetch_redirect_response = False
164- )
165-
166- def test_start_weather_game_get (self ):
167159 """Test GET request to start_game view"""
168160 response = self .client .get (
169161 reverse ('weather_game' , kwargs = {'player_id' : self .test_player .id })
170162 )
171163 self .assertEqual (response .status_code , 200 )
172164 self .assertTemplateUsed (response , 'weatherGame.html' )
173165
174- def test_calculate_score (self ):
175- """Test the calculate_score utility function"""
176- from .weather_services import calculate_score
177-
178- # Test perfect guess
179- self .assertEqual (calculate_score (75.0 , 75.0 ), 250 )
180-
181- # Test close guess
182- self .assertEqual (calculate_score (75.0 , 73.0 ), 230 )
183-
184- # Test far guess (score should be 0)
185- self .assertEqual (calculate_score (75.0 , 50.0 ), 0 )
186-
187166 def test_game_selection_missing_player_id (self ):
188167 """Test game_selection view without player_id"""
189168 response = self .client .get (reverse ('game_selection' ))
0 commit comments