| 1 |
""" |
| 2 |
A semi-integration-test style fixture spanning multiple feature examples. |
| 3 |
|
| 4 |
If we're being honest, though, the new 'tree' fixture package is a lot bigger. |
| 5 |
""" |
| 6 |
|
| 7 |
from invoke.tasks import task |
| 8 |
|
| 9 |
|
| 10 |
@task |
| 11 |
def print_foo(c): |
| 12 |
print("foo") |
| 13 |
|
| 14 |
|
| 15 |
@task |
| 16 |
def print_name(c, name): |
| 17 |
print(name) |
| 18 |
|
| 19 |
|
| 20 |
@task |
| 21 |
def print_underscored_arg(c, my_option): |
| 22 |
print(my_option) |
| 23 |
|
| 24 |
|
| 25 |
@task |
| 26 |
def foo(c): |
| 27 |
print("foo") |
| 28 |
|
| 29 |
|
| 30 |
@task(foo) |
| 31 |
def bar(c): |
| 32 |
print("bar") |
| 33 |
|
| 34 |
|
| 35 |
@task |
| 36 |
def post2(c): |
| 37 |
print("post2") |
| 38 |
|
| 39 |
|
| 40 |
@task(post=[post2]) |
| 41 |
def post1(c): |
| 42 |
print("post1") |
| 43 |
|
| 44 |
|
| 45 |
@task(foo, bar, post=[post1, post2]) |
| 46 |
def biz(c): |
| 47 |
print("biz") |
| 48 |
|
| 49 |
|
| 50 |
@task(bar, foo, post=[post2, post1]) |
| 51 |
def boz(c): |
| 52 |
print("boz") |