exactly one called with instead of last call check

This commit is contained in:
2021-10-14 03:12:45 +03:00
parent fcb167b1a3
commit 4502931c39
24 changed files with 83 additions and 78 deletions

View File

@ -134,7 +134,7 @@ def test_create_sudo_configuration(args: argparse.Namespace, mocker: MockerFixtu
write_text_mock = mocker.patch("pathlib.Path.write_text")
Setup.create_sudo_configuration(args.build_command, "x86_64")
chmod_text_mock.assert_called_with(0o400)
chmod_text_mock.assert_called_once_with(0o400)
write_text_mock.assert_called_once()