@pytest.fixture
def dict_loader():
 return loaders.DictLoader({'justdict.html': 'FOO'})

@ pytest . fixture def dict_loader ( ) : return loaders . DictLoader ( { 'justdict.html' : 'FOO' } )
returns dictloader .