File: integration.py

package info (click to toggle)
python-invoke 1.4.1%2Bds-0.1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,704 kB
  • sloc: python: 11,377; makefile: 18; sh: 12
file content (52 lines) | stat: -rw-r--r-- 666 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
"""
A semi-integration-test style fixture spanning multiple feature examples.

If we're being honest, though, the new 'tree' fixture package is a lot bigger.
"""

from invoke.tasks import task


@task
def print_foo(c):
    print("foo")


@task
def print_name(c, name):
    print(name)


@task
def print_underscored_arg(c, my_option):
    print(my_option)


@task
def foo(c):
    print("foo")


@task(foo)
def bar(c):
    print("bar")


@task
def post2(c):
    print("post2")


@task(post=[post2])
def post1(c):
    print("post1")


@task(foo, bar, post=[post1, post2])
def biz(c):
    print("biz")


@task(bar, foo, post=[post2, post1])
def boz(c):
    print("boz")