Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiltsov-max committed Jun 20, 2023
1 parent 8545771 commit e3420b1
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/python/rest_api/test_cloud_storages.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def test_can_remove_owner_and_fetch_with_sdk(self, admin_user, cloud_storages):
# test for API schema regressions
source_storage = next(
s for s in cloud_storages if s.get("owner") and s["owner"]["username"] != admin_user
)
).copy()

with make_api_client(admin_user) as api_client:
api_client.users_api.destroy(source_storage["owner"]["id"])
Expand Down
2 changes: 1 addition & 1 deletion tests/python/rest_api/test_invitations.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def test_can_remove_owner_and_fetch_with_sdk(self, admin_user, invitations):
invitations
for invitations in invitations
if invitations.get("owner") and invitations["owner"]["username"] != admin_user
)
).copy()

with make_api_client(admin_user) as api_client:
api_client.users_api.destroy(source_inv["owner"]["id"])
Expand Down
2 changes: 1 addition & 1 deletion tests/python/rest_api/test_organizations.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def test_can_remove_owner_and_fetch_with_sdk(self, admin_user, organizations):
org
for org in organizations
if org.get("owner") and org["owner"]["username"] != admin_user
)
).copy()

with make_api_client(admin_user) as api_client:
api_client.users_api.destroy(source_org["owner"]["id"])
Expand Down
2 changes: 1 addition & 1 deletion tests/python/rest_api/test_projects.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def test_can_remove_owner_and_fetch_with_sdk(self, admin_user, projects):
# test for API schema regressions
source_project = next(
p for p in projects if p.get("owner") and p["owner"]["username"] != admin_user
)
).copy()

with make_api_client(admin_user) as api_client:
api_client.users_api.destroy(source_project["owner"]["id"])
Expand Down
2 changes: 1 addition & 1 deletion tests/python/rest_api/test_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ def test_can_remove_owner_and_fetch_with_sdk(self, admin_user, tasks):
# test for API schema regressions
source_task = next(
t for t in tasks if t.get("owner") and t["owner"]["username"] != admin_user
)
).copy()

with make_api_client(admin_user) as api_client:
api_client.users_api.destroy(source_task["owner"]["id"])
Expand Down

0 comments on commit e3420b1

Please sign in to comment.