scraper/postgres/postgres_test.go

20 lines
312 B
Go
Raw Normal View History

2020-10-05 08:24:33 +00:00
package postgres
import (
"testing"
)
func TestConnect(t *testing.T) {
return
}
func TestListSources(t *testing.T) {
defer Close()
sources, err := ListSources()
if err != nil {
t.Errorf("unexpected error : %s", err)
}
if len(sources) == 0 {
t.Errorf("no sources got from ListSources function")
}
}