mirror of
https://github.com/pretix/pretix.git
synced 2026-05-10 16:04:02 +00:00
Fix AttributeError when running tests with debug toolbar installed
This commit is contained in:
@@ -94,6 +94,9 @@ class DisableMigrations(object):
|
|||||||
def __getitem__(self, item):
|
def __getitem__(self, item):
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
def setdefault(self, key, default=None):
|
||||||
|
return
|
||||||
|
|
||||||
|
|
||||||
if not os.environ.get("GITHUB_WORKFLOW", ""):
|
if not os.environ.get("GITHUB_WORKFLOW", ""):
|
||||||
MIGRATION_MODULES = DisableMigrations()
|
MIGRATION_MODULES = DisableMigrations()
|
||||||
|
|||||||
Reference in New Issue
Block a user