diff --git a/components/core.py b/components/core.py index 858e759..589db68 100644 --- a/components/core.py +++ b/components/core.py @@ -190,9 +190,6 @@ def __init__(self, game_config, model): """ Creates an instance of GameScreen. DO NOT instantiate images/surfaces here. Put instantiation code in setup() method. - - @param screen_dimensions - An iterable with at least two elements. See GameConfig. """ screen_dimensions = game_config.get_config_val("window_size") self.config = game_config diff --git a/tests/components/helpers/grid_tests.py b/tests/components/helpers/grid_tests.py index daa7052..f28664f 100644 --- a/tests/components/helpers/grid_tests.py +++ b/tests/components/helpers/grid_tests.py @@ -76,7 +76,7 @@ def test_draw(self, draw_rect): self.assertTrue(draw_rect.called) def test_get_clicked_cell_squarefull(self): - square_config = GameConfig(window_size=(10, 10)) + square_config = GameConfig(window_size=(80, 80)) square_screen = GameScreen(square_config, GameModel()) square_grid = QuadraticGrid(8, 8) - self.assertEqual((3, 7), square_grid.get_clicked_cell(square_screen, (36, 74))) + self.assertEqual((7, 3), square_grid.get_clicked_cell(square_screen, (36, 74)))