mirror of
https://github.com/pikami/cosmium.git
synced 2024-11-29 08:57:30 +00:00
22 lines
428 B
Go
22 lines
428 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
|
|
config.Config.ExplorerPath = "/tmp/nothing"
|
|
|
|
return httptest.NewServer(api.CreateRouter())
|
|
}
|
|
|
|
const (
|
|
testAccountKey = "account-key"
|
|
testDatabaseName = "test-db"
|
|
testCollectionName = "test-coll"
|
|
)
|