mirror of
https://github.com/pikami/cosmium.git
synced 2024-11-25 15:07:35 +00:00
21 lines
383 B
Go
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"
|
|
)
|