diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-08-16 15:05:43 +0200 | 
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-08-16 15:05:43 +0200 | 
| commit | 58cbaea8a20d17418d1613ea3b277242c932d2ac (patch) | |
| tree | 48a3b167a477189f5cbcaf170158df416f24ca61 /archaeological_operations/tests.py | |
| parent | fe78f0db71ac7a9528925492c8521496dc6c36ed (diff) | |
| download | Ishtar-58cbaea8a20d17418d1613ea3b277242c932d2ac.tar.bz2 Ishtar-58cbaea8a20d17418d1613ea3b277242c932d2ac.zip | |
Manage properties in search vectors - add short code for operation (refs #4027)
Diffstat (limited to 'archaeological_operations/tests.py')
| -rw-r--r-- | archaeological_operations/tests.py | 11 | 
1 files changed, 8 insertions, 3 deletions
| diff --git a/archaeological_operations/tests.py b/archaeological_operations/tests.py index a3cd5fd8d..a396adecf 100644 --- a/archaeological_operations/tests.py +++ b/archaeological_operations/tests.py @@ -1050,10 +1050,15 @@ class OperationTest(TestCase, OperationInitTest):          operation.towns.add(town)          operation = models.Operation.objects.get(pk=operation.pk)          operation.comment = u"Zardoz" -        operation.code_patriarche = u"HUIAAA5" +        profile = get_current_profile() +        profile.operation_region_code = u"42" +        profile.save() +        operation.code_patriarche = u"42HUIAAA5"          operation.save() -        for key in ('old', 'dirty', 'daisy', "'2010'", "zardoz", -                    "huiaaa5"): +        for key in ( +                'old', 'dirty', 'daisy', "'2010'", "zardoz", "huiaaa5", +                "{}42huiaaa5".format(profile.operation_prefix.lower()), +                "42huiaaa5"):              self.assertIn(key, operation.search_vector)      def test_cache_bulk_update(self): | 
