Skip to content

Commit 1e477c6

Browse files
committed
test: be nice with gluttony file buckets
1 parent 4809841 commit 1e477c6

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

tests/test_file.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,9 @@ def test_save_with_specified_key(): # type: () -> None
123123
path = urlparse(f.url).path
124124
if path.startswith("/avos-cloud-"): # old school aws s3 file url
125125
assert path.split("/")[2] == user_specified_key
126+
elif f.url.startswith("https://lc-gluttony"): # new aws s3 gluttony bucket
127+
gluttony_path = "/" + os.environ["APP_ID"][0:12] + "/" + user_specified_key
128+
assert path == gluttony_path
126129
else:
127130
assert path == "/" + user_specified_key
128131

0 commit comments

Comments
 (0)