summaryrefslogtreecommitdiff
path: root/tests/sourcecache/workspace.py
diff options
context:
space:
mode:
authorChandan Singh <csingh43@bloomberg.net>2019-11-05 13:40:03 +0000
committerChandan Singh <csingh43@bloomberg.net>2019-11-05 13:40:03 +0000
commitab707e87f53249d7f2aac17683254b54196f90ce (patch)
treed1d2898c6561a8ca362419dce92a6f808d45b4e6 /tests/sourcecache/workspace.py
parente06c2295b063245dbdb2397e5bd8c4d0a79ba10d (diff)
downloadbuildstream-chandan/black.tar.gz
Use 119 line lengthchandan/black
Diffstat (limited to 'tests/sourcecache/workspace.py')
-rw-r--r--tests/sourcecache/workspace.py16
1 files changed, 3 insertions, 13 deletions
diff --git a/tests/sourcecache/workspace.py b/tests/sourcecache/workspace.py
index 3b6e265e9..42661edeb 100644
--- a/tests/sourcecache/workspace.py
+++ b/tests/sourcecache/workspace.py
@@ -55,10 +55,7 @@ def test_workspace_source_fetch(tmpdir, datafiles, cli):
shutil.rmtree(source_dir)
# Open a workspace and check that fetches the original sources
- res = cli.run(
- project=project_dir,
- args=["workspace", "open", "target.bst", "--directory", workspace],
- )
+ res = cli.run(project=project_dir, args=["workspace", "open", "target.bst", "--directory", workspace],)
res.assert_success()
assert "Fetching from" in res.stderr
@@ -75,11 +72,7 @@ def test_workspace_open_no_source_push(tmpdir, datafiles, cli):
with create_artifact_share(share_dir) as share:
cli.configure(
- {
- "cachedir": cache_dir,
- "scheduler": {"pushers": 1},
- "source-caches": {"url": share.repo, "push": True,},
- }
+ {"cachedir": cache_dir, "scheduler": {"pushers": 1}, "source-caches": {"url": share.repo, "push": True,},}
)
# Fetch as in previous test and check it pushes the source
@@ -91,10 +84,7 @@ def test_workspace_open_no_source_push(tmpdir, datafiles, cli):
# clear the cas and open a workspace
shutil.rmtree(os.path.join(cache_dir, "cas"))
- res = cli.run(
- project=project_dir,
- args=["workspace", "open", "target.bst", "--directory", workspace],
- )
+ res = cli.run(project=project_dir, args=["workspace", "open", "target.bst", "--directory", workspace],)
res.assert_success()
# Check that this time it does not push the sources