diff options
author | Brian Harring <ferringb@gmail.com> | 2022-12-25 11:26:31 -0800 |
---|---|---|
committer | Arthur Zamarin <arthurzam@gentoo.org> | 2022-12-25 21:32:26 +0200 |
commit | b17af120f9081aa30d6a368fd75a69c298cb70e0 (patch) | |
tree | 3de8bc1fba4fbd004b9b1703e67b1a9feb5ab6fc /tests/sync/test_darcs.py | |
parent | Fix secondary exception from when an EBD fails to start. (diff) | |
download | pkgcore-b17af120f9081aa30d6a368fd75a69c298cb70e0.tar.gz pkgcore-b17af120f9081aa30d6a368fd75a69c298cb70e0.tar.bz2 pkgcore-b17af120f9081aa30d6a368fd75a69c298cb70e0.zip |
Reformat w/ black-22.12.0
Signed-off-by: Brian Harring <ferringb@gmail.com>
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'tests/sync/test_darcs.py')
-rw-r--r-- | tests/sync/test_darcs.py | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/tests/sync/test_darcs.py b/tests/sync/test_darcs.py index 96a7bf71e..4abdaa102 100644 --- a/tests/sync/test_darcs.py +++ b/tests/sync/test_darcs.py @@ -6,10 +6,9 @@ from snakeoil.process import CommandNotFound class TestDarcsSyncer: - @pytest.fixture(autouse=True) def _setup(self, tmp_path): - self.repo_path = tmp_path / 'repo' + self.repo_path = tmp_path / "repo" def test_uri_parse(self): assert darcs.darcs_syncer.parse_uri("darcs+http://dar") == "http://dar" @@ -18,13 +17,13 @@ class TestDarcsSyncer: darcs.darcs_syncer.parse_uri("darcs://dar") # external binary doesn't exist - with mock.patch('snakeoil.process.find_binary') as find_binary: - find_binary.side_effect = CommandNotFound('darcs') + with mock.patch("snakeoil.process.find_binary") as find_binary: + find_binary.side_effect = CommandNotFound("darcs") with pytest.raises(base.SyncError): darcs.darcs_syncer(str(self.repo_path), "darcs+http://foon.com/dar") # fake that the external binary exists - with mock.patch('snakeoil.process.find_binary') as find_binary: - find_binary.return_value = 'bzr' + with mock.patch("snakeoil.process.find_binary") as find_binary: + find_binary.return_value = "bzr" o = darcs.darcs_syncer(str(self.repo_path), "darcs+http://dar") assert o.uri == "http://dar" |