fix: keep registration search results open

This commit is contained in:
2026-09-16 10:07:39 +03:00
parent 92051184f5
commit 06c275cc40
11 changed files with 15 additions and 15 deletions

View File

@@ -45,7 +45,7 @@ class SearchApiTest(unittest.TestCase):
body = json.loads(request.call_args.args[2])
planned = body["query"]["bool"]["must"]["bool"]
self.assertEqual(planned["minimum_should_match"], 1)
self.assertIn({"terms": {"document_code": ["230044970", "667", "4"]}}, planned["filter"])
self.assertNotIn("filter", planned)
self.assertTrue(any("constant_score" in clause for clause in planned["should"]))
self.assertTrue(any("общество с ограниченной ответственностью" in clause.get("multi_match", {}).get("query", "") for clause in planned["should"]))