def register(injector):
if "<STR_LIT>" not in injector:<EOL><INDENT>injector.fixture<EOL><DEDENT>options = {"<STR_LIT:name>": injector.name}<EOL>for option in ["<STR_LIT>", "<STR_LIT>", "<STR_LIT>", "<STR_LIT>"]:<EOL><INDENT>if option in injector:<EOL><INDENT>options[option] = getattr(injector, option)<EOL><DEDENT><DEDENT>@pytest.fixture(**options)<EOL>def __fixture(request):<EOL><INDENT>return injector.let(request=request).fixture<EOL><DEDENT>__fixture.injector = injector<EOL>return __fixture<EOL>
Register Py.test fixture performing injection in it's scope.