Exemplo n.º 1
0
def register_actions(state):
    if not actions.installed(state.app):
        return
    with state.app.app_context():
        actions.register(*_actions)
Exemplo n.º 2
0
 def test_installed(self):
   assert actions.installed()  # test current_app (==self.app)
   assert actions.installed(self.app)
   assert not actions.installed(Flask('dummyapp'))
Exemplo n.º 3
0
def register_actions(state):
    if not actions.installed(state.app):
        return
    with state.app.app_context():
        actions.register(*_actions)
Exemplo n.º 4
0
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"))
Exemplo n.º 5
0
 def test_installed(self):
     assert actions.installed()  # test current_app (==self.app)
     assert actions.installed(self.app)
     assert not actions.installed(Flask('dummyapp'))
Exemplo n.º 6
0
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"))