diff options
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" |