MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / create_fixture

Function create_fixture

lib/sqlalchemy/testing/util.py:292–297  ·  view source on GitHub ↗
(pos)

Source from the content-addressed store, hash-verified

290 arg_sets = lambda_arg_sets(*[mock.Mock() for arg in args[0]])
291
292 def create_fixture(pos):
293 def fixture(**kw):
294 return lambda_arg_sets(**kw)[pos]
295
296 fixture.__name__ = "fixture_%3.3d" % pos
297 return fixture
298
299 return config.combinations(
300 *[(create_fixture(i),) for i in range(len(arg_sets))], **kw

Callers 1

lambda_combinationsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected