added DeleteScheduledTweet
This commit is contained in:
parent
7b2215391a
commit
c862968cdd
2 changed files with 55 additions and 1 deletions
|
|
@ -1,12 +1,23 @@
|
|||
package twitterscraper_test
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestFetchScheduledTweets(t *testing.T) {
|
||||
_, err := testScraper.FetchScheduledTweets()
|
||||
scheduled, err := testScraper.FetchScheduledTweets()
|
||||
if err != nil {
|
||||
t.Error(err)
|
||||
}
|
||||
|
||||
b, _ := json.Marshal(scheduled)
|
||||
fmt.Println(string(b))
|
||||
}
|
||||
|
||||
func TestDeleteScheduledTweets(t *testing.T) {
|
||||
if err := testScraper.DeleteScheduledTweet("1760827700724355072"); err != nil {
|
||||
t.Error(err)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue