From 9a8a2811f73224964efefc93615af7536834ec47 Mon Sep 17 00:00:00 2001 From: Nick Smith Date: Fri, 20 Nov 2020 10:41:50 -0500 Subject: [PATCH] Remove mock as a dependency (#2985) * Remove mock as a dependency unittest.mock is built into python3 so mock should not be needed. This package is only for python3 * Update mock usage * isort linter --- setup.cfg | 1 - src/molecule/test/unit/verifier/test_testinfra.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/setup.cfg b/setup.cfg index 9d46984f88..2a44be3149 100644 --- a/setup.cfg +++ b/setup.cfg @@ -110,7 +110,6 @@ test = # related tools/plugins but w/o ansible, which can be installed separated. ansi2html >= 1.6.0 - mock >= 4.0.2 pexpect >= 4.8.0, < 5 pytest-cov >= 2.10.1 pytest-helpers-namespace >= 2019.1.8 diff --git a/src/molecule/test/unit/verifier/test_testinfra.py b/src/molecule/test/unit/verifier/test_testinfra.py index 0ab3182636..23de5a0454 100644 --- a/src/molecule/test/unit/verifier/test_testinfra.py +++ b/src/molecule/test/unit/verifier/test_testinfra.py @@ -19,9 +19,9 @@ # DEALINGS IN THE SOFTWARE. import os +from unittest.mock import call import pytest -from mock import call from molecule import config, util from molecule.verifier import testinfra