Commit graph

74 commits

Author SHA1 Message Date
Dave Hall
acf2100b6c Fixing tests to work in newer django versions 2015-05-05 10:52:55 +01:00
Matt Molyneaux
d4428fb5a9 Test nested contexts too 2014-07-25 21:23:43 +01:00
Matt Molyneaux
b3ff0947e8 Create a context manager that prevents updating of the search index
Given a model that has non-searchable fields that are updated often, this
context manager can prevent frivolous search index updates.
2014-07-24 20:25:25 +01:00
Dave Hall
51b450568d Merge branch 'master' of github.com:etianen/django-watson 2014-02-17 11:26:21 +00:00
Dave Hall
4ba1a72a3a Adding support for searching with apostrophes 2014-02-17 11:23:24 +00:00
Jirka Vejrazka
a5f211e8ac improved tests a bit 2014-01-13 23:32:34 +01:00
Jirka Vejrazka
c37a04261b Added ability to build index for a single model (issue #31) 2014-01-12 16:10:45 +01:00
Dave Hall
193462afbf Fixing unittest dependency for Python 2.6 2013-12-03 17:02:23 +00:00
Dave Hall
59b58ca678 Mergin pull request from SimonGreenhill 2013-06-21 10:10:54 +01:00
SimonGreenhill
6f2e5214e0 replacing simplejson 2013-06-21 11:37:31 +10:00
tsufeki
7607adadcf Added from __future__ import unicode_literals, print_function every where except migrations/ 2013-05-02 16:50:16 +02:00
tsufeki
bfd3f87f6f Fixed unicode errors in JSON tests under python 3.3 2013-05-01 18:08:09 +02:00
Antti Kaihola
ceb32c5fc2 Added Django>=1.4 compatible django.conf.urls imports to prevent a deprecation warning 2013-01-25 10:56:07 +02:00
Dave Hall
ae0025ca8a Implementing built-in search views using newer class-based views.
Keeping older function-based views in for backwards-compatibility.
2012-05-08 12:36:38 +01:00
Dave Hall
03f0b0c4ac More robust site search tests. 2012-04-30 10:41:27 +01:00
Dave Hall
0d72bf0044 Hacky workaround for error in test case login when not using
django.contrib.sessions.
2012-04-24 11:11:40 +01:00
Dave Hall
3331b70937 Improving robustness of admin tests. 2012-04-24 11:08:35 +01:00
Dave Hall
3d8f4dff7a A search context is no longer mandatory for updating the search index.
It can be used to defere updating the index until the model is ready,
however.
2012-03-07 22:43:11 +00:00
Dave Hall
cb5b68c8c0 Added in legacy search backend for postgresql <= 8.3 2012-02-28 16:30:38 +00:00
Dave Hall
1e57592301 Better tests for prefix matching. 2012-02-28 15:14:28 +00:00
Dave Hall
2a3843c841 Making prefix matching work on sqlite search backend. 2012-02-28 14:37:39 +00:00
Dave Hall
1a3416b02b Removing some junk code. 2012-02-28 14:15:25 +00:00
Dave Hall
939675452f Removing test for searching by email. It's a pointlessly specific case. 2012-02-28 14:14:06 +00:00
Dave Hall
eace6cf4d0 Removing hacky searchentry_set generic relation from registration and search process. 2012-02-06 13:21:58 +00:00
Dave Hall
548da9ee08 Filtering a queryset by an empty search term now is a no-op 2011-10-02 17:16:24 +01:00
Dave Hall
53dccd15ee Namespacing test models to avoid conflicts with other apps. 2011-09-15 12:22:37 +01:00
Dave Hall
5e141b38ba Added in tests for install and uninstall commands. 2011-09-11 21:09:01 +01:00
Dave Hall
cda7866364 Added in tests for admin integration changelist rendering. 2011-09-08 16:56:31 +01:00
Dave Hall
266e8291f8 Added in uninstall command. 2011-09-08 16:53:07 +01:00
Dave Hall
3248a15298 Adding in search json api view. 2011-09-06 17:47:04 +01:00
Dave Hall
8f289b3d08 Generalizing out search results view to allow for a json api. 2011-09-06 17:17:14 +01:00
Dave Hall
26f45d983e Added in test for abandoning search context on error. 2011-09-05 12:09:25 +01:00
Dave Hall
232ce41d26 Renamed watson.context() to watson.update_index() 2011-09-05 12:06:57 +01:00
Dave Hall
66939453d4 Added in tests for search result pagination. 2011-08-30 11:22:39 +01:00
Dave Hall
3d2c74d304 Added in extra_context support in site search view. 2011-08-30 10:53:33 +01:00
Dave Hall
2907417897 Improving ranking behaviour for MySQL backend. 2011-08-29 19:18:27 +01:00
Dave Hall
32ba4c5694 Renaming default search template. 2011-08-29 18:20:58 +01:00
Dave Hall
29d38c9e08 Updating tests to use watson namespaced admin class. 2011-08-29 18:01:45 +01:00
Dave Hall
f804b8d549 Renaming search admin class. 2011-08-29 18:00:55 +01:00
Dave Hall
5a6a726a14 Refactored registering live querysets. 2011-08-29 16:47:40 +01:00
Dave Hall
4d26000229 Added in tests for admin integration. 2011-08-29 14:57:55 +01:00
Dave Hall
bc3350b929 Working on admin integration. 2011-08-29 14:37:19 +01:00
Dave Hall
6c5dbcd2c5 Added in fun fact explaination for MySQL testing weirdness. 2011-08-29 14:10:56 +01:00
Dave Hall
b6768965d9 Unit tests now pass with MySQL 2011-08-29 14:08:16 +01:00
Dave Hall
87bae74871 Added in tests for complex registration and multiple search engines. 2011-08-29 11:51:40 +01:00
Dave Hall
f07ce3080f Added in support for empty search redirect. 2011-08-29 11:36:34 +01:00
Dave Hall
7694d38879 Added in tests for ranking. 2011-08-29 11:18:53 +01:00
Dave Hall
17b61e6d42 Added in ranking parameter tests. 2011-08-29 11:10:09 +01:00
Dave Hall
42a6ff0e26 Added in kitchen sink test. 2011-08-28 13:42:47 +01:00
Dave Hall
db4049764b Added in test for overriding publication settings. 2011-08-27 18:45:43 +01:00