You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
649 B
40 lines
649 B
package account |
|
|
|
import ( |
|
"context" |
|
"flag" |
|
"path/filepath" |
|
"testing" |
|
"time" |
|
|
|
"go-common/app/interface/main/app-view/conf" |
|
|
|
. "github.com/smartystreets/goconvey/convey" |
|
) |
|
|
|
var ( |
|
d *Dao |
|
) |
|
|
|
func init() { |
|
dir, _ := filepath.Abs("../../cmd/app-view-test.toml") |
|
flag.Set("conf", dir) |
|
conf.Init() |
|
d = New(conf.Conf) |
|
time.Sleep(5 * time.Second) |
|
} |
|
|
|
func Test_Card(t *testing.T) { |
|
Convey("Card", t, func() { |
|
acc, err := d.Card3(context.TODO(), 2) |
|
So(err, ShouldBeNil) |
|
Println(acc) |
|
}) |
|
} |
|
|
|
func Test_Following(t *testing.T) { |
|
Convey("Following", t, func() { |
|
_, err := d.Following3(context.TODO(), 2, 1684013) |
|
So(err, ShouldBeNil) |
|
}) |
|
}
|
|
|