Skip to content

Commit 6b225c6

Browse files
committed
removed unit test
1 parent 5cde80f commit 6b225c6

File tree

1 file changed

+17
-15
lines changed

1 file changed

+17
-15
lines changed

Tests/test_setup_game.py

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
from game_map import GameMap
1010
from entity import Actor
1111

12+
1213
class TestSetupGame(unittest.TestCase):
1314
def test_new_game(self):
1415
'''
@@ -20,12 +21,13 @@ def test_new_game(self):
2021
self.assertIsInstance(eng.game_map, GameMap)
2122
self.assertIsInstance(eng.player, Actor)
2223

24+
2325
class TestMainMenu(unittest.TestCase):
2426
def test_on_render(self):
2527
'''
2628
test that the main menu:
2729
draws the background, prints some text
28-
'''
30+
'''
2931
mm = setup_game.MainMenu()
3032
console = tcod.console.Console(width=10, height=10, order='F')
3133

@@ -75,19 +77,19 @@ def test_ev_keydown_n(self):
7577
ret = mm.ev_keydown(event=event)
7678
self.assertIsInstance(ret, MainGameEventHandler)
7779

78-
def test_ev_keydown_c(self):
79-
'''
80-
test that pressing c will return None since we've not
81-
implemented saving and continuing yet
82-
'''
83-
mm = setup_game.MainMenu()
84-
event = tcod.event.KeyDown(
85-
scancode=tcod.event.Scancode.C,
86-
sym=tcod.event.K_c,
87-
mod=tcod.event.Modifier.NONE
88-
)
89-
ret = mm.ev_keydown(event=event)
90-
self.assertIsNone(ret)
80+
# def test_ev_keydown_c(self):
81+
# '''
82+
# test that pressing c will return None since we've not
83+
# implemented saving and continuing yet
84+
# '''
85+
# mm = setup_game.MainMenu()
86+
# event = tcod.event.KeyDown(
87+
# scancode=tcod.event.Scancode.C,
88+
# sym=tcod.event.K_c,
89+
# mod=tcod.event.Modifier.NONE
90+
# )
91+
# ret = mm.ev_keydown(event=event)
92+
# self.assertIsNone(ret)
9193

9294
def test_ev_keydown_other(self):
9395
'''
@@ -100,4 +102,4 @@ def test_ev_keydown_other(self):
100102
mod=tcod.event.Modifier.NONE
101103
)
102104
ret = mm.ev_keydown(event=event)
103-
self.assertIsNone(ret)
105+
self.assertIsNone(ret)

0 commit comments

Comments
 (0)