av_income_test.go 389 B

1234567891011121314151617
  1. package income
  2. import (
  3. "context"
  4. "testing"
  5. . "github.com/smartystreets/goconvey/convey"
  6. )
  7. func Test_InsertAvIncome(t *testing.T) {
  8. Convey("InsertAvIncome", t, func() {
  9. c := context.Background()
  10. d.db.Exec(c, "DELETE FROM av_income WHERE date='2018-06-01'")
  11. _, err := d.InsertAvIncome(c, "(123,2,6,1,'2018-06-01',100,100,100,50,'2018-06-01',100)")
  12. So(err, ShouldBeNil)
  13. })
  14. }