3333 ("error" , 17 , "missing_infolist_free" ),
3434 ("error" , 18 , "python2_bin" ),
3535 ("error" , 1 , "mixed_tabs_spaces" ),
36- ("warning" , 25 , "sys_exit" ),
36+ ("warning" , 27 , "sys_exit" ),
3737 ("warning" , 19 , "deprecated_hook_completion_get_string" ),
3838 ("warning" , 20 , "deprecated_hook_completion_list_add" ),
3939 ("warning" , 22 , "modifier_irc_in" ),
4040 ("warning" , 23 , "signal_irc_out" ),
4141 ("warning" , 24 , "signal_irc_outtags" ),
42+ ("warning" , 25 , "hook_process_url" ),
43+ ("warning" , 26 , "hook_process_hashtable_url" ),
4244 ("info" , 1 , "unneeded_shebang" ),
4345 ("info" , 13 , "url_weechat" ),
4446]
@@ -79,12 +81,12 @@ def test_script_all_errors() -> None:
7981 assert script .script
8082 script .check ()
8183 assert str (script )
82- assert len (str (script ).split ("\n " )) == 12
84+ assert len (str (script ).split ("\n " )) == len ( ALL_ERRORS )
8385 print (script .count )
84- assert script .count == {"error" : 4 , "warning" : 6 , "info" : 2 }
86+ assert script .count == {"error" : 4 , "warning" : 8 , "info" : 2 }
8587 errors = [(msg .level , msg .line , msg .msg_name ) for msg in script .messages ]
8688 assert errors == ALL_ERRORS
87- assert len (script .get_report (False ).split ("\n " )) == 12
89+ assert len (script .get_report (False ).split ("\n " )) == len ( ALL_ERRORS )
8890 assert script .get_report (True ) == "script_all_errors.py"
8991
9092 # ignore 2 messages: "missing_email" and "sys_exit"
@@ -99,9 +101,9 @@ def test_script_all_errors() -> None:
99101 assert script .script
100102 script .check ()
101103 assert str (script )
102- assert len (str (script ).split ("\n " )) == 10
103- assert script .count == {"error" : 3 , "warning" : 5 , "info" : 2 }
104- assert len (script .get_report (False ).split ("\n " )) == 10
104+ assert len (str (script ).split ("\n " )) == len ( ALL_ERRORS ) - 2
105+ assert script .count == {"error" : 3 , "warning" : 7 , "info" : 2 }
106+ assert len (script .get_report (False ).split ("\n " )) == len ( ALL_ERRORS ) - 2
105107 assert script .get_report (True ) == "script_all_errors.py"
106108
107109
0 commit comments