Skip to content
Snippets Groups Projects
Commit 34bc675f authored by Diana Gudu's avatar Diana Gudu
Browse files

remove redundant MockUserInfo definition in tests

parent fdf4f13d
No related branches found
No related tags found
No related merge requests found
Pipeline #321628 canceled
......@@ -8,23 +8,3 @@ def userinfo(data):
"""Creates a UserInfo object from provided dict"""
userinfo = UserInfo(data)
yield userinfo
class MockUserInfo:
"""Mocks a UserInfo object to be passed to backend user
Only a few properties are necessary:
- unique_id
- username
- primary_group
- ssh_keys
"""
def __init__(self, data):
self.unique_id = data.get("unique_id")
self.username = data.get("username")
self.primary_group = data.get("primary_group")
self.ssh_keys = data.get("ssh_keys")
self.family_name = data.get("family_name")
self.given_name = data.get("given_name")
self.full_name = data.get("full_name")
self.email = data.get("email")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment