@pytest.fixture
def hug_api():
 api = TestAPI('fake_api_{}'.format(randint(0, 1000000)))
 api.route = Routers(hug.routing.URLRouter().api(api), hug.routing.LocalRouter().api(api), hug.routing.CLIRouter().api(api))
 return api

@ pytest . fixture def hug_api ( ) : api = TestAPI ( 'fake_api_{}' . format ( randint ( 0 , 1000000 ) ) ) api . route = Routers ( hug . routing . URLRouter ( ) . api ( api ) , hug . routing . LocalRouter ( ) . api ( api ) , hug . routing . CLIRouter ( ) . api ( api ) ) return api
defines a dependency for and then includes a uniquely identified hug api for a single test case .