예제 #1
0
파일: auth_test.go 프로젝트: sinzone/apihub
// Run the tests using MongoRe
func setUpMongoreTest() account.Storable {
	cfg := mongore.Config{
		Host:         "127.0.0.1:27017",
		DatabaseName: "apihub_auth_test",
	}
	store := mongore.New(cfg)
	account.Storage(store)
	return store
}
예제 #2
0
// Run the tests using MongoRe
func setUpMongoreTest(s *S) {
	s.store = mongore.New(mongore.Config{
		Host:         "127.0.0.1:27017",
		DatabaseName: "apihub_api_test",
	})
}
예제 #3
0
// Run the tests using MongoRe
func setUpMongoreTest(s *S) {
	account.Storage(mongore.New(mongore.Config{
		Host:         "127.0.0.1:27017",
		DatabaseName: "apihub_account_test",
	}))
}