Skip to content

Commit

Permalink
fix failures
Browse files Browse the repository at this point in the history
  • Loading branch information
petrkalos committed Jul 5, 2024
1 parent 170b7ce commit 65f930a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ def test_persistent_env_update(client1, persistent_env1):
assert_that(stack.status).is_equal_to('UPDATE_COMPLETE')


def test_invite_group_on_env_no_org(client1, session_env2, group3):
def test_invite_group_on_env_no_org(client1, session_env2, group4):
assert_that(invite_group_on_env).raises(GqlError).when_called_with(
client1, session_env2.environmentUri, group3, ['CREATE_DATASET']
).contains(group3, 'is not a member of the organization')
client1, session_env2.environmentUri, group4, ['CREATE_DATASET']
).contains(group4, 'is not a member of the organization')


def test_invite_group_on_env_unauthorized(client2, session_env2, group2):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@ def test_get_organization_organization_with_admin_team(client1, org1):
assert_that(response.stats.groups).is_equal_to(0)


def test_get_organization_organization_with_invited_team(client2, org2):
def test_get_organization_with_invited_team(client2, org2):
# Given an organization
organization = org2
# When an invited team (client2) gets the organization
response = get_organization(client=client2, organizationUri=organization.organizationUri)
# Then
assert_that(response.organizationUri).is_equal_to(organization.organizationUri)
assert_that(response.userRoleInOrganization).is_equal_to('Invited')
assert_that(response.stats.groups).is_equal_to(1)
assert_that(response.stats.groups).is_equal_to(2)


def test_get_organization_with_unauthorized_team(client3, org1):
Expand Down Expand Up @@ -82,10 +82,10 @@ def test_list_organizations_with_invited_team(client2, org1, org2, session_id):
assert_that(response.count).is_equal_to(1)


def test_list_organizations_with_unauthorized_team(client3, org1, org2, session_id):
def test_list_organizations_with_unauthorized_team(client4, org1, org2, session_id):
# Given 2 organizations
# When a non-invited user
response = list_organizations(client3, term=session_id)
response = list_organizations(client4, term=session_id)
# Then
assert_that(response.count).is_equal_to(0)

Expand Down

0 comments on commit 65f930a

Please sign in to comment.