summaryrefslogtreecommitdiff
path: root/tests/sources/patch.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/sources/patch.py')
-rw-r--r--tests/sources/patch.py24
1 files changed, 5 insertions, 19 deletions
diff --git a/tests/sources/patch.py b/tests/sources/patch.py
index da93684db..64d082797 100644
--- a/tests/sources/patch.py
+++ b/tests/sources/patch.py
@@ -33,9 +33,7 @@ def test_non_regular_file_patch(cli, datafiles):
if os.path.isfile(patch_path) and not os.path.islink(patch_path):
result.assert_success()
else:
- result.assert_main_error(
- ErrorDomain.LOAD, LoadErrorReason.PROJ_PATH_INVALID_KIND
- )
+ result.assert_main_error(ErrorDomain.LOAD, LoadErrorReason.PROJ_PATH_INVALID_KIND)
@pytest.mark.datafiles(os.path.join(DATA_DIR, "basic"))
@@ -70,10 +68,7 @@ def test_stage_and_patch(cli, tmpdir, datafiles):
# Build, checkout
result = cli.run(project=project, args=["build", "target.bst"])
result.assert_success()
- result = cli.run(
- project=project,
- args=["artifact", "checkout", "target.bst", "--directory", checkoutdir],
- )
+ result = cli.run(project=project, args=["artifact", "checkout", "target.bst", "--directory", checkoutdir],)
result.assert_success()
# Test the file.txt was patched and changed
@@ -109,10 +104,7 @@ def test_stage_separate_patch_dir(cli, tmpdir, datafiles):
# Track, fetch, build, checkout
result = cli.run(project=project, args=["build", "target.bst"])
result.assert_success()
- result = cli.run(
- project=project,
- args=["artifact", "checkout", "target.bst", "--directory", checkoutdir],
- )
+ result = cli.run(project=project, args=["artifact", "checkout", "target.bst", "--directory", checkoutdir],)
result.assert_success()
# Test the file.txt was patched and changed
@@ -128,10 +120,7 @@ def test_stage_multiple_patches(cli, tmpdir, datafiles):
# Track, fetch, build, checkout
result = cli.run(project=project, args=["build", "target.bst"])
result.assert_success()
- result = cli.run(
- project=project,
- args=["artifact", "checkout", "target.bst", "--directory", checkoutdir],
- )
+ result = cli.run(project=project, args=["artifact", "checkout", "target.bst", "--directory", checkoutdir],)
result.assert_success()
# Test the file.txt was patched and changed
@@ -147,10 +136,7 @@ def test_patch_strip_level(cli, tmpdir, datafiles):
# Track, fetch, build, checkout
result = cli.run(project=project, args=["build", "target.bst"])
result.assert_success()
- result = cli.run(
- project=project,
- args=["artifact", "checkout", "target.bst", "--directory", checkoutdir],
- )
+ result = cli.run(project=project, args=["artifact", "checkout", "target.bst", "--directory", checkoutdir],)
result.assert_success()
# Test the file.txt was patched and changed