From 6106bcaeb1e82f4f05d973feb8a7d61da50949a8 Mon Sep 17 00:00:00 2001 From: Cor Zuurmond Date: Wed, 18 Sep 2024 15:41:53 +0200 Subject: [PATCH] Reuse successful AWS cli call mock --- tests/unit/test_cli.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/tests/unit/test_cli.py b/tests/unit/test_cli.py index 0ff6a3bfcd..7e6f4b8b50 100644 --- a/tests/unit/test_cli.py +++ b/tests/unit/test_cli.py @@ -698,17 +698,6 @@ def test_migrate_locations_azure_run_as_collection(workspace_clients, acc_client def test_migrate_locations_aws(ws, caplog) -> None: - successful_return = """ - { - "UserId": "uu@mail.com", - "Account": "1234", - "Arn": "arn:aws:sts::1234:assumed-role/AWSVIEW/uu@mail.com" - } - """ - - def successful_call(_): - return 0, successful_return, "" - ctx = WorkspaceContext(ws).replace( is_aws=True, is_azure=False,