fix(db): remove stale comment in tests

This commit is contained in:
psychedelicious 2023-12-13 11:24:27 +11:00
parent c50a49719b
commit ed1583383e

View File

@ -237,7 +237,6 @@ def test_migrator_runs_all_migrations_in_memory(migrator: SQLiteMigrator) -> Non
def test_migrator_runs_all_migrations_file(logger: Logger) -> None: def test_migrator_runs_all_migrations_file(logger: Logger) -> None:
with TemporaryDirectory() as tempdir: with TemporaryDirectory() as tempdir:
original_db_path = Path(tempdir) / "invokeai.db" original_db_path = Path(tempdir) / "invokeai.db"
# The Migrator closes the database when it finishes; we cannot use a context manager.
db = SqliteDatabase(db_path=original_db_path, logger=logger, verbose=False) db = SqliteDatabase(db_path=original_db_path, logger=logger, verbose=False)
migrator = SQLiteMigrator(db=db) migrator = SQLiteMigrator(db=db)
migrations = [Migration(from_version=i, to_version=i + 1, callback=create_migrate(i)) for i in range(0, 3)] migrations = [Migration(from_version=i, to_version=i + 1, callback=create_migrate(i)) for i in range(0, 3)]