[stable-2.13] Use unittest.mock instead of mock. (#77883)

This can only be done for controller tests.
(cherry picked from commit 3a9a23fb1a)

Co-authored-by: Matt Clay <matt@mystile.com>
This commit is contained in:
Matt Clay
2022-05-23 11:04:56 -07:00
parent 93b8ccda21
commit 47e1cc38fd
47 changed files with 48 additions and 48 deletions

View File

@ -25,7 +25,7 @@ import textwrap
import types
from units.compat import unittest
from mock import MagicMock
from unittest.mock import MagicMock
from ansible.executor.task_result import TaskResult
from ansible.inventory.host import Host