Fix errors on serializing unsaved wikidata imports.
[redakcja.git] / src / redakcja / settings / test.py
index 4a80142..dba64b6 100644 (file)
@@ -26,3 +26,16 @@ SECRET_KEY = "not-so-secret"
 
 
 LITERARY_DIRECTOR_USERNAME = 'Kaowiec'
+
+MIN_COVER_SIZE = (1, 1)
+
+
+class DisableMigrations(object):
+
+    def __contains__(self, item):
+        return True
+
+    def __getitem__(self, item):
+        return None
+
+MIGRATION_MODULES = DisableMigrations()