Skip to content

Commit 478269a

Browse files
committed
tests: refactor tests
1 parent 8529794 commit 478269a

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

packages/google-cloud-bigtable/noxfile.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,14 +302,25 @@ def conformance(session, client_type):
302302
CURRENT_DIRECTORY / "testing" / f"constraints-{session.python}.txt"
303303
)
304304
install_unittest_dependencies(session, "-c", constraints_path)
305+
# None of the clients currently support reverse scans, execute query plan refresh, retry info, or routing cookie
306+
# See https://github.com/googleapis/python-bigtable/blob/c3ea54ee958a79959a649dce2553a84ec808b4d7/.github/workflows/conformance.yaml#L30-L35
307+
if client_type == "async":
308+
test_args = '-skip "PlanRefresh|_Reverse|_WithRetryInfo|_WithRoutingCookie"'
309+
else:
310+
test_args = '-skip "PlanRefresh|_Reverse|_WithRetryInfo|_WithRoutingCookie|_Generic_MultiStream"'
305311
with session.chdir("test_proxy"):
306312
# download the conformance test suite
307313
session.run(
308314
"bash",
309315
"-e",
310316
"run_tests.sh",
311317
external=True,
312-
env={"CLIENT_TYPE": client_type},
318+
env={
319+
"CLIENT_TYPE": client_type,
320+
"PYTHONUNBUFFERED": 1,
321+
"TEST_ARGS": test_args,
322+
"PROXY_PORT": 9999,
323+
},
313324
)
314325

315326

0 commit comments

Comments
 (0)