From baf0b359b66a28e11cd40b9823a3df08362ab0b7 Mon Sep 17 00:00:00 2001 From: Elmir Jagudin Date: Fri, 16 Aug 2024 17:52:27 +0200 Subject: [PATCH] tests: fix a command container test The 'name' attribute have been replaced by 'id'. --- test/pytest/test_command_container.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/pytest/test_command_container.py b/test/pytest/test_command_container.py index c23bafb037..45224eea6b 100644 --- a/test/pytest/test_command_container.py +++ b/test/pytest/test_command_container.py @@ -825,8 +825,8 @@ def test_get_channel_object( optional (bool): Whether an error should be logged where no result is returned. """ - # Patch "name" to test in isolation - mocker.patch.object(cmd_container, "name", create=True, return_value="test") + # Patch "id" to test in isolation + mocker.patch.object(cmd_container, "id", create=True, return_value="test") # Patch "__channels" with known values to test mocker.patch.object(