Skip to content

Commit 8dc604d

Browse files
authored
Update to tests.py
1 parent a7d3c12 commit 8dc604d

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

guessquest/games/tests.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -178,19 +178,6 @@ def test_start_game_get(self):
178178
self.assertEqual(response.status_code, 200)
179179
self.assertTemplateUsed(response, 'weather_game.html')
180180

181-
def test_calculate_score(self):
182-
"""Test the calculate_score utility function"""
183-
from .views import calculate_score
184-
185-
# Test perfect guess
186-
self.assertEqual(calculate_score(75.0, 75.0), 250)
187-
188-
# Test close guess
189-
self.assertEqual(calculate_score(75.0, 73.0), 230)
190-
191-
# Test far guess (score should be 0)
192-
self.assertEqual(calculate_score(75.0, 50.0), 0)
193-
194181
def test_game_selection_missing_player_id(self):
195182
"""Test game_selection view without player_id"""
196183
response = self.client.get(reverse('game_selection'))

0 commit comments

Comments
 (0)