Skip to content

Commit

Permalink
tests: fix a command container test
Browse files Browse the repository at this point in the history
The 'name' attribute have been replaced by 'id'.
  • Loading branch information
elmjag committed Aug 28, 2024
1 parent 847a84d commit baf0b35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/pytest/test_command_container.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit baf0b35

Please sign in to comment.