-
Notifications
You must be signed in to change notification settings - Fork 86
/
tox.ini
13 lines (11 loc) · 702 Bytes
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
# Isolated package builds test from a temporary directory via tox
# Thanks to Paul Ganssle for the minimal example, see: https://blog.ganssle.io/articles/2019/08/test-as-installed.html and https://github.com/pganssle/tox-examples/blob/master/changedir/tox.ini
# Use `tox -e py`
[tox]
minversion=3.13.0
isolated_build=True
[testenv]
description = Run the tests under {basepython}
deps = pytest
changedir = {envtmpdir} # use a temporary directory to ensure we test the built package, not the repository version: https://blog.ganssle.io/articles/2019/08/test-as-installed.html and https://github.com/pganssle/tox-examples/blob/master/changedir/tox.ini
commands = python -m pytest {posargs} {toxinidir}