mirror of
https://github.com/goharbor/harbor.git
synced 2025-02-02 13:01:23 +01: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)
|
||||
}
|
||||
}
|
||||
|
||||
func TestGetOrmer(t *testing.T) {
|
||||
o := GetOrmer()
|
||||
if o == nil {
|
||||
t.Errorf("Error get ormer.")
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user