MCPcopy Create free account
hub / github.com/pytest-dev/pytest / _parse_parametrize_args

Method _parse_parametrize_args

src/_pytest/mark/structures.py:133–144  ·  view source on GitHub ↗
(
        argnames: Union[str, List[str], Tuple[str, ...]],
        argvalues: Iterable[Union["ParameterSet", Sequence[object], object]],
        *args,
        **kwargs,
    )

Source from the content-addressed store, hash-verified

131
132 @staticmethod
133 def _parse_parametrize_args(
134 argnames: Union[str, List[str], Tuple[str, ...]],
135 argvalues: Iterable[Union["ParameterSet", Sequence[object], object]],
136 *args,
137 **kwargs,
138 ) -> Tuple[Union[List[str], Tuple[str, ...]], bool]:
139 if not isinstance(argnames, (tuple, list)):
140 argnames = [x.strip() for x in argnames.split(",") if x.strip()]
141 force_tuple = len(argnames) == 1
142 else:
143 force_tuple = False
144 return argnames, force_tuple
145
146 @staticmethod
147 def _parse_parametrize_parameters(

Callers 3

_for_parametrizeMethod · 0.80

Calls 1

stripMethod · 0.80

Tested by

no test coverage detected