Skip to content

Commit

Permalink
packs/GoogleDrive: format file and fix test
Browse files Browse the repository at this point in the history
Signed-off-by: Gal Nakash <[email protected]>
  • Loading branch information
GalNakash-RecoLabs committed Aug 20, 2023
1 parent a0cbb8f commit 3775cfc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions Packs/GoogleDrive/Integrations/GoogleDrive/GoogleDrive.py
Original file line number Diff line number Diff line change
Expand Up @@ -1247,6 +1247,7 @@ def modify_label_command(client: 'GSuiteClient', args: dict[str, str]) -> Comman

return CommandResults(
outputs=outputs_context,
raw_response=response,
readable_output=table_hr_md,
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -794,7 +794,6 @@ def test_list_labels(self, mocker_http_request, gsuite_client):
assert 'GoogleDrive.Drive' in result.outputs
assert len(result.outputs['GoogleDrive.Drive']['DriveLabels']) == 1


@patch(MOCKER_HTTP_METHOD)
def test_modify_labels_command(self, mocker_http_request, gsuite_client):
"""
Expand Down Expand Up @@ -823,8 +822,9 @@ def test_modify_labels_command(self, mocker_http_request, gsuite_client):
}
result = modify_label_command(gsuite_client, args)

assert 'modifiedLabels' in result.outputs
assert result.outputs.get('modifiedLabels')[0].get('id') == 'vFmXsMA1fQMz1BdE59YSkisZV4DiKdpxxLQRNNEbbFcb'
assert 'modifiedLabels' in result.outputs.get('GoogleDrive.Labels')
assert result.outputs.get('GoogleDrive.Labels').get('modifiedLabels')[0].get('id') \
== 'vFmXsMA1fQMz1BdE59YSkisZV4DiKdpxxLQRNNEbbFcb'

assert result.raw_response == mock_response

Expand Down

0 comments on commit 3775cfc

Please sign in to comment.