mirror of
https://github.com/django/django.git
synced 2024-12-23 01:25:58 +00:00
Fixed some flake8 issues
This commit is contained in:
parent
15f82c7011
commit
8faaf03b86
@ -130,13 +130,13 @@ class ExecutorTests(MigrationTestBase):
|
|||||||
# Erase all the fake records
|
# Erase all the fake records
|
||||||
executor.recorder.flush()
|
executor.recorder.flush()
|
||||||
|
|
||||||
|
|
||||||
@override_settings(MIGRATION_MODULES={"migrations": "migrations.test_migrations"})
|
@override_settings(MIGRATION_MODULES={"migrations": "migrations.test_migrations"})
|
||||||
def test_soft_apply(self):
|
def test_soft_apply(self):
|
||||||
"""
|
"""
|
||||||
Tests detection of initial migrations already having been applied.
|
Tests detection of initial migrations already having been applied.
|
||||||
"""
|
"""
|
||||||
state = {"faked": None}
|
state = {"faked": None}
|
||||||
|
|
||||||
def fake_storer(phase, migration, fake):
|
def fake_storer(phase, migration, fake):
|
||||||
state["faked"] = fake
|
state["faked"] = fake
|
||||||
executor = MigrationExecutor(connection, progress_callback=fake_storer)
|
executor = MigrationExecutor(connection, progress_callback=fake_storer)
|
||||||
|
Loading…
Reference in New Issue
Block a user