#NEWLINE# @ pytest . fixture ( scope = 'function' ) #NEWLINE# def client( app , loop , monkeypatch ) : #NEWLINE# #INDENT# 'Provide test client for web requests.' #NEWLINE# app = WSGIHandler ( app , loop ) #NEWLINE# client_ = webtest . TestApp ( app ) #NEWLINE# client_ . exception = webtest . AppError #NEWLINE# monkeypatch . setattr ( aiohttp . parsers . StreamWriter , 'set_tcp_cork' , ( lambda s , v : True ) ) #NEWLINE# monkeypatch . setattr ( aiohttp . parsers . StreamWriter , 'set_tcp_nodelay' , ( lambda s , v : True ) ) #NEWLINE# return client_