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

Method test_format_args

testing/python/metafunc.py:972–991  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

970 )
971
972 def test_format_args(self) -> None:
973 def function1():
974 pass
975
976 assert _format_args(function1) == "()"
977
978 def function2(arg1):
979 pass
980
981 assert _format_args(function2) == "(arg1)"
982
983 def function3(arg1, arg2="qwe"):
984 pass
985
986 assert _format_args(function3) == "(arg1, arg2='qwe')"
987
988 def function4(arg1, *args, **kwargs):
989 pass
990
991 assert _format_args(function4) == "(arg1, *args, **kwargs)"
992
993
994class TestMetafuncFunctional:

Callers

nothing calls this directly

Calls 1

_format_argsFunction · 0.90

Tested by

no test coverage detected