Bertrand Bordage
da4e21b515
Adds `CACHALOT_DATABASES` and removes dynamic setting support.
...
Dynamic setting support is removed because it’s not thread-safe.
2017-06-04 18:37:39 +02:00
Bertrand Bordage
2d5ad63fbd
Adds the Python type `long` to the cachable param types.
2017-06-03 18:25:07 +02:00
Bertrand Bordage
542a5b6097
Simplifies tests while increasing their robustness by explicitely checking detected table names.
2017-06-03 17:45:26 +02:00
Bertrand Bordage
3b5dde8d30
Adds tests for RawSQL.
2017-06-03 15:18:20 +02:00
Bertrand Bordage
1f04294eb5
Updates tests for Django 1.11.
2017-06-03 01:53:56 +02:00
Bertrand Bordage
599b65c69d
Revert "Fixes a test broken by mysqlclient 1.3.8."
...
This reverts commit eb64d1ce2b
.
2016-10-23 21:04:42 +02:00
Bertrand Bordage
eb64d1ce2b
Fixes a test broken by mysqlclient 1.3.8.
2016-09-29 17:28:27 +02:00
Bertrand Bordage
c5d5ee7907
Never caches `select_for_update` queries.
2016-09-29 11:57:38 +02:00
Bertrand Bordage
7e3137eac7
Revert "Runs the bytes query test for SQLite on Python 2."
...
This reverts commit 13d71120d1
.
2016-09-13 13:22:41 +02:00
Bertrand Bordage
13d71120d1
Runs the bytes query test for SQLite on Python 2.
2016-09-13 12:17:51 +02:00
Bertrand Bordage
762456415a
Fixes the test suite.
2016-09-06 20:01:48 +02:00
Bertrand Bordage
0373f5eb60
Fixes the bytes → str conversion.
2016-07-21 23:59:11 +02:00
Bertrand Bordage
3562b31056
Tests executing raw bytes queries.
2016-07-21 23:47:35 +02:00
Bertrand Bordage
944ebb9b73
Removes old Django 1.7 code.
2016-07-21 12:19:31 +02:00
Bertrand Bordage
3e7a9a0808
Prevents queries with Now from being cached.
2015-12-28 05:51:38 +01:00
Bertrand Bordage
66406bd24b
Typo.
2015-10-28 17:48:14 +01:00
Bertrand Bordage
b7f3c35502
Fixes the float test on MySQL.
2015-10-28 17:45:23 +01:00
Bertrand Bordage
87ed73390f
Tests and handles Decimal type in query parameters.
2015-10-28 17:08:03 +01:00
Bertrand Bordage
6d6bbdeb6f
Tests FloatField and cache queries using it.
2015-10-28 16:51:26 +01:00
Bertrand Bordage
9cf0cd318a
Adds tests for UUIDField and DurationField and cache their queries.
2015-10-28 16:19:33 +01:00
Bertrand Bordage
7e3e1dabb9
Adds tests for IP addresses.
2015-10-28 15:43:57 +01:00
Bertrand Bordage
0832e35321
Tests timezones.
2015-10-04 21:04:54 +02:00
Bertrand Bordage
7efb8ae232
Adds tests for many-to-many managers.
2015-10-02 23:19:02 +02:00
Bertrand Bordage
1c1b6ebd26
Add 2 test for foreign key relations.
2015-10-02 21:04:33 +02:00
Bertrand Bordage
9938b54123
Merge branch 'master' into django-1.8
...
Conflicts:
cachalot/cache.py
cachalot/monkey_patch.py
cachalot/tests/read.py
cachalot/utils.py
tox.ini
2015-10-02 18:39:04 +02:00
Bertrand Bordage
ba34e6c1c6
Updates a test name and description.
2015-06-19 19:33:46 +02:00
Bertrand Bordage
024676f6e2
Adds a test for BinaryField in order to test unknown parameters types.
2015-06-19 18:50:29 +02:00
Bertrand Bordage
9f672d2373
Adds tests for two newly discovered minor bugs.
2015-05-24 18:13:18 +02:00
Bertrand Bordage
c2d62dbad3
Uses database cursors as context managers.
2015-04-11 02:04:53 +02:00
Bertrand Bordage
c8943103bf
Adds a test for unicode SELECTs.
2015-03-09 21:57:31 +01:00
Bertrand Bordage
c9b1269210
Adds a test for unicode table names.
2015-03-09 20:07:14 +01:00
Bertrand Bordage
76b2c08dc8
Adds more rare advanced queries not handled by cachalot.
2015-02-17 23:57:58 +01:00
Bertrand Bordage
67c05ed460
Adds 2 tests for HAVING queries.
2015-02-17 21:47:41 +01:00
Bertrand Bordage
c578cbff8a
Fixes a test.
2015-01-18 18:11:21 +01:00
Bertrand Bordage
5e5ba9321d
Removes an invalid test.
...
`cursor.executemany` should never accept SELECTs. In practice, MySQL accepts it but returns erroneous data.
But SQLite and PostgreSQL are raising an exception, as expected.
2014-12-07 03:40:27 +01:00
Bertrand Bordage
3293c2c644
Adds tests for `cursor.executemany`.
2014-12-07 02:38:10 +01:00
Bertrand Bordage
cf53a6e683
Makes sure a cache key wasn’t invalidated in the meantime.
2014-11-20 14:33:26 +01:00
Bertrand Bordage
ae0ca73108
Revert "Small simplification in a test."
...
This reverts commit c084568225
.
2014-11-03 23:49:20 +01:00
Bertrand Bordage
c084568225
Small simplification in a test.
2014-11-03 22:57:19 +01:00
Bertrand Bordage
a8fa93ebd3
Removes the hack for the number of queries with MySQL.
2014-10-29 20:00:33 +01:00
Bertrand Bordage
ddfbfba75d
Caches all queries resulting of a ``Queryset.extra``.
2014-10-29 19:38:33 +01:00
Bertrand Bordage
5f94747ae6
Adds CACHALOT_CACHE_RANDOM.
2014-10-29 17:50:36 +01:00
Bertrand Bordage
38065f9454
Fixes the number of queries for SQLite.
2014-10-29 14:57:01 +01:00
Bertrand Bordage
7bfd570554
Adds tests for multi-table inheritance.
2014-10-29 13:46:27 +01:00
Bertrand Bordage
1f1697891b
Adds more multi-database tests.
2014-10-21 19:51:03 +02:00
Bertrand Bordage
aa1d367c89
Changes a skip condition.
2014-10-21 18:22:24 +02:00
Bertrand Bordage
19f306054d
Adds multi-database support.
2014-10-20 23:43:10 +02:00
Bertrand Bordage
65a8008073
Adds a basic multi-database test.
2014-10-20 22:18:00 +02:00
Bertrand Bordage
a4f766fd14
Adds tests for select_for_update.
2014-10-20 17:25:20 +02:00
Bertrand Bordage
0da4880442
Separates tests in several files.
2014-10-20 15:40:37 +02:00