tests/_support/contextualized.py
raw| 1 | from invoke import task |
| 2 | |
| 3 | |
| 4 | @task |
| 5 | def go(c): |
| 6 | return c |
| 7 | |
| 8 | |
| 9 | @task |
| 10 | def check_warn(c): |
| 11 | # default: False |
| 12 | assert c.config.run.warn is True |
| 13 | |
| 14 | |
| 15 | @task |
| 16 | def check_pty(c): |
| 17 | # default: False |
| 18 | assert c.config.run.pty is True |
| 19 | |
| 20 | |
| 21 | @task |
| 22 | def check_hide(c): |
| 23 | # default: None |
| 24 | assert c.config.run.hide == "both" |
| 25 | |
| 26 | |
| 27 | @task |
| 28 | def check_echo(c): |
| 29 | # default: False |
| 30 | assert c.config.run.echo is True |