예제 #1
0
파일: test_s3.py 프로젝트: ye-man/dvc
def test_copy_multipart_preserve_etag():
    from_info, to_info = _get_src_dst()

    if not _should_test_aws():
        pytest.skip()

    s3 = boto3.client("s3")
    _upload_multipart(s3, from_info.bucket, from_info.path)
    RemoteS3._copy(s3, from_info, to_info, {})
예제 #2
0
파일: test_s3.py 프로젝트: ye-man/dvc
def test_copy_singlepart_preserve_etag():
    from_info, to_info = _get_src_dst()

    if not _should_test_aws():
        pytest.skip()

    s3 = boto3.client("s3")
    s3.put_object(Bucket=from_info.bucket, Key=from_info.path, Body="data")

    RemoteS3._copy(s3, from_info, to_info, {})
예제 #3
0
파일: test_repro.py 프로젝트: hugovk/dvc
 def should_test(self):
     return _should_test_aws()