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>
6.8 KiB
6.8 KiB