diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-09-11 18:17:42 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-09-11 18:17:42 +0200 |
commit | ee8bde746c028a08413f5dfc6f5021ffb6a0dd7a (patch) | |
tree | 548c1f04a12b34c0d0f574424a25eed4dafcba6a /archaeological_operations/tests.py | |
parent | a41c08039dc12e1ceb35e6c7eed55b1e4a8423ae (diff) | |
download | Ishtar-ee8bde746c028a08413f5dfc6f5021ffb6a0dd7a.tar.bz2 Ishtar-ee8bde746c028a08413f5dfc6f5021ffb6a0dd7a.zip |
Fix search with only a "-" sign
Diffstat (limited to 'archaeological_operations/tests.py')
-rw-r--r-- | archaeological_operations/tests.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/archaeological_operations/tests.py b/archaeological_operations/tests.py index e5c77e501..ec1ca3d17 100644 --- a/archaeological_operations/tests.py +++ b/archaeological_operations/tests.py @@ -1501,6 +1501,11 @@ class OperationSearchTest(TestCase, OperationInitTest): response = c.get(reverse('get-operation'), {'search_vector': 'château'}) result = json.loads(response.content) self.assertEqual(result['recordsTotal'], 1) + # test search with inappropriate minus sign + response = c.get(reverse('get-operation'), + {'search_vector': 'chaTEAU - '}) + result = json.loads(response.content) + self.assertEqual(result['recordsTotal'], 1) def test_complex_search_vector(self): c = Client() |