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 test for creating packages and specs #1017

Merged
merged 6 commits into from
Dec 20, 2024
Merged

Conversation

jjnesbitt
Copy link
Collaborator

This PR does several things to allow for this new test, aside from just adding the test itself.

The main thing is all migrations have been squashed into 0001_inital.py (I say squashed, but really this was achieved by deleting all migrations and re-running makemigrations). The reason for this is that when pytest was running these migrations as a part of its DB setup step, the RunPython operations were failing. I originally just commented these out, but I see no real downside in just squashing them all. Since 0001_initial will show as already applied in the DB, nothing will happen, and running ./manage.py migrate core --prune will remove the old migrations from the migration history.

There is more work needed to properly set up testing infrastructure, and I will do that in a separate PR. At the moment, this test doesn't run automatically in CI, I simply wanted to have the test able to be run locally.

mvandenburgh
mvandenburgh previously approved these changes Dec 20, 2024
@jjnesbitt jjnesbitt merged commit 9624c5c into main Dec 20, 2024
15 checks passed
@jjnesbitt jjnesbitt deleted the add-spec-json-tests branch December 20, 2024 16:34
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.

2 participants