Update env roles by environment

This commit is contained in:
leigh-mil
2019-04-22 16:06:13 -04:00
parent f6577c0cd6
commit c085f27af8
4 changed files with 129 additions and 145 deletions

View File

@@ -123,8 +123,8 @@ def test_has_env_role_history(session):
env_role = EnvironmentRoleFactory.create(
user=user, environment=environment, role="developer"
)
Environments.update_environment_roles(
portfolio_role, [{"role": "admin", "id": environment.id}]
Environments.update_env_roles_by_member(
user, [{"role": "admin", "id": environment.id}]
)
changed_events = (
session.query(AuditEvent)