Fix test
This commit is contained in:
parent
f0bbd82325
commit
2fe84bd5cc
|
@ -56,9 +56,12 @@ class HelpersTest(unittest.TestCase):
|
||||||
])
|
])
|
||||||
def test_is_owner(self, creator_user_id, user_id, owner):
|
def test_is_owner(self, creator_user_id, user_id, owner):
|
||||||
# Configure test
|
# Configure test
|
||||||
user = MagicMock()
|
if user_id:
|
||||||
user.id = user_id
|
user = MagicMock()
|
||||||
helpers.tk.c.userobj = user
|
user.id = user_id
|
||||||
|
helpers.tk.c.userobj = user
|
||||||
|
else:
|
||||||
|
helpers.tk.c.userobj = None
|
||||||
|
|
||||||
pkg_dict = {'creator_user_id': creator_user_id}
|
pkg_dict = {'creator_user_id': creator_user_id}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue