user_test.go 544 B

123456789101112131415161718192021222324252627282930
  1. package sqlstore
  2. import (
  3. "fmt"
  4. "testing"
  5. . "github.com/smartystreets/goconvey/convey"
  6. m "github.com/torkelo/grafana-pro/pkg/models"
  7. )
  8. func TestUserDataAccess(t *testing.T) {
  9. Convey("Testing User DB", t, func() {
  10. InitTestDB(t)
  11. Convey("When creating a user", func() {
  12. ac1cmd := m.CreateUserCommand{Login: "ac1", Email: "ac1@test.com"}
  13. err := CreateUser(&ac1cmd)
  14. So(err, ShouldBeNil)
  15. ac1 := ac1cmd.Result
  16. fmt.Printf("%v", ac1)
  17. Convey("Should be able to read account info projection", func() {
  18. })
  19. })
  20. })
  21. }