-
Notifications
You must be signed in to change notification settings - Fork 363
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Correct migration tests to not leave db in half migrated state
This change fixes the migration tests for the streamlining of annotation keys. The previous test would leave the db in a half migrated state and then following tests would fail due to the rest of the migrations beeing missing. It may make sense to move the begin and after part of the migration test into a helper to make this a proper workflow for every migration test since we must make sure we start the test before the migration we`d like to test. Then just apply one single migration(and not all migrations), then expect certain behaviour and lastly complete the migration to not destroy the DB. This should be in a helper as currently it also requires working down migrations which is not always the case.
- Loading branch information
1 parent
d3d2788
commit 9c0749c
Showing
3 changed files
with
32 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters