6666
6767UNIT_TEST_PYTHON_VERSIONS = ["3.9" , "3.10" , "3.11" , "3.12" , "3.13" ]
6868UNIT_TEST_STANDARD_DEPENDENCIES = [
69+ "mock" ,
70+ "asyncmock" ,
6971 PYTEST_VERSION ,
7072 "pytest-asyncio" ,
7173 "pytest-cov" ,
9092SYSTEM_TEST_PYTHON_VERSIONS = ["3.9" , "3.10" , "3.11" , "3.12" , "3.13" ]
9193SYSTEM_TEST_STANDARD_DEPENDENCIES = [
9294 "jinja2" ,
95+ "mock" ,
9396 "openpyxl" ,
9497 PYTEST_VERSION ,
9598 "pytest-cov" ,
@@ -204,10 +207,7 @@ def lint_setup_py(session):
204207
205208def install_unittest_dependencies (session , install_test_extra , * constraints ):
206209 standard_deps = UNIT_TEST_STANDARD_DEPENDENCIES + UNIT_TEST_DEPENDENCIES
207- session .install ("setuptools" , "wheel" )
208- session .install (
209- "--extra-index-url" , "https://pypi.org/simple/" , * standard_deps , * constraints
210- )
210+ session .install (* standard_deps , * constraints )
211211
212212 if UNIT_TEST_LOCAL_DEPENDENCIES :
213213 session .install (* UNIT_TEST_LOCAL_DEPENDENCIES , * constraints )
@@ -224,7 +224,6 @@ def install_unittest_dependencies(session, install_test_extra, *constraints):
224224
225225def run_unit (session , install_test_extra ):
226226 """Run the unit test suite."""
227- session .env ["PIP_EXTRA_INDEX_URL" ] = "https://pypi.org/simple/"
228227 constraints_path = str (
229228 CURRENT_DIRECTORY / "testing" / f"constraints-{ session .python } .txt"
230229 )
@@ -314,13 +313,7 @@ def install_systemtest_dependencies(session, install_test_extra, *constraints):
314313 # See https://github.com/grpc/grpc/pull/30642
315314 session .install ("--pre" , "grpcio!=1.49.0rc1" )
316315
317- session .install ("setuptools" , "wheel" )
318- session .install (
319- "--extra-index-url" ,
320- "https://pypi.org/simple/" ,
321- * SYSTEM_TEST_STANDARD_DEPENDENCIES ,
322- * constraints ,
323- )
316+ session .install (* SYSTEM_TEST_STANDARD_DEPENDENCIES , * constraints )
324317
325318 if SYSTEM_TEST_EXTERNAL_DEPENDENCIES :
326319 session .install (* SYSTEM_TEST_EXTERNAL_DEPENDENCIES , * constraints )
@@ -356,7 +349,7 @@ def run_system(
356349 timeout_seconds = 900 ,
357350 num_workers = 20 ,
358351):
359- session . env [ "PIP_EXTRA_INDEX_URL" ] = "https://pypi.org/simple/ "
352+ """Run the system test suite."" "
360353 constraints_path = str (
361354 CURRENT_DIRECTORY / "testing" / f"constraints-{ session .python } .txt"
362355 )
0 commit comments