@pytest.fixture(autouse=True)
def httpbin_after_test(httpbin, request):
 request.node._httpbin_log = httpbin.captured_log
 (yield)
 httpbin.after_test()

@ pytest . fixture ( autouse = True ) def httpbin_after_test ( httpbin , request ) : request . node . _httpbin_log = httpbin . captured_log ( yield ) httpbin . after_test ( )
fixture to clean httpbin request list after each test .