mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-19 21:30:10 +01:00
* Skip tidy check if html5print is not available
* install test dependencies on arch
This commit is contained in:
parent
d5a90ed60e
commit
b1bde9e407
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user