diff options
author | Chandan Singh <csingh43@bloomberg.net> | 2019-11-05 13:40:03 +0000 |
---|---|---|
committer | Chandan Singh <csingh43@bloomberg.net> | 2019-11-05 13:40:03 +0000 |
commit | ab707e87f53249d7f2aac17683254b54196f90ce (patch) | |
tree | d1d2898c6561a8ca362419dce92a6f808d45b4e6 /tests/sourcecache/workspace.py | |
parent | e06c2295b063245dbdb2397e5bd8c4d0a79ba10d (diff) | |
download | buildstream-chandan/black.tar.gz |
Use 119 line lengthchandan/black
Diffstat (limited to 'tests/sourcecache/workspace.py')
-rw-r--r-- | tests/sourcecache/workspace.py | 16 |
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 |