|
33 | 33 | LINT_PATHS = ["docs", "google", "tests", "noxfile.py", "setup.py"]
|
34 | 34 |
|
35 | 35 | DEFAULT_PYTHON_VERSION = "3.8"
|
36 |
| -DEFAULT_MOCK_SERVER_TESTS_PYTHON_VERSION = "3.12" |
37 | 36 |
|
38 | 37 | UNIT_TEST_PYTHON_VERSIONS: List[str] = [
|
39 | 38 | "3.7",
|
@@ -235,34 +234,6 @@ def unit(session, protobuf_implementation):
|
235 | 234 | )
|
236 | 235 |
|
237 | 236 |
|
238 |
| -@nox.session(python=DEFAULT_MOCK_SERVER_TESTS_PYTHON_VERSION) |
239 |
| -def mockserver(session): |
240 |
| - # Install all test dependencies, then install this package in-place. |
241 |
| - |
242 |
| - constraints_path = str( |
243 |
| - CURRENT_DIRECTORY / "testing" / f"constraints-{session.python}.txt" |
244 |
| - ) |
245 |
| - # install_unittest_dependencies(session, "-c", constraints_path) |
246 |
| - standard_deps = UNIT_TEST_STANDARD_DEPENDENCIES + UNIT_TEST_DEPENDENCIES |
247 |
| - session.install(*standard_deps, "-c", constraints_path) |
248 |
| - session.install("-e", ".", "-c", constraints_path) |
249 |
| - |
250 |
| - # Run py.test against the mockserver tests. |
251 |
| - session.run( |
252 |
| - "py.test", |
253 |
| - "--quiet", |
254 |
| - f"--junitxml=unit_{session.python}_sponge_log.xml", |
255 |
| - "--cov=google", |
256 |
| - "--cov=tests/unit", |
257 |
| - "--cov-append", |
258 |
| - "--cov-config=.coveragerc", |
259 |
| - "--cov-report=", |
260 |
| - "--cov-fail-under=0", |
261 |
| - os.path.join("tests", "mockserver_tests"), |
262 |
| - *session.posargs, |
263 |
| - ) |
264 |
| - |
265 |
| - |
266 | 237 | def install_systemtest_dependencies(session, *constraints):
|
267 | 238 | # Use pre-release gRPC for system tests.
|
268 | 239 | # Exclude version 1.52.0rc1 which has a known issue.
|
|
0 commit comments