File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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
21652165def test_cli_mutually_exclusive_group_exceptions ():
You can’t perform that action at this time.
0 commit comments