12rambau / pytest-copie

The pytest plugin for your copier templates 📒
https://pytest-copie.readthedocs.io/en/latest/
MIT License
14 stars 2 forks source link

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

Closed GenevieveBuckley closed 8 months ago

GenevieveBuckley commented 9 months ago

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: https://github.com/12rambau/pytest-copie/blob/bd114eb5202933165f68e0ad98eb8d6ae6e06386/pytest_copie/plugin.py#L63

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