<commit_before># Tox (http://tox.testrun.org/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.

[tox]
minversion = 1.6
envlist = py26,py27,pep8
skipsdist = True

[testenv]
usedevelop = True
whitelist_externals = bash
setenv = VIRTUAL_ENV={envdir}
         OSTF_CI_CONF={toxinidir}/etc/tools/ostf_ci.conf
         OSTF_LOGS={toxinidir}/ostf
         OSTF_DB=ostf
         OSTF_DB_USER=ostf
         OSTF_DB_PW=ostf
         OSTF_DB_ROOT=postgres
         OSTF_DB_ROOTPW=insecure_slave
         OSTF_DB_ROOTPGPASS={toxinidir}/pgpass
deps = -r{toxinidir}/test-requirements.txt
commands =
    /bin/bash "{toxinidir}/etc/tools/prepare_settings.sh"
    /bin/bash "{toxinidir}/etc/tools/prepare_database.sh"
    ostf-server --config-file {toxinidir}/etc/tools/ostf_ci.conf --after-initialization-environment-hook
    nosetests {posargs:fuel_plugin/testing/tests/unit}
    nosetests {posargs:fuel_plugin/testing/tests/integration}

[tox:jenkins]
downloadcache = ~/cache/pip

[testenv:cover]
setenv = NOSE_WITH_COVERAGE=1

[testenv:venv]
deps = -r{toxinidir}/requirements.txt
commands = {posargs:}
<commit_msg>Pass environment variables of proxy to tox<commit_after># Tox (http://tox.testrun.org/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.

[tox]
minversion = 1.6
envlist = py26,py27,pep8
skipsdist = True

[testenv]
usedevelop = True
whitelist_externals = bash
setenv = VIRTUAL_ENV={envdir}
         OSTF_CI_CONF={toxinidir}/etc/tools/ostf_ci.conf
         OSTF_LOGS={toxinidir}/ostf
         OSTF_DB=ostf
         OSTF_DB_USER=ostf
         OSTF_DB_PW=ostf
         OSTF_DB_ROOT=postgres
         OSTF_DB_ROOTPW=insecure_slave
         OSTF_DB_ROOTPGPASS={toxinidir}/pgpass
passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
deps = -r{toxinidir}/test-requirements.txt
commands =
    /bin/bash "{toxinidir}/etc/tools/prepare_settings.sh"
    /bin/bash "{toxinidir}/etc/tools/prepare_database.sh"
    ostf-server --config-file {toxinidir}/etc/tools/ostf_ci.conf --after-initialization-environment-hook
    nosetests {posargs:fuel_plugin/testing/tests/unit}
    nosetests {posargs:fuel_plugin/testing/tests/integration}

[tox:jenkins]
downloadcache = ~/cache/pip

[testenv:cover]
setenv = NOSE_WITH_COVERAGE=1

[testenv:venv]
deps = -r{toxinidir}/requirements.txt
commands = {posargs:}

{'fraction_non_alphanumeric': 0.10612400152149107, 'fraction_numerical': 0.006085964244960061, 'mean_word_length': 4.047984644913628, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4271206', 'n_tokens_mistral': 1026, 'n_tokens_neox': 957, 'n_words': 185}