add GetTweetRetweeters method
This commit is contained in:
parent
ae381f2bb8
commit
a2938f52db
3 changed files with 114 additions and 0 deletions
|
|
@ -108,3 +108,19 @@ func TestLikeAndUnlikeTweet(t *testing.T) {
|
|||
t.Error(err)
|
||||
}
|
||||
}
|
||||
|
||||
func TestGetTweetRetweeters(t *testing.T) {
|
||||
if skipAuthTest {
|
||||
t.Skip("Skipping test due to environment variable")
|
||||
}
|
||||
tweetId := "1792634158977568997"
|
||||
|
||||
retweeters, _, err := testScraper.GetTweetRetweeters(tweetId, 20, "")
|
||||
if err != nil {
|
||||
t.Error(err)
|
||||
}
|
||||
|
||||
if len(retweeters) == 0 {
|
||||
t.Error("0 tweet retweeters")
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue