MCPcopy
hub / github.com/saltstack/salt / find_session_runner

Function find_session_runner

noxfile.py:133–153  ·  view source on GitHub ↗
(session, name, python_version, onedir=False, **kwargs)

Source from the content-addressed store, hash-verified

131
132
133def find_session_runner(session, name, python_version, onedir=False, **kwargs):
134 if onedir:
135 name += f"-onedir-{ONEDIR_PYTHON_PATH}"
136 else:
137 name += f"-{python_version}"
138 for s, _ in session._runner.manifest.list_all_sessions():
139 if name not in s.signatures:
140 continue
141 for signature in s.signatures:
142 for key, value in kwargs.items():
143 param = f"{key}={value!r}"
144 if param not in signature:
145 break
146 else:
147 return s
148 continue
149 session.error(
150 "Could not find a nox session by the name {!r} with the following keyword arguments: {!r}".format(
151 name, kwargs
152 )
153 )
154
155
156def _create_ci_directories():

Callers 10

testFunction · 0.85
test_tcpFunction · 0.85
test_zeromqFunction · 0.85
test_m2cryptoFunction · 0.85
test_tcp_m2cryptoFunction · 0.85
test_zeromq_m2cryptoFunction · 0.85
test_pycryptodomeFunction · 0.85
test_tcp_pycryptodomeFunction · 0.85
test_zeromq_pycryptodomeFunction · 0.85
docsFunction · 0.85

Calls 3

formatMethod · 0.80
itemsMethod · 0.45
errorMethod · 0.45

Tested by 8

test_tcpFunction · 0.68
test_zeromqFunction · 0.68
test_m2cryptoFunction · 0.68
test_tcp_m2cryptoFunction · 0.68
test_zeromq_m2cryptoFunction · 0.68
test_pycryptodomeFunction · 0.68
test_tcp_pycryptodomeFunction · 0.68
test_zeromq_pycryptodomeFunction · 0.68