authelia/internal/templates
Eng Zer Jun 54afe925b8
test: use test machinery to set env vars in tests (#4640)
This commit replaces `os.Setenv` with `t.Setenv` in tests. The environment variable is automatically restored to its original value when the test and all its subtests complete. Reference: https://pkg.go.dev/testing#T.Setenv

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2022-12-26 07:16:05 +11:00
..
src/notification refactor(notifier): utilize smtp lib (#4403) 2022-12-23 16:06:49 +11:00
const.go refactor(notifier): utilize smtp lib (#4403) 2022-12-23 16:06:49 +11:00
embed.go fix(notification): incorrect date header format (#3684) 2022-07-18 10:56:09 +10:00
funcs.go feat(templates): templating functions (#4635) 2022-12-23 21:58:54 +11:00
funcs_test.go test: use test machinery to set env vars in tests (#4640) 2022-12-26 07:16:05 +11:00
provider.go refactor(notifier): utilize smtp lib (#4403) 2022-12-23 16:06:49 +11:00
types.go refactor(notifier): utilize smtp lib (#4403) 2022-12-23 16:06:49 +11:00
util.go feat(templates): templating functions (#4635) 2022-12-23 21:58:54 +11:00
util_test.go feat(templates): templating functions (#4635) 2022-12-23 21:58:54 +11:00