mirror of
https://github.com/eiblog/eiblog.git
synced 2026-02-04 13:52:26 +08:00
26 lines
365 B
Go
26 lines
365 B
Go
package main
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func TestDisqus(t *testing.T) {
|
|
PostsCount()
|
|
}
|
|
|
|
func TestPostComment(t *testing.T) {
|
|
pc := &PostCreate{
|
|
Message: "hahahaha",
|
|
Thread: "52799014",
|
|
AuthorEmail: "deepzz.qi@gmail.com",
|
|
AuthorName: "deepzz",
|
|
}
|
|
|
|
id, err := PostComment(pc)
|
|
if err != nil {
|
|
t.Error(err)
|
|
return
|
|
}
|
|
t.Log("post success", id)
|
|
}
|