tests: make tests work on hosts missing libjs-leaflet
This commit is contained in:
parent
aad64825af
commit
e4a0cf641c
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue