add db/auth test

This commit is contained in:
lealife
2015-09-11 18:31:37 +08:00
parent 4217abca6e
commit 7167705409
3 changed files with 37 additions and 237 deletions

14
tests/db_test.go Normal file
View File

@ -0,0 +1,14 @@
package tests
import (
"testing"
"github.com/leanote/leanote/app/db"
// . "github.com/leanote/leanote/app/lea"
// "github.com/leanote/leanote/app/service"
// "gopkg.in/mgo.v2"
// "fmt"
)
func TestDBConnect(t *testing.T) {
db.Init("mongodb://localhost:27017/leanote", "leanote")
}