From fc4c45245bd4fefbd04205f46ded54041e0c6f4c Mon Sep 17 00:00:00 2001 From: anonymousdouble <112695649+anonymousdouble@users.noreply.github.com> Date: Tue, 19 Dec 2023 16:06:23 +1100 Subject: [PATCH] Update test_client.py refactor with chain assignment to make code more Pythonic and concise. --- tests/test_client.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/test_client.py b/tests/test_client.py index 361e76b..d75f95e 100644 --- a/tests/test_client.py +++ b/tests/test_client.py @@ -466,9 +466,8 @@ def test_create_workbook_no_folder(mocker, mock_client): def test_create_workbook_with_folder(mocker, mock_client): filename = 'test_create_workbook' - file_id = 'xyz1234' + folder_id = file_id = 'xyz1234' foldername = 'datasheets_test_folder_1' - folder_id = 'xyz1234' root_id = '0AP2cy554S5hyUk9PVA' mocked_drive_svc = mocker.patch.object(mock_client, 'drive_svc', autospec=True) mocked_drive_svc.files().get().execute.return_value = {'id': root_id}