mirror of
https://github.com/CJackHwang/ds2api.git
synced 2026-05-05 00:45:29 +08:00
19 lines
309 B
Go
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),
|
|
}
|
|
}
|