def test_test_environment_context(): from jinja2 import FileSystemLoader templates_path = fixture_path('templates') with temp_template_environment(templates_path): env = environment() env.get_template('tests/test_template.sh.jinja') env = environment() template = env.get_template('init/activate.sh.jinja')
def test_get_environment(): env = environment() assert isinstance(env, Environment)
def template_environment(self): """Grabs the template environment""" return environment()
def test_environment_get_template(): env = environment() template = env.get_template('init/activate.sh.jinja')