mirror of
https://github.com/goharbor/harbor
synced 2025-04-20 20:28:55 +00:00
add unit test of GetOrmer
This commit is contained in:
parent
867911e96e
commit
2f60bf4f1f
|
@ -715,3 +715,10 @@ func TestDeleteUser(t *testing.T) {
|
||||||
t.Errorf("user is not nil after deletion, user: %+v", user)
|
t.Errorf("user is not nil after deletion, user: %+v", user)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func TestGetOrmer(t *testing.T) {
|
||||||
|
o := GetOrmer()
|
||||||
|
if o == nil {
|
||||||
|
t.Errorf("Error get ormer.")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user