main_test.go 436 B

1234567891011121314151617181920212223
  1. package plexapi
  2. import (
  3. "os"
  4. "testing"
  5. log "github.com/Sirupsen/logrus"
  6. )
  7. // TestMain func
  8. func TestMain(t *testing.T) {
  9. log.SetOutput(os.Stderr)
  10. log.SetLevel(log.DebugLevel)
  11. // t.Log("START")
  12. // api := API{User: "foo", Password: "secure", HTTP: HTTPConfig{Timeout: 30, WorkerSize: 10}}
  13. // servers, err := api.GetServers()
  14. // if err != nil {
  15. // t.Fatal(err)
  16. // }
  17. // t.Log("SERVERS ", util.JSONPrettyPrint(servers))
  18. }