You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by gc...@apache.org on 2026/10/20 17:11:22 UTC

(allura) branch gc/8630 updated: [#8630] set the correct level on monq_model for test to pass

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

asf-gitbox-commits pushed a commit to branch gc/8630
in repository https://gitbox.apache.org/repos/asf/allura.git


The following commit(s) were added to refs/heads/gc/8630 by this push:
     new 6950cc41e [#8630] set the correct level on monq_model for test to pass
6950cc41e is described below

commit 6950cc41eeaf087bfdac017d000cd55320ae532f
Author: Guillermo Cruz <gu...@slashdotmedia.com>
AuthorDate: Tue Oct 20 15:02:16 2026 +0000

    [#8630] set the correct level on monq_model for test to pass
---
 Allura/allura/tests/test_tasks.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Allura/allura/tests/test_tasks.py b/Allura/allura/tests/test_tasks.py
index d08c44649..c0a187066 100644
--- a/Allura/allura/tests/test_tasks.py
+++ b/Allura/allura/tests/test_tasks.py
@@ -145,7 +145,7 @@ def stop_taskd_after_this_task(*args):
 
     def test_compound_error(self):
         t = raise_compound_exception.post()
-        with LogCapture(level=logging.ERROR) as lc, \
+        with LogCapture('allura.model.monq_model', level=logging.ERROR) as lc, \
                 mock.patch.dict(tg.config, {'monq.raise_errors': False}):  # match normal non-test behavior
             t()
         # lc.check() would be nice, but string is too detailed to check