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

Function test_assert_indirect_tuple_no_warning

testing/test_assertion.py:1582–1592  ·  view source on GitHub ↗
(pytester: Pytester)

Source from the content-addressed store, hash-verified

1580
1581
1582def test_assert_indirect_tuple_no_warning(pytester: Pytester) -> None:
1583 pytester.makepyfile(
1584 """
1585 def test_tuple():
1586 tpl = ('foo', 'bar')
1587 assert tpl
1588 """
1589 )
1590 result = pytester.runpytest()
1591 output = "\n".join(result.stdout.lines)
1592 assert "WR1" not in output
1593
1594
1595def test_assert_with_unicode(pytester: Pytester) -> None:

Callers

nothing calls this directly

Calls 2

makepyfileMethod · 0.45
runpytestMethod · 0.45

Tested by

no test coverage detected