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

💚 Add tests #7

Open
jefftriplett opened this issue Feb 9, 2024 · 2 comments
Open

💚 Add tests #7

jefftriplett opened this issue Feb 9, 2024 · 2 comments
Labels
🏋️ improvement Enhancements or optimizations to existing functionality 🧪 tests Issues or tasks related to writing or improving tests

Comments

@jefftriplett
Copy link

For your tests, I recommend we add tests that run and execute the template and look for a desired output:

  • installs Copier
  • runs Copier against our template
  • installs requirements
  • run pytest
@joshuadavidthomas
Copy link
Member

Thanks for opening this, it was something I wanted to get done before publishing. But I am trying to be better about figuring out when good enough is Good Enough. I wanted to just get it out there so we could at least start taking advantage of it to start to wrangle the config drift.

Currently there are two "competing" Copier pytest plugins:

It does look like at some point they are going to be merged, per a discussion on pytest-copier. Maybe bring in pytest-copier as a dev dependency to start.

@jefftriplett
Copy link
Author

jefftriplett commented Feb 9, 2024

I think we can make it easier than that by running:

pipx run copier --force copy {{src}} {{dest}}

@joshuadavidthomas joshuadavidthomas added 🏋️ improvement Enhancements or optimizations to existing functionality 🧪 tests Issues or tasks related to writing or improving tests and removed enhancement labels May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏋️ improvement Enhancements or optimizations to existing functionality 🧪 tests Issues or tasks related to writing or improving tests
Projects
None yet
Development

No branches or pull requests

2 participants