feat(testing): init pytest fixtures

current_test fixture allows to retrieve the current test context, that is
exposed through the shell environment
This commit is contained in:
Tiara Rodney 2025-06-20 21:47:17 +02:00
parent c579ddd022
commit 644beb8696
No known key found for this signature in database
GPG key ID: 5F43FAB4FBE5B5EB
6 changed files with 51 additions and 2 deletions

14
tox.ini
View file

@ -2,7 +2,8 @@
requires =
tox>=4.19
env_list =
py3{8-12}-{unit}
unit-py3{9-13}
integration-py3{9-13}-pytest8
lint
format
@ -34,7 +35,7 @@ deps =
commands =
black --check src tests
[testenv:py3{9-13}-unit]
[testenv:unit-py3{9-13}]
description = run type check on code base
labels = unit
deps =
@ -42,3 +43,12 @@ deps =
pytest
commands =
pytest tests/unit --junitxml=test-reports/{env_name}.xml
[testenv:integration-py3{9-13}-pytest8]
description = run pytest integration tests
labels = integration
deps =
{[testenv]deps}
pytest8: pytest>=8.0,<=9.0
commands =
pytest tests/integration -m pytest --junitxml=test-reports/{env_name}.xml