/
githubmirror
/
salt
Обзор
Документация
Войти
/
githubmirror
/
salt
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
tests/pytests/integration/modules/test_test.py
8 строк
389 B
Wayne Werner
Add tests for deprecation warnings
10 янв 2023, 22:53
10 янв 2023, 22:53
51f5610
Код
Авторство
О чём код?
def test_deprecation_warning_emits_deprecation_warnings(salt_call_cli): ret = salt_call_cli.run("test.deprecation_warning") assert ret.stderr.count("DeprecationWarning") >= 2 assert "This is a test deprecation warning by version." in ret.stderr assert ( "This is a test deprecation warning by date very far into the future (3000-01-01)" in ret.stderr )