Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathangreen committed Feb 16, 2024
1 parent b90ada2 commit e0b223f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/core/test_external_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -3611,6 +3611,10 @@ def assert_filter_builds_to(self, expect, filter, _chain_filters=None):
"""
final_query = {"bool": {"must_not": [RESEARCH.to_dict()]}}

if filter.library_id:
suppressed_for = Terms(**{"suppressed_for": [filter.library_id]})
final_query["bool"]["must_not"].insert(0, suppressed_for.to_dict())

if expect:
final_query["bool"]["must"] = expect
main, nested = filter.build(_chain_filters)
Expand Down

0 comments on commit e0b223f

Please sign in to comment.