add LikeTweet and UnlikeTweet methods
This commit is contained in:
parent
f8c200b312
commit
e235a6a79f
4 changed files with 127 additions and 0 deletions
|
|
@ -94,3 +94,17 @@ func TestDeleteRetweet(t *testing.T) {
|
|||
t.Error(err)
|
||||
}
|
||||
}
|
||||
|
||||
func TestLikeAndUnlikeTweet(t *testing.T) {
|
||||
if skipAuthTest {
|
||||
t.Skip("Skipping test due to environment variable")
|
||||
}
|
||||
|
||||
tweetId := "1792634158977568997"
|
||||
if err := testScraper.LikeTweet(tweetId); err != nil {
|
||||
t.Error(err)
|
||||
}
|
||||
if err := testScraper.UnlikeTweet(tweetId); err != nil {
|
||||
t.Error(err)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue