Commit graph

91 commits

Author SHA1 Message Date
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
d959f3e42f Waits until the end of transaction before triggering the signal, and trigger the signal on all invalidations. 2015-10-28 12:54:39 +01:00
Bertrand Bordage
e02632881e Removes some useless compatibility code. 2015-10-28 12:13:48 +01:00
Bertrand Bordage
7177361267 Avoids extra invalidations during write operations. 2015-10-28 11:37:58 +01:00
Bertrand Bordage
dcfffbc9a0 Removes the last Python 2.6 compatibility code. 2015-10-28 10:47:48 +01:00
Bertrand Bordage
43bd5e1b38 Fixes the independence issue when nesting atomic block of different databases. 2015-10-26 02:42:13 +01:00
Bertrand Bordage
f5bfeec59b Adds a get_last_invalidation template tag. 2015-10-24 20:26:11 +02:00
Bertrand Bordage
6c13636044 Creates get_last_invalidation(), while simplifying API usage. 2015-10-05 23:48:48 +02:00
Bertrand Bordage
abc00b1307 Merges invalidate_all, invalidate_tables and invalidate_models, while optimising it. 2015-10-05 22:31:47 +02:00
Bertrand Bordage
6b385919f1 Fixes tests on Django 1.7. 2015-10-05 20:20:43 +02:00
Bertrand Bordage
a8b77c6e32 Adds CACHALOT_ONLY_CACHABLE_TABLES. 2015-10-05 20:10:19 +02:00
Bertrand Bordage
8fc89836d0 Fixes migration on Django 1.7. 2015-10-04 22:24:58 +02:00
Bertrand Bordage
3a6f7bbc29 Tests all django.contrib.postgres reading possibilities + makes caching work for most array and hstore queries. 2015-10-04 22:14:18 +02:00
Bertrand Bordage
0832e35321 Tests timezones. 2015-10-04 21:04:54 +02:00
Bertrand Bordage
42fc5d2f0e Simplification. 2015-10-04 19:53:19 +02:00
Bertrand Bordage
009b7ca557 Handles Django bug #25501 in tests. 2015-10-04 18:35:44 +02:00
Bertrand Bordage
e1ac02bec7 Fixes Django 1.7 compatibility. 2015-10-03 04:30:23 +02:00
Bertrand Bordage
6b2fdb6da1 Creates a clean way to test PostgreSQL specific features. 2015-10-03 03:18:34 +02:00
Bertrand Bordage
ce32ac4c41 Removes the useless explicit app_label since Django 1.7. 2015-10-03 00:10:08 +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
32135f6b43 Fixes version comparisons. 2015-10-02 20:09:52 +02:00
Bertrand Bordage
6c140096ec Fixes the number of queries on rollback with Django 1.7. 2015-10-02 20:04:05 +02:00
Bertrand Bordage
fd7afc6fed Updates a query amount in transactions. 2015-10-02 19:53:50 +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
1d4e8f8c8b Fixes the SET SQL_AUTO_IS_NULL = 0 issue in the multi-db test. 2015-06-17 23:08:36 +02:00
Bertrand Bordage
d2b03e5d8d Creates a MySQL cursor before each test to avoid the extra SET SQL_AUTO_IS_NULL = 0 request. 2015-06-17 23:00:52 +02:00
Bertrand Bordage
f10f6daae5 Adds a test for CACHALOT_UNCACHABLE_TABLES. 2015-06-17 22:37:08 +02:00
Bertrand Bordage
9f672d2373 Adds tests for two newly discovered minor bugs. 2015-05-24 18:13:18 +02:00
Bertrand Bordage
3798a1c97d Adds a signal to trigger post-invalidation behaviours. 2015-04-17 20:06:18 +02:00
Bertrand Bordage
00de631330 Rewrites #16 in a minimal way, using an existing test and the models. 2015-04-17 18:10:33 +02:00
Helen Warren
4eeeb70225 Tests related to many to many relationships used via exclude queries 2015-04-17 13:50:51 +01:00
Bertrand Bordage
c2d62dbad3 Uses database cursors as context managers. 2015-04-11 02:04:53 +02:00
Bertrand Bordage
16e14c9219 Drops Django 1.6 & Python 2.6 support. 2015-04-11 01:57:13 +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
0b86ae2bac Uses next(generator) instead of generator.next() for Python 3. 2015-02-22 01:05:12 +01:00
Bertrand Bordage
b7dbd00d02 Adds a test for the management command. 2015-02-22 00:51:47 +01:00
Bertrand Bordage
76b2c08dc8 Adds more rare advanced queries not handled by cachalot. 2015-02-17 23:57:58 +01:00
Bertrand Bordage
cd278aea75 Moves a test method. 2015-02-17 22:07:23 +01:00
Bertrand Bordage
67c05ed460 Adds 2 tests for HAVING queries. 2015-02-17 21:47:41 +01:00
Bertrand Bordage
81b63eaff3 Adds a missing test for subqueries. 2015-02-17 21:23:51 +01:00
Bertrand Bordage
c578cbff8a Fixes a test. 2015-01-18 18:11:21 +01:00
Bertrand Bordage
c3223048f1 Fixes tests for Django 1.6 & 1.7. 2015-01-18 17:50:35 +01:00