cosmium/api/tests/config_test.go
2024-02-21 23:40:54 +02:00

21 lines
383 B
Go

package tests_test
import (
"net/http/httptest"
"github.com/pikami/cosmium/api"
"github.com/pikami/cosmium/api/config"
)
func runTestServer() *httptest.Server {
config.Config.AccountKey = config.DefaultAccountKey
return httptest.NewServer(api.CreateRouter())
}
const (
testAccountKey = "account-key"
testDatabaseName = "test-db"
testCollectionName = "test-coll"
)