fix(db): fix sqlite migrator tests on windows

This commit is contained in:
psychedelicious@windows 2023-12-12 13:54:47 +11:00
parent ee1f1f3363
commit 95198da645

View File

@ -308,6 +308,8 @@ def test_migrator_runs_all_migrations_file(logger: Logger) -> None:
with closing(sqlite3.connect(original_db_path)) as original_db_conn:
original_db_cursor = original_db_conn.cursor()
assert SQLiteMigrator._get_current_version(original_db_cursor) == 3
# Must manually close else we get an error on Windows
db.conn.close()
def test_migrator_makes_no_changes_on_failed_migration(