Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / django-cachalot / disable-unsupported-tests.patch
blob8683fffbb146b32acf770a8a6ee7f2d7994e2a66
1 diff --git a/cachalot/tests/models.py b/cachalot/tests/models.py
2 index 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)
9 - class Meta:
10 - # Tests schema name in table name.
11 - db_table = '"public"."cachalot_postgresmodel"'
14 class UnmanagedModel(Model):
15 name = CharField(max_length=50)
17 diff --git a/settings.py b/settings.py
18 index 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',
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:',
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']
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': {