package django_test import ( "testing" "github.com/noirbizarre/gonja" "github.com/noirbizarre/gonja/ext/django" tu "github.com/noirbizarre/gonja/testutils" ) func Env(root string) *gonja.Environment { env := tu.TestEnv(root) env.Filters.Update(django.Filters) env.Statements.Update(django.Statements) return env } func TestDjangoTemplates(t *testing.T) { root := "./testData" env := Env(root) tu.GlobTemplateTests(t, root, env) } func TestDjangoFilters(t *testing.T) { root := "./testData/filters" env := Env(root) tu.GlobTemplateTests(t, root, env) } func TestDjangoStatements(t *testing.T) { root := "./testData/statements" env := Env(root) tu.GlobTemplateTests(t, root, env) }