Skip to content

Commit e8a0897

Browse files
committed
fix tests
1 parent 83d4be3 commit e8a0897

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

strato/tests/test_cp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def test_cp_dir_gcp(capsys):
3535

3636
def test_cp_file_local(capsys):
3737
cp.main(["file1", "/bar/foo", "--dryrun"])
38-
assert "cp file1 /bar/foo\n" == capsys.readouterr().out
38+
assert "mkdir -p /bar\ncp file1 /bar/foo\n" == capsys.readouterr().out
3939

4040

4141
def test_cp_dir_local(capsys):

strato/tests/test_sync.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,20 @@
33

44

55
def test_sync_aws(capsys):
6-
sync.main(["file1", "s3://foo/bar/", "--dryrun"])
6+
sync.main(["folder1", "s3://foo/bar/", "--dryrun"])
77
assert (
8-
"aws s3 sync --delete --only-show-errors file1 s3://foo/bar/\n" == capsys.readouterr().out
8+
"aws s3 sync --delete --only-show-errors folder1 s3://foo/bar/\n" == capsys.readouterr().out
99
)
1010

1111

1212
def test_sync_gcp(capsys):
13-
sync.main(["file1", "gs://foo/bar/", "--dryrun"])
13+
sync.main(["folder1", "gs://foo/bar/", "--dryrun"])
1414
assert (
15-
gcloud + " rsync --delete-unmatched-destination-objects -r file1 gs://foo/bar/\n"
15+
gcloud + " rsync --delete-unmatched-destination-objects -r folder1 gs://foo/bar/\n"
1616
== capsys.readouterr().out
1717
)
1818

1919

2020
def test_sync_local(capsys):
21-
sync.main(["file1", "/bar/foo", "--dryrun"])
22-
assert "rsync -r --delete file1 /bar\n" == capsys.readouterr().out
21+
sync.main(["folder1", "/bar/foo", "--dryrun"])
22+
assert "rsync -r --delete folder1/ /bar/foo/\n" == capsys.readouterr().out

0 commit comments

Comments
 (0)