Skip to content
This repository has been archived by the owner on Nov 30, 2023. It is now read-only.

Commit

Permalink
GetTrends required login
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Sheiko committed Jul 7, 2023
1 parent 7a33328 commit 6323608
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ jobs:
uses: actions/checkout@v3

- name: Test
run: go test -v -run '^(TestGetGuestToken|TestLoginOpenAccount|TestGetProfile|TestGetProfilePrivate|TestGetProfileErrorSuspended|TestGetProfileErrorNotFound|TestGetUserIDByScreenName|TestGetTweets|TestGetTrends)$'
run: go test -v -run '^(TestGetGuestToken|TestLoginOpenAccount|TestGetProfile|TestGetProfilePrivate|TestGetProfileErrorSuspended|TestGetProfileErrorNotFound|TestGetUserIDByScreenName|TestGetTweets)$'
8 changes: 4 additions & 4 deletions trends_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ package twitterscraper_test

import (
"testing"

twitterscraper "github.com/n0madic/twitter-scraper"
)

func TestGetTrends(t *testing.T) {
scraper := twitterscraper.New()
trends, err := scraper.GetTrends()
if skipAuthTest {
t.Skip("Skipping test due to environment variable")
}
trends, err := testScraper.GetTrends()
if err != nil {
t.Fatal(err)
}
Expand Down

0 comments on commit 6323608

Please sign in to comment.