added test for FetchHomeTweets
This commit is contained in:
parent
3e06de08b5
commit
5364c66bd5
1 changed files with 14 additions and 0 deletions
|
|
@ -305,3 +305,17 @@ func TestTweetThread(t *testing.T) {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
func TestHomeTweets(t *testing.T) {
|
||||
if skipAuthTest {
|
||||
t.Skip("Skipping test due to environment variable")
|
||||
}
|
||||
tweets, _, err := testScraper.FetchHomeTweets("", 20, "")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
if len(tweets) < 1 {
|
||||
t.Fatal("returned 0 tweets")
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue