From b34d42ee5ba74b3410891aaf19a3192055e89a6e Mon Sep 17 00:00:00 2001 From: Sergio Date: Fri, 13 Dec 2024 16:09:19 +0100 Subject: [PATCH] Tmp --- tests/test_args.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/test_args.py b/tests/test_args.py index 0f05df6d..58f6b711 100644 --- a/tests/test_args.py +++ b/tests/test_args.py @@ -101,6 +101,10 @@ def test_failingParsing(self, mock_print) -> None: mock_print.mock_calls = [] with patch.object(sys, "argv", ["alibuild"] + shlex.split(cmd)): self.assertRaises(FakeExit, doParseArgs) + if mock_print.mock_calls != calls: + import json + print("Expected calls: ", json.dumps(calls, indent=2, default=str)) + print("Actual calls: ", json.dumps(mock_print.mock_calls, indent=2, default=str)) self.assertEqual(mock_print.mock_calls, calls) def test_validArchitectures(self) -> None: