-
Notifications
You must be signed in to change notification settings - Fork 28
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-cookies fails on Windows (YAML config erroneous) #62
Comments
Simplest solution that avoids adding dependencies is to dump the config as JSON, since YAML is a superset of JSON. |
I think this is an issue with poyo, which is used by cookiecutter < 2. |
This was referenced Jul 4, 2022
I'm experiencing this as well when running the pyramid-cookiecutter-starter tests on windows. Is there a workaround I can use? |
Try my fork as described in #41 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The YAML config is built by simple string formatting in https://github.com/hackebrot/pytest-cookies/blob/master/src/pytest_cookies/plugin.py
But since on Windows, filepaths use backslashes, this makes an invalid YAML file with wrong escape sequences :
So this config should be dumped with a proper YAML parser.
For some reason, all works with old cookiecutter==1.7.2, probably the parser it uses is different
The text was updated successfully, but these errors were encountered: