mirror of
https://github.com/pretix/pretix.git
synced 2026-05-07 15:34: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):
|
||||
return None
|
||||
|
||||
def setdefault(self, key, default=None):
|
||||
return
|
||||
|
||||
|
||||
if not os.environ.get("GITHUB_WORKFLOW", ""):
|
||||
MIGRATION_MODULES = DisableMigrations()
|
||||
|
||||
Reference in New Issue
Block a user