revert changes

This commit is contained in:
n3hrox
2019-11-04 21:02:51 +01:00
parent 4da42d188c
commit e3417f78be
48 changed files with 322 additions and 309 deletions
-18
View File
@@ -2,7 +2,6 @@ from __future__ import unicode_literals
import os
import filecmp
import shutil
import pytest
from mock import patch
@@ -68,23 +67,6 @@ def test_pull_imported_stage(dvc_repo, erepo):
assert os.path.isfile(dst_cache)
def test_pull_imported_directory_stage(dvc_repo, erepo):
src = erepo.DATA_DIR
dst = erepo.DATA_DIR + "_imported"
stage_file = dst + ".dvc"
dvc_repo.imp(erepo.root_dir, src, dst)
shutil.rmtree(dst)
shutil.rmtree(dvc_repo.cache.local.cache_dir)
dvc_repo.pull([stage_file])
assert os.path.exists(dst)
assert os.path.isdir(dst)
trees_equal(src, dst)
def test_download_error_pulling_imported_stage(dvc_repo, erepo):
src = erepo.FOO
dst = erepo.FOO + "_imported"
+1 -1
View File
@@ -245,5 +245,5 @@ def test_partial_push_n_pull(dvc_repo, repo_dir, caplog):
def get_last_exc(caplog):
_, exc, _ = caplog.records[-2].exc_info
_, exc, _ = caplog.records[-1].exc_info
return exc
+2 -2
View File
@@ -964,8 +964,8 @@ class TestReproExternalS3(TestReproExternalBase):
return "aws s3 cp {} {}".format(i, o)
def write(self, bucket, key, body):
s3 = boto3.client("s3")
s3.put_object(Bucket=bucket, Key=key, Body=body)
s3 = boto3.resource("s3")
s3.Bucket(bucket).put_object(Key=key, Body=body)
class TestReproExternalGS(TestReproExternalBase):