Mercurial > kallithea
view tox.ini @ 6387:aaacb075c3f3
hg: return 400 Bad Request for hg commands that not are commands
Avoid throwing bare Exceptions which requires framework specific testing.
Instead, return a reasonable http error code and make the test more framework
independent.
The "helpful" message will just be a description of the http exception and not
sent to the client.
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Wed, 04 Jan 2017 23:16:08 +0100 |
parents | dd676fdeda0f |
children | ab30729c735c |
line wrap: on
line source
[tox] minversion = 1.8 envlist = py{26,27}-pytest [testenv] setenv = PYTHONHASHSEED = 0 deps = -r{toxinidir}/dev_requirements.txt py26-pytest: unittest2 python-ldap python-pam commands = pytest: py.test {posargs}