Skip to content

Commit bad7af8

Browse files
santacodesarjxn-py
andauthored
Apply suggestions from code review
Co-authored-by: Arjun Verma <[email protected]>
1 parent e645022 commit bad7af8

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/test_on_push.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ name: pybamm_cookiecutter
33
on:
44
workflow_dispatch:
55
pull_request:
6-
push: [main]
6+
push:
7+
branches:
8+
- main
79
jobs:
810
style:
911
runs-on: ubuntu-latest

tests/test_project_generation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +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-
assert result.exit_code == 0, "Exited with code 0"
27+
assert result.exit_code == 0, f"Exited with code {result.exit_code}, expected 0"
2828
assert result.exception is None, result.exception
2929
assert result.project_path.name == "pybamm_cookie"
30-
assert result.project_path.is_dir(), "Project directory not found"
30+
assert result.project_path.is_dir(), f"Project directory {result.project_path} not found"

0 commit comments

Comments
 (0)