def fillfixtures(function):
 try:
  request = function._request
 except AttributeError:
  fm = function.session._fixturemanager
  fi = fm.getfixtureinfo(function.parent, function.obj, None)
  function._fixtureinfo = fi
  request = function._request = FixtureRequest(function)
  request._fillfixtures()
  newfuncargs = {}
  for name in fi.argnames:
   newfuncargs[name] = function.funcargs[name]
  function.funcargs = newfuncargs
 else:
  request._fillfixtures()

def fillfixtures ( function ) : try : request = function . _request except AttributeError : fm = function . session . _fixturemanager fi = fm . getfixtureinfo ( function . parent , function . obj , None ) function . _fixtureinfo = fi request = function . _request = FixtureRequest ( function ) request . _fillfixtures ( ) newfuncargs = { } for name in fi . argnames : newfuncargs [ name ] = function . funcargs [ name ] function . funcargs = newfuncargs else : request . _fillfixtures ( )
fill missing funcargs for a test function .