Lines Matching refs:mock
8 import unittest.mock
24 with (unittest.mock.patch.object(ensurepip, '_PACKAGES', None),
25 unittest.mock.patch.object(ensurepip, '_WHEEL_PKG_DIR', tmpdir)):
30 with (unittest.mock.patch.object(ensurepip, '_PACKAGES', None),
31 unittest.mock.patch.object(ensurepip, '_WHEEL_PKG_DIR', None)):
52 with (unittest.mock.patch.object(ensurepip, '_PACKAGES', None),
53 unittest.mock.patch.object(ensurepip, '_WHEEL_PKG_DIR', tmpdir)):
70 run_pip_patch = unittest.mock.patch("ensurepip._run_pip")
77 os_patch = unittest.mock.patch("ensurepip.os")
95 unittest.mock.ANY, "setuptools", "pip",
97 unittest.mock.ANY,
109 unittest.mock.ANY, "--root", "/foo/bar/",
112 unittest.mock.ANY,
121 unittest.mock.ANY, "--user", "setuptools", "pip",
123 unittest.mock.ANY,
132 unittest.mock.ANY, "--upgrade", "setuptools", "pip",
134 unittest.mock.ANY,
143 unittest.mock.ANY, "-v", "setuptools", "pip",
145 unittest.mock.ANY,
154 unittest.mock.ANY, "-vv", "setuptools", "pip",
156 unittest.mock.ANY,
165 unittest.mock.ANY, "-vvv", "setuptools", "pip",
167 unittest.mock.ANY,
315 unittest.mock.ANY, "setuptools", "pip",
317 unittest.mock.ANY,