skip tests that requires auth

This commit is contained in:
Valentine 2024-03-08 19:23:39 +03:00
parent 02625a94bd
commit b29bf22ac1
6 changed files with 21 additions and 9 deletions

View file

@ -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)