/
githubmirror
/
bash-completion
Обзор
Документация
Войти
/
githubmirror
/
bash-completion
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/t/test_ifdown.py
20 строк
544 B
Ville Skyttä
test(pytest): pytest.mark.skip instead of xfail where appropriate
25 июн 2026, 21:30
25 июн 2026, 21:30
b00976f
Код
Авторство
О чём код?
import os import pytest from conftest import in_container class TestIfdown: @pytest.mark.skipif( os.environ.get("NETWORK") == "none", reason="There won't be any configured interfaces without network", ) @pytest.mark.skipif(in_container(), reason="Probably fails in a container") @pytest.mark.complete("ifdown ", require_cmd=True) def test_1(self, completion): assert completion @pytest.mark.complete("ifdown bash-completion ") def test_2(self, completion): assert not completion