Exemple #1
0
def register_actions(state):
    if not actions.installed(state.app):
        return
    with state.app.app_context():
        actions.register(*_actions)
Exemple #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'))
Exemple #3
0
def register_actions(state):
    if not actions.installed(state.app):
        return
    with state.app.app_context():
        actions.register(*_actions)
Exemple #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"))
Exemple #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'))
Exemple #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"))