Added test suites for all current models

This commit is contained in:
🐙PiperYxzzy
2022-05-01 20:49:03 +02:00
parent 5f85a5800e
commit 6e7b30be0a
12 changed files with 400 additions and 27 deletions

11
models/tenanted_test.go Normal file
View File

@@ -0,0 +1,11 @@
package models
import "testing"
func TestCannotCreateUntenanted(t *testing.T) {
tnt := Tenanted{}
if err := tnt.BeforeCreate(nil); err == nil {
t.Errorf("allowed creation of Tenanted model without Tenant value")
}
}