@pytest.fixture(scope='session', autouse=True)
def httpbin(qapp):
 httpbin = WebserverProcess('webserver_sub')
 httpbin.start()
 (yield httpbin)
 httpbin.cleanup()

@ pytest . fixture ( scope = 'session' , autouse = True ) def httpbin ( qapp ) : httpbin = WebserverProcess ( 'webserver_sub' ) httpbin . start ( ) ( yield httpbin ) httpbin . cleanup ( )
returns url for httpbin resource .