File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change 44
55import base64
66import io
7+ import logging
78from time import sleep
89
910import pytest
2223)
2324from tests .mock_vws .utils .assertions import assert_vws_response
2425
26+ LOGGER = logging .getLogger (__name__ )
27+ LOGGER .setLevel (logging .DEBUG )
28+
2529
2630@timeout_decorator .timeout (seconds = 500 )
2731def _wait_for_image_numbers (
@@ -63,15 +67,21 @@ def _wait_for_image_numbers(
6367 while True :
6468 response = database_summary (vuforia_database = vuforia_database )
6569
66- requirements = {
70+ not_matching_requirements = {
6771 requirement : value
6872 for requirement , value in requirements .items ()
6973 if response .json ()[requirement ] != value
7074 }
7175
72- if not requirements : # pragma: no cover
76+ if not not_matching_requirements : # pragma: no cover
7377 return
7478
79+ LOGGER .debug ('Waiting for database summary.' )
80+ LOGGER .debug ('Waiting for summary to equal: ' )
81+ LOGGER .debug (requirements )
82+ LOGGER .debug ('Not matching are:' )
83+ LOGGER .debug (not_matching_requirements )
84+
7585 # We wait 0.2 seconds rather than less than that to decrease the number
7686 # of calls made to the API, to decrease the likelihood of hitting the
7787 # request quota.
You can’t perform that action at this time.
0 commit comments