Skip to content

Commit 13e2251

Browse files
committed
added assertion logs
1 parent 7055ba0 commit 13e2251

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

tests/test_project_generation.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@ def test_bake_custom_project(cookies: Cookies, custom_template):
2424
Testing if the projects exists in the tempdir
2525
"""
2626
result = cookies.bake(template=str(custom_template))
27-
28-
assert result.exit_code == 0
29-
assert result.exception is None
30-
27+
assert result.exit_code == 0, "Exited with code 0"
28+
assert result.exception is None, result.exception
3129
assert result.project_path.name == "pybamm_cookie"
32-
assert result.project_path.is_dir()
30+
assert result.project_path.is_dir(), "Project directory not found"

0 commit comments

Comments
 (0)