Skip to content

Commit

Permalink
fix: DIA-354: Fix validation for non-existing GCS bucket prefix (#5033)
Browse files Browse the repository at this point in the history
* fix: DIA-354: Fix validation for non-existing GCS bucket prefix

* Update utils.py

---------

Co-authored-by: KonstantinKorotaev <KonstantinKorotaev@users.noreply.github.com>
Co-authored-by: farioas <farioas@users.noreply.github.com>
  • Loading branch information
3 people authored Nov 13, 2023
1 parent 329dcd8 commit af5af09
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion label_studio/tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,9 @@ def __init__(self, bucket_name, is_json, **kwargs):
self.name = bucket_name
self.is_json = is_json

def list_blobs(self, prefix):
def list_blobs(self, prefix, **kwargs):
if 'fake' in prefix:
return []
return [File('abc'), File('def'), File('ghi')]

def blob(self, key):
Expand Down

0 comments on commit af5af09

Please sign in to comment.