<commit_before>[tox]
skipsdist = true
envlist =
    api-lint,
    ui-lint,
    api,
    ui,
    coveralls

[testenv]
basepython = python2.7
setenv =
    DJANGO_SETTINGS_MODULE = awx.settings.development_quiet
    # For OS X to be able to install pycrypto.
    # CFLAGS = -I/opt/local/include
    SWIG_FEATURES = -cpperraswarn -includeall -I/usr/include/openssl
    HOME = {homedir}
    USERPROFILE = {homedir}
    ANSIBLE_USE_VENV = True
    ANSIBLE_VENV_PATH = {toxworkdir}
    TOWER_USE_VENV = True
    TOWER_VENV_PATH = {toxworkdir}
    SKIP_SLOW_TESTS = True

[testenv:api-lint]
deps =
    -r{toxinidir}/requirements/requirements.txt
    -r{toxinidir}/requirements/requirements_dev.txt
    coverage
    coveralls
commands =
    make flake8

[testenv:ui-lint]
deps =
    nodeenv
commands =
    make jshint

[testenv:api]
deps =
    -r{toxinidir}/requirements/requirements.txt
    -r{toxinidir}/requirements/requirements_dev.txt
    ansible
    coverage
    coveralls
commands =
    python setup.py develop
    # coverage run --help
    # coverage run -p --source awx/main/tests -m pytest {posargs}
    py.test awx/main/tests {posargs}

[testenv:ui]
deps =
    nodeenv
commands =
    make UI_TEST_MODE=CI test-ui

[testenv:coveralls]
commands=
    coverage combine
    coverage report -m
    coveralls

[pytest]
DJANGO_SETTINGS_MODULE = awx.settings.development
python_paths = venv/tower/lib/python2.7/site-packages
site_dirs = venv/tower/lib/python2.7/site-packages
python_files = *.py
addopts = --reuse-db --nomigrations --tb=native
markers =
    ac: access control test
    license_feature: ensure license features are accessible or not depending on license
    mongo_db: drop mongodb test database before test runs<commit_msg>Only run unit and function tests<commit_after>[tox]
skipsdist = true
envlist =
    api-lint,
    ui-lint,
    api,
    ui,
    coveralls

[testenv]
basepython = python2.7
setenv =
    DJANGO_SETTINGS_MODULE = awx.settings.development_quiet
    # For OS X to be able to install pycrypto.
    # CFLAGS = -I/opt/local/include
    SWIG_FEATURES = -cpperraswarn -includeall -I/usr/include/openssl
    HOME = {homedir}
    USERPROFILE = {homedir}
    ANSIBLE_USE_VENV = True
    ANSIBLE_VENV_PATH = {toxworkdir}
    TOWER_USE_VENV = True
    TOWER_VENV_PATH = {toxworkdir}
    SKIP_SLOW_TESTS = True

[testenv:api-lint]
deps =
    -r{toxinidir}/requirements/requirements.txt
    -r{toxinidir}/requirements/requirements_dev.txt
    coverage
    coveralls
commands =
    make flake8

[testenv:ui-lint]
deps =
    nodeenv
commands =
    make jshint

[testenv:api]
deps =
    -r{toxinidir}/requirements/requirements.txt
    -r{toxinidir}/requirements/requirements_dev.txt
    ansible
    coverage
    coveralls
commands =
    python setup.py develop
    # coverage run --help
    # coverage run -p --source awx/main/tests -m pytest {posargs}
    py.test awx/main/tests/{unit,functional} {posargs}

[testenv:ui]
deps =
    nodeenv
commands =
    make UI_TEST_MODE=CI test-ui

[testenv:coveralls]
commands=
    coverage combine
    coverage report -m
    coveralls

[pytest]
DJANGO_SETTINGS_MODULE = awx.settings.development
python_paths = venv/tower/lib/python2.7/site-packages
site_dirs = venv/tower/lib/python2.7/site-packages
python_files = *.py
addopts = --reuse-db --nomigrations --tb=native
markers =
    ac: access control test
    license_feature: ensure license features are accessible or not depending on license
    mongo_db: drop mongodb test database before test runs
{'fraction_non_alphanumeric': 0.0908311910882605, 'fraction_numerical': 0.003998857469294488, 'mean_word_length': 3.2969325153374234, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2378833', 'n_tokens_mistral': 1280, 'n_tokens_neox': 1254, 'n_words': 276}