mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-11 23:10:10 +01:00
test: s3: try using boto3.client
This commit is contained in:
@@ -964,8 +964,8 @@ class TestReproExternalS3(TestReproExternalBase):
|
||||
return "aws s3 cp {} {}".format(i, o)
|
||||
|
||||
def write(self, bucket, key, body):
|
||||
s3 = boto3.resource("s3")
|
||||
s3.Bucket(bucket).put_object(Key=key, Body=body)
|
||||
s3 = boto3.client("s3")
|
||||
s3.put_object(Bucket=bucket, Key=key, Body=body)
|
||||
|
||||
|
||||
class TestReproExternalGS(TestReproExternalBase):
|
||||
|
||||
Reference in New Issue
Block a user