File tree Expand file tree Collapse file tree 6 files changed +6
-5
lines changed
Expand file tree Collapse file tree 6 files changed +6
-5
lines changed File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change 11from game .utils .map import Map
22from game .utils .tui import prepare_display
3+ from game .utils .cli import parse_multiple_value_argument_from_str
34
45
56def test_from_arg ():
@@ -17,7 +18,7 @@ def test_from_arg():
1718
1819def test_from_file ():
1920 game_map = Map ()
20- game_map .load_from_file ("game/tests/test_map.txt" )
21+ game_map .load_from_file ("game/tests/test_cli/ test_map.txt" )
2122
2223 assert game_map .map == [
2324 [False for _ in range (5 )],
@@ -33,18 +34,18 @@ def test_from_arg_and_from_file_are_identical():
3334 game_map_from_arg .load_from_str ("..... .### # ....# ." )
3435
3536 game_map_from_file = Map ()
36- game_map_from_file .load_from_file ("game/tests/cli /test_map.txt" )
37+ game_map_from_file .load_from_file ("game/tests/test_cli /test_map.txt" )
3738
3839 assert game_map_from_arg .map == game_map_from_file .map
3940
4041
4142def test_tui ():
4243 game_map = Map ()
43- game_map .load_from_file ("game/tests/cli /test_map.txt" )
44+ game_map .load_from_file ("game/tests/test_cli /test_map.txt" )
4445
4546 display = prepare_display (game_map , state = {"paused" : False })
4647
47- expected_display = open ("game/tests/cli /expected_display.txt" ).read ()
48+ expected_display = open ("game/tests/test_cli /expected_display.txt" ).read ()
4849
4950 assert display == expected_display
5051
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ packages = ["game"]
2222test = [" pytest" ]
2323
2424[tool .pytest .ini_options ]
25- testpaths = [" game/tests/* " ]
25+ testpaths = [" game/tests" ]
2626
2727[project .scripts ]
2828game = " game.main:app"
You can’t perform that action at this time.
0 commit comments