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

Restore testing #3

Closed
astrojuanlu opened this issue Apr 1, 2023 · 2 comments
Closed

Restore testing #3

astrojuanlu opened this issue Apr 1, 2023 · 2 comments
Labels
help wanted Extra attention is needed

Comments

@astrojuanlu
Copy link
Owner

Is there anything similar to https://pypi.org/project/pytest-cookies/ but for Copier?

@astrojuanlu astrojuanlu pinned this issue Apr 1, 2023
@astrojuanlu astrojuanlu added the help wanted Extra attention is needed label Apr 1, 2023
@astrojuanlu
Copy link
Owner Author

To test #8 I did the following manually:

* make a test project using `copier template test`

* `validate-pyproject test/pyproject.toml`

Would it be valuable to have some sort of automated test that did something like this? More generally, should there be something to ensure that the baked test project adheres to the linting standards that it comes with. e.g. maybe by running the pre-commit hooks against that project? (If you'd like to do validate-pyproject as a pre-commit hook, that's possible also.)

(Posted by @AntonyMilneQB in gh-9)

@astrojuanlu
Copy link
Owner Author

There's a couple of pytest fixtures now we can use: pytest-copier and pytest-copie (not a typo, see noirbizarre/pytest-copier#10)

pytest-copie seems to be more backwards compatible with pytest-cookie.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant