added pytest to requirements_dev

reworking test strucutre

reworked pytest.ini, removed functional imports, updated req_dev

remove unneeded __init__ files

add testing checker to local_settings examples

adding testing packages to system Python for docker
This commit is contained in:
Wayne Witzel III
2016-01-27 13:42:58 -05:00
parent 5d6ea242c0
commit 3d4580611e
14 changed files with 35 additions and 181 deletions

View File

@@ -357,17 +357,17 @@ pylint: reports
@(set -o pipefail && $@ | reports/$@.report)
check: flake8 pep8 # pyflakes pylint
# Run all API unit tests.
test:
$(PYTHON) manage.py test -v2 awx.main.tests
$(PYTHON) -m py.test awx/main/tests
test_unit:
$(PYTHON) -m py.test awx/main/tests/unit
# Run all API unit tests with coverage enabled.
test_coverage:
coverage run manage.py test -v2 awx.main.tests
$(PYTHON) -m py.test --cov=awx awx/main/tests
# Output test coverage as HTML (into htmlcov directory).
coverage_html: