Skip to content

Commit 09dd985

Browse files
Skip breezy tests in favor of codecov image.
Signed-off-by: Leander Stephen D'Souza <[email protected]>
1 parent d2c0a77 commit 09dd985

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/test_bzr.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
"""Integration tests for BzrClient class."""
22

33
import os
4-
import sys
54
import tarfile
65
import tempfile
76
import unittest
7+
from shutil import which
88

99
from vcs2l.clients.bzr import BzrClient
1010
from vcs2l.util import rmtree
1111

12-
windows = sys.platform.startswith('win')
12+
bzr = which('bzr')
1313

1414

15-
@unittest.skipIf(windows, 'Breezy not supported on Windows')
15+
@unittest.skipIf(not bzr, '`bzr` was not found')
1616
class TestCheckout(unittest.TestCase):
1717
"""Simple integration tests for BzrClient checkout functionality."""
1818

@@ -63,7 +63,7 @@ def test_checkout_existing_directory_fails(self):
6363
self.assertIn('Target path exists and is not empty', str(context.exception))
6464

6565

66-
@unittest.skipIf(windows, 'Breezy not supported on Windows')
66+
@unittest.skipIf(not bzr, '`bzr` was not found')
6767
class TestExportRepository(unittest.TestCase):
6868
"""Integration tests for BzrClient _export_repository functionality."""
6969

0 commit comments

Comments
 (0)