From 39a688b0c9127e901f34c140c14c4a2688143e17 Mon Sep 17 00:00:00 2001 From: Thomas Kluyver <thomas.kluyver@xfel.eu> Date: Fri, 5 Jul 2024 14:31:17 +0100 Subject: [PATCH] Ignore MUNGE token for test --- tests/test_update_config.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_update_config.py b/tests/test_update_config.py index e1a0bdad8..2c10dbfae 100644 --- a/tests/test_update_config.py +++ b/tests/test_update_config.py @@ -80,8 +80,9 @@ def test_main(capsys): out, _ = capsys.readouterr() assert "SUCCESS" in out + # The last component is a an unpredictable MUNGE token; ignored here: assert ast.literal_eval( - q.get(timeout=1).decode('utf-8')) == EXPECTED_ZMQ_REQ + q.get(timeout=1).decode('utf-8'))[:-1] == EXPECTED_ZMQ_REQ[:-1] EXPECTED_CONF = [ -- GitLab