You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by br...@apache.org on 2023/02/07 17:22:13 UTC
[allura] branch master updated: [#8495] test fix
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 <db...@slashdotmedia.com>
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('abc123@abc.me') 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('abc123@abc.me') == 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('abc123@abc.me') in [u1, u2]
- assert log.warn.call_count == 1
+ assert log.warning.call_count == 1
# invalid email returns None, but not user which claimed
# nobody@example.com as before