From 6e1bb5ca3eec95739b610462cf2090a08224c4d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20Voet=20=28ryv=29?= Date: Thu, 11 Aug 2022 13:09:30 +0000 Subject: [PATCH] [FIX] test_website: fix test when trigram psql extention is installed. When we want to activate trigram psql extension for odoo/odoo#97294 on runbot. But one test fails (`test_01_many_records`) with it because the website fuzzy search behavior depends on trigram extension presence. closes odoo/odoo#98018 X-original-commit: 0562a17f8ca1be83c80372e2300e24ab9d0458a9 Signed-off-by: Romain Derie (rde) Signed-off-by: Raphael Collet --- addons/test_website/tests/test_fuzzy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/test_website/tests/test_fuzzy.py b/addons/test_website/tests/test_fuzzy.py index f4261592758..4e242abc248 100644 --- a/addons/test_website/tests/test_fuzzy.py +++ b/addons/test_website/tests/test_fuzzy.py @@ -44,7 +44,7 @@ class TestAutoComplete(TransactionCase): # => Find exact match through the fallback self._autocomplete('REF3000', 1, False) # => No exact match => Find fuzzy within first 1000 (distance=3: replace D by F, move 3, add 1) - self._autocomplete('RED3000', 1, 'ref1003') + self._autocomplete('RED3000', 1, 'ref3000' if self.env.registry.has_trigram else 'ref1003') # => Find exact match through the fallback self._autocomplete('REF300', 10, False) # => Find exact match through the fallback