wsgi: clearer exception when CW_INSTANCE is missing
instance_name is mandatory for cwcfg.config_for()
Raise with a KeyError: 'CW_INSTANCE' instead of hard to read exception.
[tox]
envlist = py27-{release,dev,compat}
[testenv]
sitepackages = true
deps =
-rrequirements-test.txt
pytest
release: cubicweb
compat: hg+http://hg.logilab.org/master/cubicweb@cubicweb-3.20#egg=cubicweb
dev: hg+http://hg.logilab.org/master/cubicweb@cubicweb-3.23#egg=cubicweb
commands =
{envpython} -m pytest {posargs:{toxinidir}/pyramid_cubicweb/tests}