tests: make tests work on hosts missing libjs-leaflet

This commit is contained in:
Frédéric Péters 2016-06-21 22:35:13 +02:00
parent aad64825af
commit e4a0cf641c
1 changed files with 3 additions and 1 deletions

View File

@ -1,3 +1,4 @@
import os
import sys
import shutil
@ -152,7 +153,8 @@ def test_static_directories():
assert get_app(pub).get('/css/wcs.css')
assert get_app(pub).get('/images/feed-icon-10x10.png')
assert get_app(pub).get('/qo/css/qommon.css')
assert get_app(pub).get('/leaflet/leaflet.js')
if os.path.exists('/usr/share/javascript/leaflet/'):
assert get_app(pub).get('/leaflet/leaflet.js')
assert get_app(pub).get('/static/css/gadjo.css')
assert get_app(pub).get('/static/xstatic/jquery.js')
assert get_app(pub).get('/static/xstatic/jquery-ui.js')