summaryrefslogtreecommitdiff
path: root/tests/sourcecache/workspace.py
diff options
context:
space:
mode:
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