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

Method test_single_tuple_unwraps_values

testing/python/collect.py:335–345  ·  view source on GitHub ↗
(self, pytester: Pytester)

Source from the content-addressed store, hash-verified

333 reprec.assertoutcome(skipped=1)
334
335 def test_single_tuple_unwraps_values(self, pytester: Pytester) -> None:
336 pytester.makepyfile(
337 """
338 import pytest
339 @pytest.mark.parametrize(('arg',), [(1,)])
340 def test_function(arg):
341 assert arg == 1
342 """
343 )
344 reprec = pytester.inline_run()
345 reprec.assertoutcome(passed=1)
346
347 def test_issue213_parametrize_value_no_equal(self, pytester: Pytester) -> None:
348 pytester.makepyfile(

Callers

nothing calls this directly

Calls 3

assertoutcomeMethod · 0.80
makepyfileMethod · 0.45
inline_runMethod · 0.45

Tested by

no test coverage detected