skip tests that requires auth
This commit is contained in:
parent
02625a94bd
commit
b29bf22ac1
6 changed files with 21 additions and 9 deletions
|
|
@ -5,6 +5,9 @@ import (
|
|||
)
|
||||
|
||||
func TestFetchFollowing(t *testing.T) {
|
||||
if skipAuthTest {
|
||||
t.Skip("Skipping test due to environment variable")
|
||||
}
|
||||
users, _, err := testScraper.FetchFollowing("Support", 20, "")
|
||||
if err != nil {
|
||||
t.Error(err)
|
||||
|
|
@ -15,6 +18,9 @@ func TestFetchFollowing(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestFetchFollowers(t *testing.T) {
|
||||
if skipAuthTest {
|
||||
t.Skip("Skipping test due to environment variable")
|
||||
}
|
||||
users, _, err := testScraper.FetchFollowers("Support", 20, "")
|
||||
if err != nil {
|
||||
t.Error(err)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue