forked from CGM_Public/pretix_original
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