Files
ds2api/internal/httpapi/admin/configmgmt/test_helpers_test.go
2026-04-26 06:58:20 +08:00

19 lines
309 B
Go

package configmgmt
import (
"testing"
"ds2api/internal/account"
"ds2api/internal/config"
)
func newAdminTestHandler(t *testing.T, raw string) *Handler {
t.Helper()
t.Setenv("DS2API_CONFIG_JSON", raw)
store := config.LoadStore()
return &Handler{
Store: store,
Pool: account.NewPool(store),
}
}