File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
vision/cloud-client/detect Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 25
25
26
26
27
27
def test_async_detect_document (capsys ):
28
+ storage_client = storage .Client ()
29
+ bucket = storage_client .get_bucket (BUCKET )
30
+ assert len (list (bucket .list_blobs (prefix = OUTPUT_PREFIX ))) == 0
31
+
28
32
async_detect_document (
29
33
gcs_source_uri = GCS_SOURCE_URI ,
30
34
gcs_destination_uri = GCS_DESTINATION_URI )
31
35
out , _ = capsys .readouterr ()
32
36
33
37
assert 'Hodge conjecture' in out
38
+ assert len (list (bucket .list_blobs (prefix = OUTPUT_PREFIX ))) == 3
34
39
35
- storage_client = storage .Client ()
36
- bucket = storage_client .get_bucket (BUCKET )
37
40
for blob in bucket .list_blobs (prefix = OUTPUT_PREFIX ):
38
41
blob .delete ()
Original file line number Diff line number Diff line change 1
- google-cloud-vision == 0.30.1
1
+ google-cloud-vision == 0.31.0
2
2
google-cloud-storage == 1.6.0
You can’t perform that action at this time.
0 commit comments