2121)
2222load ("//python:py_test.bzl" , "py_test" )
2323
24- def _test_runner (* , name , bazel_version , py_main , bzlmod , gazelle_plugin ):
24+ def _test_runner (* , name , bazel_version , py_main , bzlmod ):
2525 if py_main :
2626 test_runner = "{}_bazel_{}_py_runner" .format (name , bazel_version )
2727 py_test (
@@ -35,20 +35,15 @@ def _test_runner(*, name, bazel_version, py_main, bzlmod, gazelle_plugin):
3535 )
3636 return test_runner
3737
38- if bzlmod and gazelle_plugin :
39- return "//tests/integration:test_runner_gazelle_plugin"
40- elif bzlmod :
38+ if bzlmod :
4139 return "//tests/integration:test_runner"
42- elif gazelle_plugin :
43- return "//tests/integration:workspace_test_runner_gazelle_plugin"
4440 else :
4541 return "//tests/integration:workspace_test_runner"
4642
4743def rules_python_integration_test (
4844 name ,
4945 workspace_path = None ,
5046 bzlmod = True ,
51- gazelle_plugin = False ,
5247 tags = None ,
5348 py_main = None ,
5449 bazel_versions = None ,
@@ -61,7 +56,6 @@ def rules_python_integration_test(
6156 `_test` suffix.
6257 bzlmod: bool, default True. If true, run with bzlmod enabled, otherwise
6358 disable bzlmod.
64- gazelle_plugin: Whether the test uses the gazelle plugin.
6559 tags: Test tags.
6660 py_main: Optional `.py` file to run tests using. When specified, a
6761 python based test runner is used, and this source file is the main
@@ -98,7 +92,6 @@ def rules_python_integration_test(
9892 bazel_version = bazel_version ,
9993 py_main = py_main ,
10094 bzlmod = bzlmod ,
101- gazelle_plugin = gazelle_plugin ,
10295 )
10396 bazel_integration_test (
10497 name = "{}_bazel_{}" .format (name , bazel_version ),
0 commit comments