Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pytest-copie does not recognise copier.yml, only copier.yaml #50

Closed
GenevieveBuckley opened this issue Oct 27, 2023 · 0 comments · Fixed by #51
Closed

pytest-copie does not recognise copier.yml, only copier.yaml #50

GenevieveBuckley opened this issue Oct 27, 2023 · 0 comments · Fixed by #51

Comments

@GenevieveBuckley
Copy link
Contributor

Describe the bug
The copier library accepts as input configuration files copier.yml or copier.yaml. However, pytest-copie only recognises copier.yaml, because it is hard-coded on this line:

copier_yaml = template_dir / "copier.yaml"

I think if copier accepts this as input, pytest-copie should do too.

To Reproduce
Steps to reproduce the behavior:

  1. Take any currently working repository that pytest-copie can run on
  2. Change the file extension of the config from .yaml to .yml, eg: mv copier.yaml copier.yml
  3. Run pytest and see the error caused by pytest-copie
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant