Skip to content

Commit f1b592f

Browse files
removes duplicate assertions
1 parent 3ebc929 commit f1b592f

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

tests/unit/test_query_types.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -261,24 +261,10 @@ def test_text_query():
261261
with pytest.raises(TypeError):
262262
text_query = TextQuery(text_string, text_field_name, stopwords=[1, 2, 3])
263263

264-
text_query = TextQuery(
265-
text_string, text_field_name, stopwords=set(["the", "a", "of"])
266-
)
267-
assert text_query.stopwords == set(["the", "a", "of"])
268-
269-
text_query = TextQuery(text_string, text_field_name, stopwords="german")
270-
assert text_query.stopwords != set([])
271-
272264
# test that filter expression is set correctly
273265
text_query.set_filter(filter_expression)
274266
assert text_query.filter == filter_expression
275267

276-
with pytest.raises(ValueError):
277-
text_query = TextQuery(text_string, text_field_name, stopwords="gibberish")
278-
279-
with pytest.raises(TypeError):
280-
text_query = TextQuery(text_string, text_field_name, stopwords=[1, 2, 3])
281-
282268

283269
def test_text_query_with_string_filter():
284270
"""Test that TextQuery correctly includes string filter expressions in query string.

0 commit comments

Comments
 (0)