def register_actions(state): if not actions.installed(state.app): return with state.app.app_context(): actions.register(*_actions)
def test_installed(self): assert actions.installed() # test current_app (==self.app) assert actions.installed(self.app) assert not actions.installed(Flask('dummyapp'))
def register_actions(state): if not actions.installed(state.app): return with state.app.app_context(): actions.register(*_actions)
def test_installed(app_context): assert actions.installed() # test current_app (==self.app) assert actions.installed(app_context.app) assert not actions.installed(Flask("dummyapp"))
def test_installed(self): assert actions.installed() # test current_app (==self.app) assert actions.installed(self.app) assert not actions.installed(Flask('dummyapp'))
def test_installed(app_context: AppContext) -> None: assert actions.installed() # test current_app (==self.app) assert actions.installed(app_context.app) assert not actions.installed(Flask("dummyapp"))