@@ -1022,48 +1022,6 @@ def _validate_if_using_arg_names(self, argnames, indirect):
10221022 pytrace = False ,
10231023 )
10241024
1025- def addcall (self , funcargs = None , id = NOTSET , param = NOTSET ):
1026- """ Add a new call to the underlying test function during the collection phase of a test run.
1027-
1028- .. deprecated:: 3.3
1029-
1030- Use :meth:`parametrize` instead.
1031-
1032- Note that request.addcall() is called during the test collection phase prior and
1033- independently to actual test execution. You should only use addcall()
1034- if you need to specify multiple arguments of a test function.
1035-
1036- :arg funcargs: argument keyword dictionary used when invoking
1037- the test function.
1038-
1039- :arg id: used for reporting and identification purposes. If you
1040- don't supply an `id` an automatic unique id will be generated.
1041-
1042- :arg param: a parameter which will be exposed to a later fixture function
1043- invocation through the ``request.param`` attribute.
1044- """
1045- warnings .warn (deprecated .METAFUNC_ADD_CALL , stacklevel = 2 )
1046-
1047- assert funcargs is None or isinstance (funcargs , dict )
1048- if funcargs is not None :
1049- for name in funcargs :
1050- if name not in self .fixturenames :
1051- fail ("funcarg %r not used in this function." % name )
1052- else :
1053- funcargs = {}
1054- if id is None :
1055- raise ValueError ("id=None not allowed" )
1056- if id is NOTSET :
1057- id = len (self ._calls )
1058- id = str (id )
1059- if id in self ._ids :
1060- raise ValueError ("duplicate id %r" % id )
1061- self ._ids .add (id )
1062-
1063- cs = CallSpec2 (self )
1064- cs .setall (funcargs , id , param )
1065- self ._calls .append (cs )
1066-
10671025
10681026def _find_parametrized_scope (argnames , arg2fixturedefs , indirect ):
10691027 """Find the most appropriate scope for a parametrized call based on its arguments.
0 commit comments