СС
def function_teardown(app, failed_check):Size: a a a
СС
def function_teardown(app, failed_check):СС
function_teardown? у тебя 1 браузер на все тесты?КИ
ПБ
А
А
ПБ
@pytest.hookimpl(hookwrapper=True, tryfirst=True)
def pytest_runtest_makereport(item):
outcome = yield
rep = outcome.get_result()
if rep.when == 'call' and rep.failed:
take_screenshot()
А
OC
class TestSomething:
@pytest.fixture()
def some_fixture_1()
@pytest.fixture()
def some_fixture_2()
def test_1(some_fixture_1)
def test_2(some_fixture_2)
AS
В
T
В
В
А
DV
AS
DV
А