@@ -520,7 +520,7 @@ def cli(shout):
520520 "value" ,
521521 (
522522 # Extra spaces inside the value.
523- "tr ue" ,
523+ "tr ue" , # codespell:ignore ue
524524 "fa lse" ,
525525 # Numbers.
526526 "10" ,
@@ -999,13 +999,13 @@ def get_default(self, ctx, call=True):
999999 return "I am a default"
10001000
10011001 @click .command ()
1002- @click .argument ("testarg" , cls = CustomArgument , default = "you wont see me" )
1002+ @click .argument ("testarg" , cls = CustomArgument , default = "you won't see me" )
10031003 def cmd (testarg ):
10041004 click .echo (testarg )
10051005
10061006 result = runner .invoke (cmd )
10071007 assert "I am a default" in result .output
1008- assert "you wont see me" not in result .output
1008+ assert "you won't see me" not in result .output
10091009
10101010
10111011def test_option_custom_class (runner ):
@@ -1015,13 +1015,13 @@ def get_help_record(self, ctx):
10151015 return ("--help" , "I am a help text" )
10161016
10171017 @click .command ()
1018- @click .option ("--testoption" , cls = CustomOption , help = "you wont see me" )
1018+ @click .option ("--testoption" , cls = CustomOption , help = "you won't see me" )
10191019 def cmd (testoption ):
10201020 click .echo (testoption )
10211021
10221022 result = runner .invoke (cmd , ["--help" ])
10231023 assert "I am a help text" in result .output
1024- assert "you wont see me" not in result .output
1024+ assert "you won't see me" not in result .output
10251025
10261026
10271027@pytest .mark .parametrize (
@@ -1068,8 +1068,8 @@ def get_help_record(self, ctx):
10681068 """a dumb override of a help text for testing"""
10691069 return ("--help" , "I am a help text" )
10701070
1071- # Assign to a variable to re-use the decorator.
1072- testoption = click .option ("--testoption" , cls = CustomOption , help = "you wont see me" )
1071+ # Assign to a variable to reuse the decorator.
1072+ testoption = click .option ("--testoption" , cls = CustomOption , help = "you won't see me" )
10731073
10741074 @click .command ()
10751075 @testoption
@@ -1085,7 +1085,7 @@ def cmd2(testoption):
10851085 for cmd in (cmd1 , cmd2 ):
10861086 result = runner .invoke (cmd , ["--help" ])
10871087 assert "I am a help text" in result .output
1088- assert "you wont see me" not in result .output
1088+ assert "you won't see me" not in result .output
10891089
10901090
10911091@pytest .mark .parametrize ("custom_class" , (True , False ))
0 commit comments