Skip to content

Commit

Permalink
Update tests and fix environment.yml.bak existing (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelzw authored Feb 1, 2024
1 parent c1ff6ed commit b9a29bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions copier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,6 @@ description:

_tasks:
- sed -i.bak "s/TOOL_VERSION/$(micromamba search -c conda-forge {{ conda_package }} --json | jq -r '.result.pkgs[0].version')/g" environment.yml
- rm environment.yml.bak
- git init
- git branch -M main
2 changes: 2 additions & 0 deletions tests/test_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ def test_generation(generate_project):

assert (path / ".pre-commit-hooks.yaml").exists()
assert (path / ".copier-answers.yml").exists()
assert (path / "environment.yml").exists()
assert not (path / "environment.yml.bak").exists()


def test_generation_incorrect_params(generate_project):
Expand Down

0 comments on commit b9a29bd

Please sign in to comment.