MyTetra Share
Делитесь знаниями!
Пропустить тест в pytest
Время создания: 16.12.2019 18:31
Автор: br0ke
Текстовые метки: python, pytest, py.test, test, skip, skipping, mark
Раздел: Информационные технологии - Python - Библиотеки - pytest
Запись: and-semakin/mytetra_data/master/base/15765031019ibeudfqg6/text.html на raw.githubusercontent.com

Просто пропустить тест:


@pytest.mark.skip(reason="no way of currently testing this")

def test_the_unknown():

...


либо:


def test_function():

if not valid_config():

pytest.skip("unsupported configuration")



 
MyTetra Share v.0.59
Яндекс индекс цитирования