mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Don't use patcher.start()
, specially if patcher.stop()
is not called it breaks unrelated tests.
Refs 7a59410c2d
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
This commit is contained in:
parent
6a09056c72
commit
c753051359
1 changed files with 2 additions and 3 deletions
|
@ -11,9 +11,8 @@ from tests.support.mock import MagicMock, patch
|
|||
|
||||
@pytest.fixture
|
||||
def configure_loader_modules():
|
||||
patcher = patch("salt.utils.path.which", lambda exe: exe)
|
||||
patcher.start()
|
||||
return {djangomod: {}}
|
||||
with patch("salt.utils.path.which", lambda exe: exe):
|
||||
yield {djangomod: {}}
|
||||
|
||||
|
||||
def test_command():
|
||||
|
|
Loading…
Add table
Reference in a new issue