Commit d8432229 authored by Sietse Ringers's avatar Sietse Ringers
Browse files

test: test entire user object in myirmaserver postgres DB test

parent ed937e21
......@@ -146,8 +146,12 @@ func TestPostgresDBUserInfo(t *testing.T) {
info, err := db.user(15)
assert.NoError(t, err)
assert.Equal(t, "testuser", info.Username)
assert.Equal(t, []userEmail{{Email: "", DeleteInProgress: false}}, info.Emails)
assert.Equal(t, user{
Username: "testuser",
Emails: []userEmail{{Email: "", DeleteInProgress: false}},
language: "",
DeleteInProgress: false,
}, info)
info, err = db.user(17)
assert.NoError(t, err)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment