/
githubmirror
/
rich
Обзор
Документация
Войти
/
githubmirror
/
rich
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
tests/conftest.py
8 строк
245 B
Michał Górny
Fix running tests in environment with FORCE_COLOR or NO_COLOR set
09 дек 2023, 17:25
09 дек 2023, 17:25
7d79acb
Код
Авторство
О чём код?
import pytest @pytest.fixture(autouse=True) def reset_color_envvars(monkeypatch): """Remove color-related envvars to fix test output""" monkeypatch.delenv("FORCE_COLOR", raising=False) monkeypatch.delenv("NO_COLOR", raising=False)