Files
distcloud/distributedcloud/dcagent/tests/api/test_root_controller.py
Raphael Lima c95d6d7732 Update the mock methods in dcagent to use _mock_object
Previously, there wasn't a common method for managing the creation of
mocks, which resulted in multiple files having their own logic for that.
In 1, the _mock_object was updated in order to create the functionality
and this commit updates dcagent code to use it.

Test plan:
1. PASS: Run tox -c distributedcloud/tox.ini -e py39 multiple times and
   verify that there isn't any test failures.

Story: 2007082
Task: 51468

[1] https://review.opendev.org/c/starlingx/distcloud/+/937467

Change-Id: I19fb3d50ead2fdb726bac09fc8fc7cd75c0e543a
Signed-off-by: Raphael Lima <Raphael.Lima@windriver.com>
2024-12-12 11:54:21 -03:00

6.8 KiB