mirror of
https://github.com/eiblog/eiblog.git
synced 2026-03-01 00:34:58 +08:00
添加 disqus thread 创建接口
This commit is contained in:
@@ -8,18 +8,29 @@ func TestDisqus(t *testing.T) {
|
||||
PostsCount()
|
||||
}
|
||||
|
||||
func TestPostComment(t *testing.T) {
|
||||
pc := &PostCreate{
|
||||
func TestPostCreate(t *testing.T) {
|
||||
pc := &PostComment{
|
||||
Message: "hahahaha",
|
||||
Thread: "52799014",
|
||||
AuthorEmail: "deepzz.qi@gmail.com",
|
||||
AuthorName: "deepzz",
|
||||
}
|
||||
|
||||
id, err := PostComment(pc)
|
||||
id, err := PostCreate(pc)
|
||||
if err != nil {
|
||||
t.Error(err)
|
||||
return
|
||||
}
|
||||
t.Log("post success", id)
|
||||
}
|
||||
|
||||
func TestThreadCreate(t *testing.T) {
|
||||
tc := &Article{
|
||||
Title: "测试test7",
|
||||
Slug: "test7",
|
||||
}
|
||||
err := ThreadCreate(tc)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user