Skip to content

Commit

Permalink
MM-57990: fix linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ifoukarakis committed Apr 29, 2024
1 parent 5d93afd commit 54035bb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion tests/utils/db/test_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,9 @@ def test_should_upload_file_to_table(mocker):
call('TRUNCATE TABLE test-schema.a-table'),
call('CREATE TEMPORARY STAGE IF NOT EXISTS test-schema.a-table'),
call('PUT file:///tmp/upload.csv @test-schema.a-table OVERWRITE=TRUE'),
call("COPY INTO test-schema.a-table FROM @test-schema.a-table FILE_FORMAT = (TYPE = CSV SKIP_HEADER = 1 FIELD_OPTIONALLY_ENCLOSED_BY = '\"')"), # noqa: E501
call(
"COPY INTO test-schema.a-table FROM @test-schema.a-table FILE_FORMAT = (TYPE = CSV SKIP_HEADER = 1 FIELD_OPTIONALLY_ENCLOSED_BY = '\"')" # noqa: E501
), # noqa: E501
]
)

Expand Down
4 changes: 2 additions & 2 deletions tests/utils/geolite/test_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def test_download_country_partial(responses, given_request_to):
# WHEN: request to download given file but only partial results in file
client = MaxMindClient('account', 'license')
with tempfile.TemporaryDirectory() as target_dir, pytest.raises(ValueError) as excinfo:
files = client.download(Edition.COUNTRY, target_dir)
client.download(Edition.COUNTRY, target_dir)

# THEN: expect proper error message
assert "Not all expected files found in zip file" in str(excinfo.value)
Expand Down Expand Up @@ -84,7 +84,7 @@ def test_download_error_code(responses):
"1.1.1.1/32,,2077456,,0,0,\n"
"1.1.1.2/31,6252001,2077456,,0,0,",
# Second file
"geoname_id,locale_code,continent_code,continent_name,country_iso_code,country_name,is_in_european_union\n" # noqa: E5017
"geoname_id,locale_code,continent_code,continent_name,country_iso_code,country_name,is_in_european_union\n" # noqa: E501
"2077456,en,OC,Oceania,AU,Australia,0",
],
id="country",
Expand Down

0 comments on commit 54035bb

Please sign in to comment.