mirror of
https://github.com/arcan1s/ahriman.git
synced 2025-11-24 17:33:42 +00:00
apply data migration in the same transaction block with schema migration
This commit is contained in:
@ -20,9 +20,5 @@ def test_init(database: SQLite, configuration: Configuration, mocker: MockerFixt
|
||||
must run migrations on init
|
||||
"""
|
||||
migrate_schema_mock = mocker.patch("ahriman.core.database.migrations.Migrations.migrate")
|
||||
migrate_data_mock = mocker.patch("ahriman.core.database.sqlite.migrate_data")
|
||||
|
||||
database.init(configuration)
|
||||
migrate_schema_mock.assert_called_once_with(pytest.helpers.anyvar(int))
|
||||
migrate_data_mock.assert_called_once_with(
|
||||
pytest.helpers.anyvar(int), pytest.helpers.anyvar(int), configuration, configuration.repository_paths)
|
||||
migrate_schema_mock.assert_called_once_with(pytest.helpers.anyvar(int), configuration)
|
||||
|
||||
Reference in New Issue
Block a user