Skip to content

Commit 770a540

Browse files
committed
fix: Include all tests in pytest
1 parent 8a67821 commit 770a540

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

game/tests/cli/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def test_from_arg():
1717

1818
def test_from_file():
1919
game_map = Map()
20-
game_map.load_from_file("game/tests/test_map.txt")
20+
game_map.load_from_file("game/tests/cli/test_map.txt")
2121

2222
assert game_map.map == [
2323
[False for _ in range(5)],

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ packages = ["game"]
2222
test = ["pytest"]
2323

2424
[tool.pytest.ini_options]
25-
testpaths = ["game/tests/*"]
25+
testpaths = ["game/tests/*", "game/tests/cli/*"]
2626

2727
[project.scripts]
2828
game = "game.main:app"

0 commit comments

Comments
 (0)