at master 2.2 kB view raw
1diff --git a/cachalot/tests/models.py b/cachalot/tests/models.py 2index 8c48640..817602c 100644 3--- a/cachalot/tests/models.py 4+++ b/cachalot/tests/models.py 5@@ -77,11 +77,6 @@ class PostgresModel(Model): 6 date_range = DateRangeField(null=True, blank=True) 7 datetime_range = DateTimeRangeField(null=True, blank=True) 8 9- class Meta: 10- # Tests schema name in table name. 11- db_table = '"public"."cachalot_postgresmodel"' 12- 13- 14 class UnmanagedModel(Model): 15 name = CharField(max_length=50) 16 17diff --git a/settings.py b/settings.py 18index 19d7560..7095367 100644 19--- a/settings.py 20+++ b/settings.py 21@@ -8,18 +8,9 @@ DATABASES = { 22 'ENGINE': 'django.db.backends.sqlite3', 23 'NAME': 'cachalot.sqlite3', 24 }, 25- 'postgresql': { 26- 'ENGINE': 'django.db.backends.postgresql', 27- 'NAME': 'cachalot', 28- 'USER': 'cachalot', 29- 'PASSWORD': 'password', 30- 'HOST': '127.0.0.1', 31- }, 32- 'mysql': { 33- 'ENGINE': 'django.db.backends.mysql', 34- 'NAME': 'cachalot', 35- 'USER': 'root', 36- 'HOST': '127.0.0.1', 37+ 'test': { 38+ 'ENGINE': 'django.db.backends.sqlite3', 39+ 'NAME': ':memory:', 40 }, 41 } 42 if 'MYSQL_PASSWORD' in os.environ: 43@@ -36,22 +27,6 @@ DEFAULT_AUTO_FIELD = "django.db.models.AutoField" 44 DATABASE_ROUTERS = ['cachalot.tests.db_router.PostgresRouter'] 45 46 CACHES = { 47- 'redis': { 48- 'BACKEND': 'django_redis.cache.RedisCache', 49- 'LOCATION': 'redis://127.0.0.1:6379/0', 50- 'OPTIONS': { 51- # Since we are using both Python 2 & 3 in tests, we need to use 52- # a compatible pickle version to avoid unpickling errors when 53- # running a Python 2 test after a Python 3 test. 54- 'PICKLE_VERSION': 2, 55- }, 56- }, 57- 'memcached': { 58- 'BACKEND': 'django.core.cache.backends.memcached.' 59- + ('PyMemcacheCache' if __DJ_V[0] > 2 60- and (__DJ_V[1] > 1 or __DJ_V[0] > 3) else 'MemcachedCache'), 61- 'LOCATION': '127.0.0.1:11211', 62- }, 63 'locmem': { 64 'BACKEND': 'django.core.cache.backends.locmem.LocMemCache', 65 'OPTIONS': {