-
Notifications
You must be signed in to change notification settings - Fork 1
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
Ticket 131: seed denied domains table #132
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should check the full list was inserted, either by referencing the list in alembic script or copying the expected seed data and comparing it against a select all
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it.
@@ -112,16 +112,169 @@ def test_denied_domains_data_seed(alembic_runner: MigrationContext, alembic_engi | |||
# Migrate up to, but not including this new migration | |||
alembic_runner.migrate_up_before("d6e4a13fbebd") | |||
|
|||
denied_domains_inserted = [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you alphabetize this list? It'll make it easier to see like-domains and know where to put new ones, rather than always tacking to the end of the list, which makes it more likely to have merge conflicts.
If you're using VSCode, there's a handy Sort Lines Ascending command for just this sort (sorry) of thing:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good on my end. Not sure if @jcadam14 had any open questions.
Nope, I talked with Nargis in MM about adding a full check in the pytest to verify all domains made it in the insert so we're good! |
closes #131