diff --git a/tests/test_checkupdates.py b/tests/test_checkupdates.py index 4cc76db3..7c4640bd 100755 --- a/tests/test_checkupdates.py +++ b/tests/test_checkupdates.py @@ -2,7 +2,6 @@ import git import os -import platform import shutil import tempfile import time @@ -17,6 +16,10 @@ import fdroidserver.checkupdates basedir = Path(__file__).parent +@unittest.skipUnless( + os.path.exists('/usr/bin/dpkg'), # easy test for "Debian-ish" + 'checkupdates is only ever run in production on Debian.', +) class CheckupdatesTest(unittest.TestCase): '''fdroidserver/checkupdates.py''' @@ -491,10 +494,6 @@ class CheckupdatesTest(unittest.TestCase): fdroidserver.checkupdates.main() sys_exit.assert_not_called() - @unittest.skipIf( - platform.system() == 'Darwin', - 'It is difficult to configure the base system for this test.', - ) def test_get_upstream_main_branch(self): os.chdir(self.testdir.name) testvalue = 'foo'