Last active
December 10, 2018 09:35
-
-
Save xnuinside/0a0cccf8321ad736628ec2b8ad166d2b to your computer and use it in GitHub Desktop.
Tox.ini example for Airflow Project (plugins, dags and etc) tests runner
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# example for tox.ini with test mode for airflow turned on | |
[tox] | |
envlist = flake8, py27 | |
[testenv] | |
basepython = python2.7 | |
[testenv:flake8] | |
deps= | |
flake8 | |
commands= | |
flake8 package_name/ | |
flake8 tests/ | |
[testenv:py27] | |
deps= -r {toxinidir}/test-requirements.txt | |
setenv = AIRFLOW__CORE__UNIT_TEST_MODE = True | |
commands= | |
printenv | |
python -m unittest discover {toxinidir}/tests/unittests | |
[flake8] | |
exclude = package_name/folder_to_exclud | |
max-line-length = 90 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment