Files
deb-python-oauth2client/tox.ini
Danny Hermes 659869f19a Adding system tests to make sure token exchange works as expected.
- Updates CONTRIBUTING.md to explain how to set-up and run these tests.
- Requires a version of httplib2 that has not been released on PyPI
  yet in order to work on Python 3.
- Simply creates 3 different token types (JSON key for svc. acct.,
  P12 key for svc. acct., JSON key for user acct.) and then authorizes
  an httplib2.Http object to hit the USERINFO API.
2015-04-13 10:06:18 -07:00

93 lines
1.8 KiB
INI

[tox]
envlist = py26,py27,py33,py34,pypy,cover
[testenv]
basedeps = keyring
mock
pycrypto==2.6
webtest
nose
deps = {[testenv]basedeps}
django
pyopenssl==0.14
setenv = PYTHONPATH=../google_appengine
commands = nosetests --ignore-files=test_appengine\.py {posargs}
# whitelist
branches:
only:
- master
- python3
[testenv:cover]
basepython = python2.7
commands =
nosetests --with-xunit --with-xcoverage --cover-package=oauth2client --nocapture --cover-erase --cover-tests --cover-branches --ignore-files=test_appengine\.py --cover-min-percentage=60
deps = {[testenv]deps}
coverage
nosexcover
[testenv:coveralls]
basepython = {[testenv:cover]basepython}
commands =
{[testenv:cover]commands}
coveralls
deps =
{[testenv:cover]deps}
coveralls
[testenv:docs]
basepython = python2.7
deps =
{[testenv:cover]deps}
python-gflags
pyyaml
sphinx>=1.3b2
sphinx-rtd-theme
commands = {toxinidir}/scripts/build-docs
[testenv:pushdocs]
basepython = python2.7
deps =
{[testenv:docs]deps}
ghp-import
commands =
{toxinidir}/scripts/build-docs
{toxinidir}/scripts/push-docs
[testenv:py26]
basepython = python2.6
deps = {[testenv]basedeps}
django>=1.5,<1.6
pyopenssl==0.14
[testenv:py26openssl13]
basepython = python2.6
deps = {[testenv]basedeps}
django>=1.5,<1.6
pyopenssl<0.14
[testenv:py27openssl13]
basepython = python2.7
deps = {[testenv]basedeps}
django>=1.5,<1.6
pyopenssl<0.14
[testenv:system-tests]
basepython =
python2.7
commands =
{toxinidir}/scripts/run_system_tests.sh
deps =
pycrypto==2.6
pyopenssl==0.14
[testenv:system-tests3]
basepython =
python3.4
commands =
{toxinidir}/scripts/run_system_tests.sh
deps =
pycrypto==2.6
pyopenssl==0.14