MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / get_extensions_location

Function get_extensions_location

py/conftest.py:274–284  ·  view source on GitHub ↗

Locate the test extensions directory. Use Runfiles to locate it if running with bazel, otherwise find it in the local source tree.

()

Source from the content-addressed store, hash-verified

272
273
274def get_extensions_location():
275 """Locate the test extensions directory.
276
277 Use Runfiles to locate it if running with bazel, otherwise find it in the local source tree.
278 """
279 if Runfiles is not None:
280 r = Runfiles.Create()
281 extensions = r.Rlocation("selenium/py/test/extensions")
282 else:
283 extensions = str((Path(__file__).parent.parent / "common" / "extensions").resolve())
284 return extensions
285
286
287class ContainerProtocol:

Calls 3

PathClass · 0.85
CreateMethod · 0.45
resolveMethod · 0.45

Tested by

no test coverage detected