Skip to content

Commit 24533f3

Browse files
Merge pull request #660 from adamtheturtle/faster-fixtures
Faster fixtures
2 parents d406726 + 02a7271 commit 24533f3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/mock_vws/test_query.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -689,6 +689,7 @@ def add_targets(
689689
"""
690690
image_content = high_quality_image.getvalue()
691691
image_data_encoded = base64.b64encode(image_content).decode('ascii')
692+
target_ids = set([])
692693
for name in ('example_1', 'example_2'):
693694
add_target_data = {
694695
'name': name,
@@ -701,8 +702,9 @@ def add_targets(
701702
data=add_target_data,
702703
)
703704

704-
target_id = response.json()['target_id']
705+
target_ids.add(response.json()['target_id'])
705706

707+
for target_id in target_ids:
706708
wait_for_target_processed(
707709
target_id=target_id,
708710
vuforia_database_keys=vuforia_database_keys,

0 commit comments

Comments
 (0)