88from  pylint .testutils  import  CheckerTestCase , MessageTest , _tokenize_str , set_config 
99
1010
11+ # pylint: disable=too-many-public-methods 
1112class  TestFixme (CheckerTestCase ):
1213    CHECKER_CLASS  =  misc .EncodingChecker 
1314
@@ -124,7 +125,6 @@ def test_docstring_with_message(self) -> None:
124125        """ 
125126        with  self .assertAddsMessages (
126127            MessageTest (msg_id = "fixme" , line = 2 , args = "FIXME message" , col_offset = 9 )
127-             
128128        ):
129129            self .checker .process_tokens (_tokenize_str (code ))
130130
@@ -135,7 +135,6 @@ def test_docstring_with_message_single_quote(self) -> None:
135135        """ 
136136        with  self .assertAddsMessages (
137137            MessageTest (msg_id = "fixme" , line = 2 , args = "FIXME message" , col_offset = 9 )
138-             
139138        ):
140139            self .checker .process_tokens (_tokenize_str (code ))
141140
@@ -173,7 +172,7 @@ def test_docstring_with_nl_message_multi(self) -> None:
173172        """ 
174173        with  self .assertAddsMessages (
175174            MessageTest (msg_id = "fixme" , line = 3 , args = "FIXME this" , col_offset = 9 ),
176-             MessageTest (msg_id = "fixme" , line = 4 , args = "TODO: that" , col_offset = 9 )
175+             MessageTest (msg_id = "fixme" , line = 4 , args = "TODO: that" , col_offset = 9 ), 
177176        ):
178177            self .checker .process_tokens (_tokenize_str (code ))
179178
@@ -189,7 +188,7 @@ def test_docstring_with_comment(self) -> None:
189188        with  self .assertAddsMessages (
190189            MessageTest (msg_id = "fixme" , line = 2 , args = "XXX message1" , col_offset = 9 ),
191190            MessageTest (msg_id = "fixme" , line = 4 , args = "FIXME message2" , col_offset = 9 ),
192-             MessageTest (msg_id = "fixme" , line = 5 , args = "TODO message3" , col_offset = 9 )
191+             MessageTest (msg_id = "fixme" , line = 5 , args = "TODO message3" , col_offset = 9 ), 
193192        ):
194193            self .checker .process_tokens (_tokenize_str (code ))
195194
@@ -229,29 +228,27 @@ def test_docstring_todo_mult(self) -> None:
229228        \" \" \"  
230229        """ 
231230        with  self .assertAddsMessages (
232-             MessageTest (msg_id = "fixme" , line = 3 , args = "FIXME this TODO that" , col_offset = 9 ),
231+             MessageTest (
232+                 msg_id = "fixme" , line = 3 , args = "FIXME this TODO that" , col_offset = 9 
233+             ),
233234        ):
234235            self .checker .process_tokens (_tokenize_str (code ))
235-     
236-     @set_config ( 
237-             check_fixme_in_docstring = True , 
238-             notes = ["CODETAG" ] 
239-     ) 
236+ 
237+     @set_config (check_fixme_in_docstring = True , notes = ["CODETAG" ]) 
240238    def  test_docstring_custom_note (self ) ->  None :
241239        code  =  """ 
242240        \" \" \"  
243241        CODETAG implement this 
244242        \" \" \"  
245243        """ 
246244        with  self .assertAddsMessages (
247-             MessageTest (msg_id = "fixme" , line = 3 , args = "CODETAG implement this" , col_offset = 9 ),
245+             MessageTest (
246+                 msg_id = "fixme" , line = 3 , args = "CODETAG implement this" , col_offset = 9 
247+             ),
248248        ):
249249            self .checker .process_tokens (_tokenize_str (code ))
250-     
251-     @set_config ( 
252-             check_fixme_in_docstring = True , 
253-             notes_rgx = "FIX.*"  
254-     ) 
250+ 
251+     @set_config (check_fixme_in_docstring = True , notes_rgx = "FIX.*" ) 
255252    def  test_docstring_custom_rgx (self ) ->  None :
256253        code  =  """ 
257254        \" \" \"  
@@ -260,7 +257,11 @@ def test_docstring_custom_rgx(self) -> None:
260257        \" \" \"  
261258        """ 
262259        with  self .assertAddsMessages (
263-             MessageTest (msg_id = "fixme" , line = 3 , args = "FIXME implement this" , col_offset = 9 ),
264-             MessageTest (msg_id = "fixme" , line = 4 , args = "FIXTHIS also implement this" , col_offset = 9 ),
260+             MessageTest (
261+                 msg_id = "fixme" , line = 3 , args = "FIXME implement this" , col_offset = 9 
262+             ),
263+             MessageTest (
264+                 msg_id = "fixme" , line = 4 , args = "FIXTHIS also implement this" , col_offset = 9 
265+             ),
265266        ):
266267            self .checker .process_tokens (_tokenize_str (code ))
0 commit comments