workspace users who have not accepted invite should not have permissions

This commit is contained in:
dandds
2018-10-25 15:14:14 -04:00
parent 3e19c75c80
commit 5c2d466049
8 changed files with 78 additions and 64 deletions

View File

@@ -6,6 +6,7 @@ def test_user_with_workspaces_has_workspaces_nav(client, user_session):
user = UserFactory.create()
workspace = WorkspaceFactory.create()
Workspaces._create_workspace_role(user, workspace, "developer")
Workspaces.accept_workspace_role(user, workspace)
user_session(user)
response = client.get("/home", follow_redirects=True)