Skip to content

Commit 68d1ab9

Browse files
committed
Inline the migrations.py file
Clearer this way.
1 parent 9e1d4a1 commit 68d1ab9

File tree

2 files changed

+6
-14
lines changed

2 files changed

+6
-14
lines changed

pytest_django/fixtures.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,12 @@ def _disable_native_migrations():
157157
from django.conf import settings
158158
from django.core.management.commands import migrate
159159

160-
from .migrations import DisableMigrations
160+
class DisableMigrations:
161+
def __contains__(self, item):
162+
return True
163+
164+
def __getitem__(self, item):
165+
return None
161166

162167
settings.MIGRATION_MODULES = DisableMigrations()
163168

pytest_django/migrations.py

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)