test/apps/_aiohttp/__init__.py
def reset_app(app: web.Application, endpoints: Tuple[str, ...] = ("success", "failure")) -> None:
    """Clean up all internal containers of the application and resets its config."""
    app["incoming_requests"][:] = []
    app["schema_requests"][:] = []
    app["config"].update({"should_fail": True, "schema_data": make_schema(endpoints)})
Clean up all internal containers of the application and resets its config.
Clean up all internal containers of the application and resets its config.
Clean up all internal containers of the application and resets its config .
def reset_app(app: web.Application, endpoints: Tuple[str, ...] = ("success", "failure")) -> None:
    app["incoming_requests"][:] = []
    app["schema_requests"][:] = []
    app["config"].update({"should_fail": True, "schema_data": make_schema(endpoints)})
def reset_app ( app : web . Application , endpoints : Tuple [ str , ... ] = ( "success" , "failure" ) ) -> None : app [ "incoming_requests" ] [ : ] = [ ] app [ "schema_requests" ] [ : ] = [ ] app [ "config" ] . update ( { "should_fail" : True , "schema_data" : make_schema ( endpoints ) } )
Clean up all internal containers of the application and resets its config.
Clean up all internal containers of the application and resets its config .
"""Clean up all internal containers of the application and resets its config."""
app
web.Application
endpoints
Tuple[str, ...]