Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yurijmikhalevich committed May 12, 2023
1 parent bad6e32 commit 7eeabc9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/tests_app/utilities/test_cloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
@mock.patch("lightning.app.core.constants.LIGHTNING_CLOUD_ORGANIZATION_ID", "organization_id")
def test_get_project_picks_up_organization_id():
"""Uses organization_id from `LIGHTNING_CLOUD_ORGANIZATION_ID` config var if none passed"""
lightning_client = LightningClient()
lightning_client = mock.MagicMock()
lightning_client.projects_service_list_memberships = mock.MagicMock(
return_value=V1ListMembershipsResponse(memberships=[V1Membership(project_id="project_id")]),
)
Expand All @@ -18,7 +18,7 @@ def test_get_project_picks_up_organization_id():


def test_get_project_doesnt_pass_organization_id_if_its_not_set():
lightning_client = LightningClient()
lightning_client = mock.MagicMock()
lightning_client.projects_service_list_memberships = mock.MagicMock(
return_value=V1ListMembershipsResponse(memberships=[V1Membership(project_id="project_id")]),
)
Expand Down

0 comments on commit 7eeabc9

Please sign in to comment.