@@ -147,7 +147,7 @@ def test_correct_permissions_emit_no_warnings(self):
147147
148148 result = parser .parse () # noqa F841
149149
150- self .assertEqual (parser .LOG .warn .call_count , 0 )
150+ self .assertEqual (parser .LOG .warning .call_count , 0 )
151151
152152 # Make sure we left the file alone
153153 self .assertTrue (os .path .exists (self .TEMP_FILE_PATH ))
@@ -173,7 +173,7 @@ def test_weird_but_correct_permissions_emit_no_warnings(self):
173173
174174 result = parser .parse () # noqa F841
175175
176- self .assertEqual (parser .LOG .warn .call_count , 0 )
176+ self .assertEqual (parser .LOG .warning .call_count , 0 )
177177
178178 # Make sure we left the file alone
179179 self .assertTrue (os .path .exists (self .TEMP_FILE_PATH ))
@@ -191,7 +191,7 @@ def test_weird_but_correct_permissions_emit_no_warnings(self):
191191
192192 result = parser .parse () # noqa F841
193193
194- self .assertEqual (parser .LOG .warn .call_count , 0 )
194+ self .assertEqual (parser .LOG .warning .call_count , 0 )
195195
196196 # Make sure we left the file alone
197197 self .assertTrue (os .path .exists (self .TEMP_FILE_PATH ))
@@ -226,16 +226,16 @@ def test_warn_on_bad_config_permissions(self):
226226 parser .LOG .info .call_args_list [0 ][0 ][0 ],
227227 )
228228
229- self .assertEqual (parser .LOG .warn .call_count , 2 )
229+ self .assertEqual (parser .LOG .warning .call_count , 2 )
230230 self .assertEqual (
231231 "The StackStorm configuration directory permissions are insecure "
232232 "(too permissive): others have access." ,
233- parser .LOG .warn .call_args_list [0 ][0 ][0 ],
233+ parser .LOG .warning .call_args_list [0 ][0 ][0 ],
234234 )
235235
236236 self .assertEqual (
237237 "The StackStorm configuration file permissions are insecure: others have access." ,
238- parser .LOG .warn .call_args_list [1 ][0 ][0 ],
238+ parser .LOG .warning .call_args_list [1 ][0 ][0 ],
239239 )
240240
241241 # Make sure we left the file alone
@@ -266,7 +266,7 @@ def test_disable_permissions_warnings(self):
266266 result = parser .parse () # noqa F841
267267
268268 self .assertEqual (parser .LOG .info .call_count , 0 )
269- self .assertEqual (parser .LOG .warn .call_count , 0 )
269+ self .assertEqual (parser .LOG .warning .call_count , 0 )
270270
271271 # Make sure we left the file alone
272272 self .assertTrue (os .path .exists (self .TEMP_FILE_PATH ))
0 commit comments