Skip test with authentication

This commit is contained in:
Alexander Sheiko 2023-05-21 01:29:08 +03:00
parent 0c2489c695
commit 10887ac302
3 changed files with 14 additions and 0 deletions

View file

@ -14,6 +14,9 @@ var (
)
func TestAuth(t *testing.T) {
if os.Getenv("SKIP_AUTH_TEST") != "" {
t.Skip("Skipping test due to environment variable")
}
scraper := twitterscraper.New()
if err := scraper.Login(username, password, email); err != nil {
t.Fatalf("Login() error = %v", err)