Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def _set_up_sanic_logging(app, level=logging.DEBUG):
cf_logging._SETUP_DONE = False
sanic_logging.init(app, level)
def test_sanic_requires_valid_app():
""" Test that the api requires a valid app to be passed in """
sanic_logging.init({})