Commit graph

14 commits

Author SHA1 Message Date
Shybert
e1aa648a63 url -> re_path
Required for Django 4 compat
2022-02-13 15:35:26 +01:00
Cristopher Hernandez
1476d123ba Tweak comments 2021-10-24 16:25:27 -07:00
Cristopher Hernandez
3a69bea8f3 Add cleanup for deleted object entries in buildwatson 2021-10-24 16:24:22 -07:00
Benedikt Willi
aca2511da5 Added possibility to run tests through Github Actions. 2021-07-22 12:05:32 +02:00
Henrik Hørlück Berg
24c69ff57c
Change deprecated force_text -> force_str 2020-03-29 12:17:35 +02:00
Ivan Elfimov
918590bd06 remove python_2_unicode_compatible from tests 2020-01-31 16:49:56 +03:00
Krukas
fd414aae45 [BUGFIX] #255 Fixed MySQL tests failing mysql + admin context
The admin tests failed because of the following error:

(admin.E404) 'django.contrib.messages.context_processors.messages' must be enabled in DjangoTemplates (TEMPLATES) in order to use the admin application.

This is fixed by adding
'django.contrib.messages.context_processors.messages' tot the context_processors

The MySQL tests failed on the error:

django.db.utils.OperationalError: (1055, "Expression #2 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'test_test_project.watson_searchentry.title' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by")

After some diging this hapens because the qeuryset count uses an annotation/aggrogation.
37f8f29377/django/db/models/sql/query.py (L510)

Based on what django recomends for setting the sql_mode to https://docs.djangoproject.com/en/2.2/ref/databases/#setting-sql-mode.
And the recomandation from
https://code.djangoproject.com/ticket/15940#comment:10 to always explicitly set the sql_mode.

I have updated the test MySQL settings to set the sql_mode to STRICT_TRANS_TABLES
2019-11-01 09:49:49 +01:00
Matt Molyneaux
6d9d03b5c0 Tests to demonstrate the bug 2018-04-30 23:28:59 +01:00
Dave Hall
ac90ba92b8 Trying to lose tox. It's been a right pain. 2017-12-21 16:08:28 +00:00
Dave Hall
d6084f7a90 Fixing filter() with a UUID field. Closes #227. 2017-12-06 16:51:57 +00:00
Dave Hall
2226de139b Fixing flake8 2017-11-27 08:54:17 +00:00
Dave Hall
7b35ba0c76 Fixing escaping of <> characters in postgres. Closes #219 2017-09-27 10:24:45 +01:00
Matt Molyneaux
5ac7bba7ba Add missing context processor to test app 2017-06-13 12:30:22 +01:00
Rustem Sayargaliev
fb1a3991f1 Added flake8, fixed syntax, flattened package structure 2016-11-07 21:33:33 +01:00