@pytest.yield_fixture
def storage():
 root = join(dirname(__file__), u'..', u'app', u'templates')
 (yield FileSystemStorage(location=root, base_url=u'/baseurl/'))

@ pytest . yield_fixture def storage ( ) : root = join ( dirname ( __file__ ) , u'..' , u'app' , u'templates' ) ( yield FileSystemStorage ( location = root , base_url = u'/baseurl/' ) )
provide a storage that exposes the test templates .