Skip to content

Commit

Permalink
Happy test passes.
Browse files Browse the repository at this point in the history
The problem here _might be_ related to #30.
  • Loading branch information
skytreader committed Mar 13, 2018
1 parent 15e090e commit dee1a06
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions components/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions tests/components/helpers/grid_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)))

0 comments on commit dee1a06

Please sign in to comment.