chore: upgrade pytest-html 3.x -> 4.x, fix pytest.ini

- Upgrade pytest-html 3.2.0 to 4.x (совместима с pytest 9.1)
- Убрать пин версии pytest-html==3.2.0 в requirements.txt
- Перенести --html флаг из ручного запуска в pytest.ini addopts,
  чтобы отчёт генерировался автоматически при каждом запуске pytest
- Убрать html_report_dir из pytest.ini (не поддерживается, вызывал
  PytestConfigWarning: Unknown config option)
- Исправить опечатку в маркере vetstation
- Добавить html-report/ и report.html в .gitignore
This commit is contained in:
VolandSZ
2026-08-31 11:27:54 +03:00
parent 642ee27588
commit c47aeff07d
3 changed files with 11 additions and 9 deletions

3
.gitignore vendored
View File

@ -174,3 +174,6 @@ cython_debug/
# PyPI configuration file
.pypirc
# Test reports
html-report/
report.html

View File

@ -1,10 +1,9 @@
[pytest]
addopts = --browser chromium --headed --slowmo 1000
html_report_dir = html-report
addopts = --browser chromium --headed --slowmo 1000 --html=html-report/report.html --self-contained-html
testpaths = tests
markers =
vetdept: тесты для роли Управление ветеринарии
vetstation: тесты для роли Ветеринарная станци
vetstation: тесты для роли Ветеринарная станция
prefecture: тесты для роли Администрация
contractor_admin: тесты для роли Администратор организации отлова
smoke: критически важные тесты для быстрого прогона

View File

@ -2,5 +2,5 @@ playwright
pytest
pytest-playwright
pytest-xdist
pytest-html==3.2.0
pytest-html
python-dotenv