Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Arjun Verma <[email protected]>
  • Loading branch information
santacodes and arjxn-py authored Jun 12, 2024
1 parent e645022 commit bad7af8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/test_on_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ name: pybamm_cookiecutter
on:
workflow_dispatch:
pull_request:
push: [main]
push:
branches:
- main
jobs:
style:
runs-on: ubuntu-latest
Expand Down
4 changes: 2 additions & 2 deletions tests/test_project_generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def test_bake_custom_project(cookies: Cookies, custom_template):
Testing if the projects exists in the tempdir
"""
result = cookies.bake(template=str(custom_template))
assert result.exit_code == 0, "Exited with code 0"
assert result.exit_code == 0, f"Exited with code {result.exit_code}, expected 0"
assert result.exception is None, result.exception
assert result.project_path.name == "pybamm_cookie"
assert result.project_path.is_dir(), "Project directory not found"
assert result.project_path.is_dir(), f"Project directory {result.project_path} not found"

0 comments on commit bad7af8

Please sign in to comment.