Skip to content

Commit 84fb5c9

Browse files
committed
Lint.
1 parent c73c42e commit 84fb5c9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/test_source_cli.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2120,13 +2120,12 @@ class Settings(BaseModel):
21202120
in capsys.readouterr().err
21212121
)
21222122

2123-
21242123
with monkeypatch.context() as m:
21252124
m.setattr(sys, 'argv', ['example.py', '--help'])
21262125
with pytest.raises(SystemExit):
21272126
CliApp.run(Settings)
21282127
usage = (
2129-
"""usage: example.py [-h] [--circle-optional.radius float |
2128+
"""usage: example.py [-h] [--circle-optional.radius float |
21302129
--circle-optional.diameter float |
21312130
--circle-optional.perimeter float]
21322131
(--circle-required.radius float |
@@ -2138,7 +2137,8 @@ class Settings(BaseModel):
21382137
(--circle-required.radius float | --circle-required.diameter float | --circle-required.perimeter float)"""
21392138
)
21402139
assert (
2141-
capsys.readouterr().out == f"""{usage}
2140+
capsys.readouterr().out
2141+
== f"""{usage}
21422142
21432143
{ARGPARSE_OPTIONS_TEXT}:
21442144
-h, --help show this help message and exit
@@ -2159,7 +2159,7 @@ class Settings(BaseModel):
21592159
--circle-required.perimeter float
21602160
(default: 23)
21612161
"""
2162-
)
2162+
)
21632163

21642164

21652165
def test_cli_mutually_exclusive_group_exceptions():

0 commit comments

Comments
 (0)