MCPcopy
hub / github.com/pytest-dev/pytest / _idval_from_argname

Method _idval_from_argname

src/_pytest/python.py:1072–1075  ·  view source on GitHub ↗

Make an ID for a parameter in a ParameterSet from the argument name and the index of the ParameterSet.

(argname: str, idx: int)

Source from the content-addressed store, hash-verified

1070
1071 @staticmethod
1072 def _idval_from_argname(argname: str, idx: int) -> str:
1073 """Make an ID for a parameter in a ParameterSet from the argument name
1074 and the index of the ParameterSet."""
1075 return str(argname) + str(idx)
1076
1077 def _complain_multiple_hidden_parameter_sets(self) -> NoReturn:
1078 fail(

Callers 1

_idvalMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected