summaryrefslogtreecommitdiff
path: root/archaeological_operations
diff options
context:
space:
mode:
Diffstat (limited to 'archaeological_operations')
-rw-r--r--archaeological_operations/tests.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/archaeological_operations/tests.py b/archaeological_operations/tests.py
index 136f710f1..953229dbc 100644
--- a/archaeological_operations/tests.py
+++ b/archaeological_operations/tests.py
@@ -3245,8 +3245,10 @@ class OperationSearchTest(TestCase, OperationInitTest, SearchText, StatisticsTes
ope1.year = 2042
ope1.end_date = "2010-01-01"
+ ope1.common_name = "Opération : Château de Fougères"
ope1.save()
ope2.year = 2020
+ ope2.common_name = "Opération : Château de Josselin"
ope2.save()
# ope3.year: 2018
@@ -3340,6 +3342,13 @@ class OperationSearchTest(TestCase, OperationInitTest, SearchText, StatisticsTes
'{}*'.format(neo.label[:3]), 2, "Open search")
"""
+ # many open search
+ search_name_q = str(pgettext("key for text search", "name"))
+ result = [
+ (f'{search_name_q}="Foug*" {search_name_q}="Jossel*"', 2),
+ ]
+ self._test_search(c, result, context="Many name open search")
+
# non hierarchic search
search_remain_q = str(pgettext("key for text search", "remain"))
result = [