Skip to content

Commit 16c12c4

Browse files
committed
Start of tests
1 parent 366f215 commit 16c12c4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/test_query.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,8 @@ def test_default(
196196
image=high_quality_image,
197197
max_num_results=2,
198198
)
199+
assert 'target_data' in top_match
200+
assert 'target_data' not in second_match
199201

200202
def test_top(
201203
self,
@@ -219,6 +221,8 @@ def test_top(
219221
image=high_quality_image,
220222
max_num_results=2,
221223
)
224+
assert 'target_data' in top_match
225+
assert 'target_data' not in second_match
222226

223227
def test_none(
224228
self,
@@ -242,6 +246,8 @@ def test_none(
242246
image=high_quality_image,
243247
max_num_results=2,
244248
)
249+
assert 'target_data' not in top_match
250+
assert 'target_data' not in second_match
245251

246252
def test_all(
247253
self,
@@ -265,3 +271,5 @@ def test_all(
265271
image=high_quality_image,
266272
max_num_results=2,
267273
)
274+
assert 'target_data' in top_match
275+
assert 'target_data' in second_match

0 commit comments

Comments
 (0)