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 | 955245a7083c2b3e00daba667d541ab1785603ce (patch) | |
tree | 548c1f04a12b34c0d0f574424a25eed4dafcba6a /archaeological_operations/tests.py | |
parent | 46fc477e41be542853abd198a87a54215460d2d6 (diff) | |
download | Ishtar-955245a7083c2b3e00daba667d541ab1785603ce.tar.bz2 Ishtar-955245a7083c2b3e00daba667d541ab1785603ce.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() |