1fdd2b42dSMike Bayer[tox]
2aa026c30SMike Bayerenvlist = py{310}-sqla_{cext,nocext}-db_{sqlite,postgresql,mysql,oracle,mssql}
3fdd2b42dSMike Bayer
4fdd2b42dSMike Bayer[testenv]
5fdd2b42dSMike Bayerdeps=pytest
681b68ac3SMike Bayer     pytest-xdist
7ef78334cSMike Bayer     mock
86b051503SMike Bayer     db_postgresql: .[postgresql]
96b051503SMike Bayer     db_mysql: .[mysql]
106b051503SMike Bayer     db_mysql: .[pymysql]
11ef78334cSMike Bayer     db_oracle: .[oracle]
12ef78334cSMike Bayer     db_mssql: .[mssql]
13ef78334cSMike Bayer
14fdd2b42dSMike Bayer
15f6fca84aSjonathan vanascoallowlist_externals=sh
16fdd2b42dSMike Bayer
17fdd2b42dSMike Bayercommands=
18ef78334cSMike Bayer    db_{mysql}: {env:BASECOMMAND} {env:MYSQL:} {posargs}
19ef78334cSMike Bayer    db_{postgresql}: {env:BASECOMMAND} {env:POSTGRESQL:} {posargs}
20ef78334cSMike Bayer    db_{sqlite}: {env:BASECOMMAND} {env:SQLITE:} {posargs}
21ef78334cSMike Bayer    db_{oracle}: {env:BASECOMMAND} {env:ORACLE:} {posargs}
22ef78334cSMike Bayer    db_{mssql}: {env:BASECOMMAND} {env:MSSQL:} {posargs}
23ef78334cSMike Bayer
24ef78334cSMike Bayerpassenv=ORACLE_HOME NLS_LANG TOX_POSTGRESQL TOX_MYSQL TOX_ORACLE TOX_MSSQL TOX_SQLITE TOX_WORKERS
25fdd2b42dSMike Bayer
26f30e35baSMike Bayer# -E     : ignore PYTHON* environment variables (such as PYTHONPATH)
27f30e35baSMike Bayer# -s     : don't add user site directory to sys.path; also PYTHONNOUSERSITE
28fdd2b42dSMike Bayersetenv=
2981b68ac3SMike Bayer    BASECOMMAND=python -m pytest test/aaa_profiling -x --nomemory --force-write-profiles
30f30e35baSMike Bayer    PYTHONPATH=
31f30e35baSMike Bayer    PYTHONNOUSERSITE=1
32f30e35baSMike Bayer    sqla_nocext: DISABLE_SQLALCHEMY_CEXT=1
33f559f378SMike Bayer    sqla_cext: REQUIRE_SQLALCHEMY_CEXT=1
34ef78334cSMike Bayer    db_sqlite: SQLITE={env:TOX_SQLITE:--db sqlite}
35ef78334cSMike Bayer    db_postgresql: POSTGRESQL={env:TOX_POSTGRESQL:--db postgresql}
36ef78334cSMike Bayer    db_mysql: MYSQL={env:TOX_MYSQL:--db mysql --db pymysql}
37ef78334cSMike Bayer    db_oracle: ORACLE={env:TOX_ORACLE:--db oracle}
38ef78334cSMike Bayer    db_mssql: MSSQL={env:TOX_MSSQL:--db mssql}
39fdd2b42dSMike Bayer
40fdd2b42dSMike Bayer
41