Skip to content

Commit e7ebd65

Browse files
committed
tox.ini: introduce tox to test envvar settings
pytest-httpserver now allows changing host and port settings by setting environment variables. This needs to be tested by setting the environment variable before running the test and tox is a perfect tool for this.
1 parent a7b855c commit e7ebd65

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

tox.ini

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[tox]
2+
envlist =
3+
py36
4+
py36-env
5+
6+
[testenv]
7+
commands =
8+
pip install -e .[test]
9+
pytest
10+
11+
12+
[testenv:py36-env]
13+
setenv =
14+
PYTEST_HTTPSERVER_HOST=0.0.0.0
15+
PYTEST_HTTPSERVER_PORT=7777

0 commit comments

Comments
 (0)