mirror of
https://github.com/jbranchaud/til
synced 2026-09-02 01:31:47 +00:00
Fix indentation of latest TIL
This commit is contained in:
@@ -11,7 +11,7 @@ equivalent to that in Python is
|
|||||||
[`textwrap.dedent`](https://docs.python.org/3/library/textwrap.html#textwrap.dedent).
|
[`textwrap.dedent`](https://docs.python.org/3/library/textwrap.html#textwrap.dedent).
|
||||||
|
|
||||||
> Remove any common leading whitespace from every line in text.
|
> Remove any common leading whitespace from every line in text.
|
||||||
>
|
>
|
||||||
> This can be used to make triple-quoted strings line up with the left edge of
|
> This can be used to make triple-quoted strings line up with the left edge of
|
||||||
> the display, while still presenting them in the source code in indented form.
|
> the display, while still presenting them in the source code in indented form.
|
||||||
|
|
||||||
@@ -23,18 +23,18 @@ def test_base_help_message():
|
|||||||
|
|
||||||
help_result = runner.invoke(cli, ["--help"])
|
help_result = runner.invoke(cli, ["--help"])
|
||||||
output = textwrap.dedent("""\
|
output = textwrap.dedent("""\
|
||||||
Usage: vmt [OPTIONS] COMMAND [ARGS]...
|
Usage: vmt [OPTIONS] COMMAND [ARGS]...
|
||||||
|
|
||||||
Options:
|
Options:
|
||||||
-v, --verbose See extra output when running commands
|
-v, --verbose See extra output when running commands
|
||||||
--help Show this message and exit.
|
--help Show this message and exit.
|
||||||
|
|
||||||
Commands:
|
Commands:
|
||||||
cancel
|
cancel
|
||||||
log
|
log
|
||||||
start
|
start
|
||||||
status
|
status
|
||||||
stop
|
stop
|
||||||
""")
|
""")
|
||||||
assert output in help_result.output
|
assert output in help_result.output
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user