Skip to content

Commit

Permalink
Tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
singiamtel committed Dec 13, 2024
1 parent fe785bd commit e3cccf7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_args.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,11 @@ 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('Failed test:', cmd)
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:
Expand Down

0 comments on commit e3cccf7

Please sign in to comment.