Files
grafana/pkg/services/sqlstore/user_test.go
T
2015-01-19 16:28:45 +01:00

31 lines
544 B
Go

package sqlstore
import (
"fmt"
"testing"
. "github.com/smartystreets/goconvey/convey"
m "github.com/torkelo/grafana-pro/pkg/models"
)
func TestUserDataAccess(t *testing.T) {
Convey("Testing User DB", t, func() {
InitTestDB(t)
Convey("When creating a user", func() {
ac1cmd := m.CreateUserCommand{Login: "ac1", Email: "ac1@test.com"}
err := CreateUser(&ac1cmd)
So(err, ShouldBeNil)
ac1 := ac1cmd.Result
fmt.Printf("%v", ac1)
Convey("Should be able to read account info projection", func() {
})
})
})
}