From 96f59b2984b0d0371b2da0360d6e8d94d0b39a68 Mon Sep 17 00:00:00 2001 From: ghpzin Date: Sat, 10 Aug 2024 14:50:56 +0300 Subject: [PATCH] fix: Use correct assert with mock object --- tests/unit/test_bootloader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/test_bootloader.py b/tests/unit/test_bootloader.py index 8b375c5..708c437 100644 --- a/tests/unit/test_bootloader.py +++ b/tests/unit/test_bootloader.py @@ -213,7 +213,7 @@ def test_get_uid_for_known_family_reads_at_correct_address(connection, family): bootloader.read_memory = MagicMock() bootloader.get_uid() uid_address = bootloader.UID_ADDRESS[family] - assert bootloader.read_memory.called_once_with(uid_address) + bootloader.read_memory.assert_called_once_with(uid_address, 12) def test_get_uid_for_family_without_uid_returns_uid_not_supported(connection):