Skip to content

Commit 07bcc06

Browse files
brandon-leapyearZac-HD
authored andcommitted
Add test suites for pytest 5,6,7
1 parent af7e43d commit 07bcc06

File tree

3 files changed

+30
-4
lines changed

3 files changed

+30
-4
lines changed

.github/workflows/main.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,10 @@ jobs:
4242
- audit-conjecture-rust
4343
- lint-conjecture-rust
4444
- check-nose
45-
- check-pytest46
45+
- check-pytest4
46+
- check-pytest5
47+
- check-pytest6
48+
- check-pytest7
4649
- check-django40
4750
- check-django32
4851
- check-django22

hypothesis-python/tox.ini

+22-2
Original file line numberDiff line numberDiff line change
@@ -103,13 +103,33 @@ deps =
103103
commands=
104104
nosetests tests/cover/test_testdecorators.py
105105

106-
[testenv:pytest46]
106+
[testenv:pytest4]
107107
deps =
108108
-r../requirements/test.txt
109109
commands=
110-
pip install pytest==4.6 pytest-xdist==1.34
110+
pip install pytest==4.* pytest-xdist==1.34
111111
python -bb -X dev -m pytest tests/pytest tests/cover/test_testdecorators.py
112112

113+
[testenv:pytest5]
114+
deps =
115+
-r../requirements/test.txt
116+
commands=
117+
pip install pytest==5.* pytest-xdist
118+
python -bb -X dev -m pytest tests/pytest tests/cover/test_testdecorators.py
119+
120+
[testenv:pytest6]
121+
deps =
122+
-r../requirements/test.txt
123+
commands=
124+
pip install pytest==6.* pytest-xdist
125+
python -bb -X dev -m pytest tests/pytest tests/cover/test_testdecorators.py
126+
127+
[testenv:pytest7]
128+
deps =
129+
-r../requirements/test.txt
130+
commands=
131+
pip install pytest==7.* pytest-xdist
132+
python -bb -X dev -m pytest tests/pytest tests/cover/test_testdecorators.py
113133

114134
[testenv:coverage]
115135
deps =

tooling/src/hypothesistooling/__main__.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,10 @@ def standard_tox_task(name):
462462

463463

464464
standard_tox_task("nose")
465-
standard_tox_task("pytest46")
465+
standard_tox_task("pytest4")
466+
standard_tox_task("pytest5")
467+
standard_tox_task("pytest6")
468+
standard_tox_task("pytest7")
466469

467470
for n in [22, 32, 40]:
468471
standard_tox_task(f"django{n}")

0 commit comments

Comments
 (0)