Commit 6572db3a authored by Eliot Berriot's avatar Eliot Berriot

Failing test

parent d000a132
......@@ -20,13 +20,18 @@ def test_user_update_permission(factories):
)
s = serializers.ManageUserSerializer(
user,
data={"is_active": False, "permissions": {"federation": False, "upload": True}},
data={
"is_active": False,
"permissions": {"federation": False, "upload": True},
"upload_quota": 12,
},
)
s.is_valid(raise_exception=True)
s.save()
user.refresh_from_db()
assert user.is_active is False
assert user.upload_quota == 12
assert user.permission_federation is False
assert user.permission_upload is True
assert user.permission_library is False
......
Markdown is supported
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