Skip to content

Commit f276a6e

Browse files
author
octavia-squidington-iii
committed
Auto-fix lint and format issues
1 parent 8fae49e commit f276a6e

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

unit_tests/sources/declarative/decoders/test_composite_decoder.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -205,20 +205,19 @@ def test_composite_raw_decoder_csv_parser_values(requests_mock, encoding: str, d
205205

206206

207207
class TestServer(BaseHTTPRequestHandler):
208-
209208
def do_GET(self) -> None:
210-
self.send_response(200)
211-
self.end_headers()
212-
self.wfile.write(bytes("col1,col2\nval1,val2", 'utf-8'))
209+
self.send_response(200)
210+
self.end_headers()
211+
self.wfile.write(bytes("col1,col2\nval1,val2", "utf-8"))
213212

214213

215214
def test_composite_raw_decoder_csv_parser_without_mocked_response():
216215
"""
217-
This test reproduce a `ValueError: I/O operation on closed file` error we had with CSV parsing. We could not catch this with other tests because the closing of the mocked response from requests_mock was not the same as the one in requests.
216+
This test reproduce a `ValueError: I/O operation on closed file` error we had with CSV parsing. We could not catch this with other tests because the closing of the mocked response from requests_mock was not the same as the one in requests.
218217
"""
219218
# start server
220-
httpd = HTTPServer(('localhost', 8080), TestServer)
221-
thread = Thread(target=httpd.serve_forever, args = ())
219+
httpd = HTTPServer(("localhost", 8080), TestServer)
220+
thread = Thread(target=httpd.serve_forever, args=())
222221
thread.start()
223222

224223
response = requests.get("http://localhost:8080", stream=True)

0 commit comments

Comments
 (0)