You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ponymail.apache.org by hu...@apache.org on 2025/07/23 08:33:09 UTC

(incubator-ponymail-foal) branch master updated: Update itest_integration.py, query expects a list of items, not a single string value

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

humbedooh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git


The following commit(s) were added to refs/heads/master by this push:
     new ade2a14  Update itest_integration.py, query expects a list of items, not a single string value
ade2a14 is described below

commit ade2a147943eb047f77fd41fa8abbb8572281db7
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Wed Jul 23 10:33:05 2025 +0200

    Update itest_integration.py, query expects a list of items, not a single string value
---
 test/itest_integration.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/test/itest_integration.py b/test/itest_integration.py
index e15cbfb..519ef01 100644
--- a/test/itest_integration.py
+++ b/test/itest_integration.py
@@ -135,6 +135,8 @@ def check_access(email, cookies):
         check_source(mid, msgid, listid, private, cookies)
 
 def check_auditlog_count(count, admin_cookies, action_filter=None):
+    if isinstance(action_filter, str):
+        action_filter = tuple(action_filter)  # the query expects a tuple/list of terms, not a single string.
     jzon = mgmt_get_json({"action": 'log', "filter": action_filter}, admin_cookies)
     assert len(jzon['entries']) == count
     return jzon['entries']