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

Fix the cookiecutter's tests #129

Merged
merged 2 commits into from
Jul 11, 2023
Merged

Fix the cookiecutter's tests #129

merged 2 commits into from
Jul 11, 2023

Conversation

seanh
Copy link
Contributor

@seanh seanh commented Jul 8, 2023

Oops: the DB option is called postgres not db, and there's no services option.

Oops: the DB option is called `postgres` not `db`, and there's no
`services` option.
@seanh seanh requested review from marcospri and jon-betts July 8, 2023 13:24
Copy link
Contributor

@jon-betts jon-betts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This works, but it worked in main too, but I suppose it wasn't testing what we thought it was. It seems we ignore invalid / unexpected arguments, so this was setting up the templated test environments incorrectly.

This also includes some extra fixes discovered while debugging some local issues on my machine.

@seanh
Copy link
Contributor Author

seanh commented Jul 11, 2023

This works, but it worked in main too, but I suppose it wasn't testing what we thought it was. It seems we ignore invalid / unexpected arguments, so this was setting up the templated test environments incorrectly.

I think you can use a pre_gen_project.py hook to validate options, created an issue for that: #142

This also stops if make requirements fails, where we would previously
continue on, which makes debugging a bit harder.
@seanh seanh merged commit c97b076 into main Jul 11, 2023
4 checks passed
@seanh seanh deleted the fix-tests branch July 11, 2023 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants