How to use the sure.action_for function in sure

To help you get started, we’ve selected a few sure examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github gabrielfalcao / couleur / tests / test_couleur.py View on Github external
    @action_for(context, provides=["check_output"])
    def check_output(expected):
        context.output.getvalue().should.equal(expected)
github gabrielfalcao / sure / tests / test_old_api.py View on Github external
        @action_for(context, provides=['one', 'two'])
        def bad_action():
            context.one = 123
github gabrielfalcao / couleur / tests / test_couleur.py View on Github external
    @action_for(context, provides=["check_output"])
    def make_shell(*args, **kw):
        context.sh = Shell(context.output, *args, **kw)
github gabrielfalcao / sure / tests / test_old_api.py View on Github external
        @action_for(context, depends_on=['something'])
        def lonely_action():
            pass
github gabrielfalcao / sure / tests / test_old_api.py View on Github external
        @action_for(context, provides=['some_attr'])
        def dependency_action():
            context.some_attr = True
github gabrielfalcao / sure / tests / test_old_api.py View on Github external
        @action_for(context, provides=['var1', 'foobar'])
        def the_context_has_variables():
            context.var1 = 123
            context.foobar = "qwerty"
github gabrielfalcao / sure / tests / test_old_api.py View on Github external
        @action_for(context, depends_on=['some_attr'])
        def my_action():
            pass