Skip to content

Commit f9e7a2f

Browse files
committed
linting and formatting
1 parent 05937ea commit f9e7a2f

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

sdks/python/apache_beam/dataframe/io_it_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@
3838
GoogleAPICallError = None
3939

4040

41-
@unittest.skipIf(GoogleAPICallError is None, 'GCP dependencies are not installed')
41+
@unittest.skipIf(
42+
GoogleAPICallError is None, 'GCP dependencies are not installed')
4243
class ReadUsingReadGbqTests(unittest.TestCase):
4344
@pytest.mark.it_postcommit
4445
def test_ReadGbq(self):

sdks/python/apache_beam/dataframe/io_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,8 @@ def test_double_write(self):
440440
set(self.read_all_lines(output + 'out2.csv*')))
441441

442442

443-
@unittest.skipIf(GoogleAPICallError is None, 'GCP dependencies are not installed')
443+
@unittest.skipIf(
444+
GoogleAPICallError is None, 'GCP dependencies are not installed')
444445
class ReadGbqTransformTests(unittest.TestCase):
445446
@mock.patch.object(BigQueryWrapper, 'get_table')
446447
def test_bad_schema_public_api_direct_read(self, get_table):

sdks/python/apache_beam/testing/pipeline_verifiers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
try:
4444
from google.api_core.exceptions import GoogleAPICallError
4545
except ImportError:
46-
GoogleAPICallError = None
46+
GoogleAPICallError = None # type: ignore
4747

4848
MAX_RETRIES = 4
4949

sdks/python/apache_beam/testing/pipeline_verifiers_test.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@
4141
from google.api_core.exceptions import NotFound
4242
from apache_beam.io.gcp.gcsfilesystem import GCSFileSystem
4343
except ImportError:
44-
GoogleAPICallError = None
45-
NotFound = None
44+
GoogleAPICallError = None # type: ignore
45+
NotFound = None # type: ignore
4646
GCSFileSystem = None # type: ignore
4747

4848

@@ -123,7 +123,8 @@ def test_file_checksum_matcher_read_failed(self, mock_match):
123123
self.assertEqual(verifiers.MAX_RETRIES + 1, mock_match.call_count)
124124

125125
@patch.object(GCSFileSystem, 'match')
126-
@unittest.skipIf(GoogleAPICallError is None, 'GCP dependencies are not installed')
126+
@unittest.skipIf(
127+
GoogleAPICallError is None, 'GCP dependencies are not installed')
127128
def test_file_checksum_matcher_service_error(self, mock_match):
128129
mock_match.side_effect = NotFound('Not Found')
129130
matcher = verifiers.FileChecksumMatcher('gs://dummy/path', Mock())

0 commit comments

Comments
 (0)