Files
deb-python-sqlalchemy-utils/tox.ini
Jacob Magnusson 815f07d6c1 Use pytest fixtures to reduce complexity and repetition
Also:

Allow override of database name and user in tests (important for me as I would have to mess with my PSQL and MySQL database users otherwise)
Use dict.items instead of six.iteritems as it sporadically caused RuntimeError: dictionary changed size during iteration in Python 2.6 tests.
Fix typo DNS to DSN
Adds Python 3.5 to tox.ini
Added an .editorconfig
Import babel.dates in sqlalchemy_utils.i18n as an exception would be raised when using the latest versions of babel.
2016-01-19 10:52:30 +01:00

37 lines
682 B
INI

[tox]
envlist = py26, py27, py33, py34, py35, lint
[testenv]
commands =
py.test sqlalchemy_utils tests
deps =
.[test_all]
passenv = SQLALCHEMY_UTILS_TEST_DB SQLALCHEMY_UTILS_TEST_POSTGRESQL_USER SQLALCHEMY_UTILS_TEST_MYSQL_USER
[testenv:py26]
recreate = True
[testenv:py27]
recreate = True
[testenv:py33]
recreate = True
[testenv:py34]
recreate = True
[testenv:py35]
recreate = True
[testenv:lint]
recreate = True
commands =
flake8 sqlalchemy_utils tests
isort --verbose --recursive --diff sqlalchemy_utils tests
isort --verbose --recursive --check-only sqlalchemy_utils tests
skip_install = True
deps =
.[test_all]
flake8>=2.5.0
isort==4.2.2