Skip test with authentication
This commit is contained in:
parent
0c2489c695
commit
10887ac302
3 changed files with 14 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue