gophish/gophish_test.go

15 lines
207 B
Go

package main
import (
"testing"
"github.com/jordan-wright/gophish/models"
)
func TestDBSetup(t *testing.T) {
err := models.Setup()
if err != nil {
t.Fatalf("Failed creating database: %v", err)
}
}