This is an automated email from the ASF dual-hosted git repository.

brondsem pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/allura.git


The following commit(s) were added to refs/heads/master by this push:
     new 6a5511021 [#8495] test fix
6a5511021 is described below

commit 6a5511021a2d4b3adcbe13b7959a4262f847b53f
Author: Dave Brondsema <[email protected]>
AuthorDate: Tue Feb 7 12:21:57 2023 -0500

    [#8495] test fix
---
 Allura/allura/tests/model/test_auth.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Allura/allura/tests/model/test_auth.py 
b/Allura/allura/tests/model/test_auth.py
index 5e15ff506..570bea349 100644
--- a/Allura/allura/tests/model/test_auth.py
+++ b/Allura/allura/tests/model/test_auth.py
@@ -184,19 +184,19 @@ class TestAuth:
         u1.disabled, u2.disabled = True, True
         ThreadLocalODMSession.flush_all()
         assert M.User.by_email_address('[email protected]') is None
-        assert log.warn.call_count == 0
+        assert log.warning.call_count == 0
 
         # only u2 is active
         u1.disabled, u2.disabled = True, False
         ThreadLocalODMSession.flush_all()
         assert M.User.by_email_address('[email protected]') == u2
-        assert log.warn.call_count == 0
+        assert log.warning.call_count == 0
 
         # both are active
         u1.disabled, u2.disabled = False, False
         ThreadLocalODMSession.flush_all()
         assert M.User.by_email_address('[email protected]') in [u1, u2]
-        assert log.warn.call_count == 1
+        assert log.warning.call_count == 1
 
         # invalid email returns None, but not user which claimed
         # [email protected] as before

Reply via email to