diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 800c2057..0f3ffc83 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -138,7 +138,7 @@ arch_pip_install: - master@fdroid/fdroidserver script: - pacman --sync --sysupgrade --refresh --noconfirm git grep python-pip python-virtualenv tar - - pip install -e . + - pip install -e .[test] - fdroid - fdroid readmeta - fdroid update --help diff --git a/tests/index.TestCase b/tests/index.TestCase index abd1cc24..14383959 100755 --- a/tests/index.TestCase +++ b/tests/index.TestCase @@ -13,7 +13,6 @@ import requests import tempfile import json import shutil -from html5print import CSSBeautifier, HTMLBeautifier localmodule = os.path.realpath( os.path.join(os.path.dirname(inspect.getfile(inspect.currentframe())), '..')) @@ -378,6 +377,12 @@ class IndexTest(unittest.TestCase): self.assertTrue(os.path.exists(os.path.join('repo', 'index.css'))) self.assertTrue(os.path.exists(os.path.join('repo', 'index.png'))) + try: + from html5print import CSSBeautifier, HTMLBeautifier + except ImportError: + print('WARNING: skipping rest of test since androguard is missing!') + return + with open(os.path.join("repo", "index.html")) as f: html = f.read() pretty_html = HTMLBeautifier.beautify(html)