Skip to content

Commit e36f9e8

Browse files
committed
add conftest modules in noxfile
1 parent 0d80432 commit e36f9e8

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

noxfile.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,10 +225,15 @@ def conftest_retry(session):
225225
if not conformance_test_folder_exists:
226226
session.skip("Conformance tests were not found")
227227

228+
constraints_path = str(
229+
CURRENT_DIRECTORY / "testing" / f"constraints-{session.python}.txt"
230+
)
231+
232+
228233
# Install all test dependencies and pytest plugin to run tests in parallel.
229234
# Then install this package in-place.
230-
session.install("pytest", "pytest-xdist")
231-
session.install("-e", ".")
235+
session.install("pytest", "pytest-xdist", "grpcio", "grpcio-status", "grpc-google-iam-v1", "-c", constraints_path)
236+
session.install("-e", ".", "-c", constraints_path)
232237

233238
# Run #CPU processes in parallel if no test session arguments are passed in.
234239
if session.posargs:

0 commit comments

Comments
 (0)