File tree Expand file tree Collapse file tree 2 files changed +1
-38
lines changed
Expand file tree Collapse file tree 2 files changed +1
-38
lines changed Original file line number Diff line number Diff line change @@ -329,7 +329,7 @@ def wait_for_target_processed(self, target_id: str) -> None:
329329 # number of calls made to the API, to decrease the likelihood of
330330 # hitting the request quota.
331331 seconds_between_requests = 0.2
332- _wait_for_target_processed (
332+ self . _wait_for_target_processed (
333333 target_id = target_id ,
334334 seconds_between_requests = seconds_between_requests ,
335335 )
Original file line number Diff line number Diff line change @@ -279,43 +279,6 @@ def test_wait_for_target_processed(
279279 report = client .get_target_summary_report (target_id = target_id )
280280 assert report ['status' ] != 'processing'
281281
282- def test_custom_timeout (
283- self ,
284- high_quality_image : io .BytesIO ,
285- ) -> None :
286- """
287- It is possible to set a maximum timeout.
288- """
289- with MockVWS (processing_time_seconds = 0.5 ) as mock :
290- database = VuforiaDatabase ()
291- mock .add_database (database = database )
292- client = VWS (
293- server_access_key = database .server_access_key .decode (),
294- server_secret_key = database .server_secret_key .decode (),
295- base_vws_url = base_vws_url ,
296- )
297-
298- target_id = client .add_target (
299- name = 'x' ,
300- width = 1 ,
301- image = high_quality_image ,
302- )
303-
304- report = client .get_target_summary_report (target_id = target_id )
305- assert report ['status' ] == 'processing'
306- with pytest .raises (TimeoutError ):
307- client .wait_for_target_processed (
308- target_id = target_id ,
309- timeout_seconds = 0.1 ,
310- )
311-
312- client .wait_for_target_processed (
313- target_id = target_id ,
314- timeout_seconds = 0.4 ,
315- )
316- report = client .get_target_summary_report (target_id = target_id )
317- assert report ['status' ] != 'processing'
318-
319282
320283class TestGetDuplicateTargets :
321284 """
You can’t perform that action at this time.
0 commit comments