Make invited user model inherit from JSONModel

This is more consistent, and less fiddly that always having to call it
with a dictionary expansion.
This commit is contained in:
Chris Hill-Scott
2019-06-05 14:39:02 +01:00
parent f8fb2d3c8f
commit bd9acb1310
7 changed files with 127 additions and 87 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ def test_doesnt_redirect_to_sign_in_if_no_session_info(
api_user_active,
mock_get_organisation_by_domain,
):
assert 'current_session_id' not in api_user_active
api_user_active['current_session_id'] = str(uuid.UUID(int=1))
with client_request.session_transaction() as session:
session['current_session_id'] = None