Closed nicokant closed 1 month ago
I'm simply not aware of this mechanism from copier, can you point me to a documentation so I can understand what needs to be changed from my side ?
I believe that this can be fixed by changing the call yaml.safe_load
to yaml.safe_load_all
at https://github.com/12rambau/pytest-copie/blob/8c74beb10c0ca4fa1e79ae2b48793f81ff0540d7/pytest_copie/plugin.py#L74.
Additional information can be found at https://stackoverflow.com/a/14404103.
I've created the fix at Support for `copier.yaml` files that include other files by davidbrownell · Pull Request #83 · 12rambau/pytest-copie (github.com).
Fixed in #84
Describe the bug Trying to run the test on a project with split configuration does not work.
A simple test produces the following error:
To Reproduce at the start of your
copier.yml
add:then create a new
example.yml
with a questionRun
pytest
test_file.py