Skip to content

Commit 064d020

Browse files
committed
tests / tox: Use pytest instead of unittest
Tests can still be run using unittest (and are in the test:3.7 gitlab CI item), but this gives prettier output on failures. Simplifications from moving away from unittest toward pytest can be explored independently of this change.
1 parent 28a45f1 commit 064d020

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tox.ini

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@ envlist = {py37,py38,py39,py310,pypy3}-{noextras,allextras},py38-uvloop
99
[testenv]
1010
deps =
1111
coverage
12+
pytest
1213

1314
commands =
1415
python -m coverage run --parallel -m aiocoap.cli.defaults
15-
python -m coverage run --parallel -m unittest discover -v {posargs}
16+
python -m coverage run --parallel -m pytest {posargs}
1617

1718
[testenv:{py37,py38,py39,py310,pypy3}-noextras]
1819
description = Running on plain Python

0 commit comments

Comments
 (0)