Skip to content

Commit 49c3902

Browse files
Corrected formatting issues
1 parent baaa973 commit 49c3902

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

tap_google_sheets/client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""REST client handling, including google_sheetsStream base class."""
2+
23
from pathlib import Path
34
from typing import Any, Dict, Iterable, Optional
45

@@ -102,7 +103,7 @@ def parse_response(self, response: requests.Response) -> Iterable[dict]:
102103
"""Parse the response and return an iterator of result rows."""
103104
# TODO: Parse response body and return a set of records.
104105
yield from extract_jsonpath(self.records_jsonpath, input=response.json())
105-
106+
106107
@override
107108
def backoff_max_tries(self):
108109
"""Return the maximum number of backoff attempts to make."""

tap_google_sheets/tests/test_retry_of_discovered_streams.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def test_retry_of_discovered_streams(self):
2323
responses.POST,
2424
"https://oauth2.googleapis.com/token",
2525
json={"access_token": "mocked_token", "expires_in": 3600},
26-
status=200
26+
status=200,
2727
)
2828

2929
responses.add(
@@ -64,7 +64,8 @@ def test_retry_of_discovered_streams(self):
6464
self.assertEqual(tap.discover_streams()[0].name, "File_Name_One")
6565
# check that a retry happened by confirming both Sheets API responses occurred
6666
sheet_requests = [
67-
call for call in responses.calls
67+
call
68+
for call in responses.calls
6869
if "sheets.googleapis.com/v4/spreadsheets" in call.request.url
6970
]
7071
self.assertGreaterEqual(len(sheet_requests), 2)

0 commit comments

Comments
 (0)