Beispiel #1
0
def setup_actions(app):
    actions.init_app(app)
    for a in ALL_ACTIONS:
        a.enabled = True
    actions.register(*ALL_ACTIONS)
    actions._init_context(app)
    actions.context["show_all"] = True
Beispiel #2
0
def setup_actions(app: Application) -> None:
    actions.init_app(app)
    for a in ALL_ACTIONS:
        a.enabled = True
    actions.register(*ALL_ACTIONS)
    actions._init_context(app)
    actions.context["show_all"] = True
Beispiel #3
0
 def setUp(self):
   BaseTestCase.setUp(self)
   actions.init_app(self.app)
   for a in ALL_ACTIONS:
     a.enabled = True
   actions.register(*ALL_ACTIONS)
   actions._init_context(self.app)
   actions.context['show_all'] = True
Beispiel #4
0
 def setUp(self):
     BaseTestCase.setUp(self)
     actions.init_app(self.app)
     for a in ALL_ACTIONS:
         a.enabled = True
     actions.register(*ALL_ACTIONS)
     actions._init_context(self.app)
     actions.context['show_all'] = True
Beispiel #5
0
def setup_actions(app: Application) -> None:
    actions.init_app(app)
    for a in ALL_ACTIONS:
        # pyre-fixme[8]: Attribute has type `Callable[[Optional[bool]], bool]`; used
        #  as `bool`.
        a.enabled = True
    actions.register(*ALL_ACTIONS)
    actions._init_context(app)
    actions.context["show_all"] = True