rename settings to account
This commit is contained in:
parent
7a9256072f
commit
d4ea0c9848
2 changed files with 0 additions and 0 deletions
|
|
@ -1,35 +0,0 @@
|
|||
package twitterscraper_test
|
||||
|
||||
import (
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestGetAccountSettings(t *testing.T) {
|
||||
if skipAuthTest {
|
||||
t.Skip("Skipping test due to environment variable")
|
||||
}
|
||||
|
||||
settings, err := testScraper.GetAccountSettings()
|
||||
if err != nil {
|
||||
t.Error(err)
|
||||
}
|
||||
|
||||
if settings.ScreenName == "" {
|
||||
t.Error("ScreenName is empty")
|
||||
}
|
||||
}
|
||||
|
||||
func TestGetAccountList(t *testing.T) {
|
||||
if skipAuthTest {
|
||||
t.Skip("Skipping test due to environment variable")
|
||||
}
|
||||
|
||||
accounts, err := testScraper.GetAccountList()
|
||||
if err != nil {
|
||||
t.Error(err)
|
||||
}
|
||||
|
||||
if len(accounts) < 1 {
|
||||
t.Errorf("Returned %d accounts", len(accounts))
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue