@@ -32,7 +32,9 @@ def object_under_test(target_class):
3232def test_ctor (target_class ):
3333 container_memory = "1G"
3434 container_cpu = 1
35- runtime_connection = "projects/my-project/locations/us-central1/connections/my-connection"
35+ runtime_connection = (
36+ "projects/my-project/locations/us-central1/connections/my-connection"
37+ )
3638 max_batching_rows = 100
3739 runtime_version = "python-3.11"
3840
@@ -64,7 +66,9 @@ def test_container_cpu(object_under_test):
6466
6567
6668def test_runtime_connection (object_under_test ):
67- runtime_connection = "projects/my-project/locations/us-central1/connections/my-connection"
69+ runtime_connection = (
70+ "projects/my-project/locations/us-central1/connections/my-connection"
71+ )
6872 object_under_test .runtime_connection = runtime_connection
6973 assert object_under_test .runtime_connection == runtime_connection
7074
@@ -169,12 +173,16 @@ def test_invalid_container_cpu(object_under_test):
169173
170174
171175def test_invalid_runtime_connection (object_under_test ):
172- with pytest .raises (ValueError , match = "runtime_connection must be a string or None." ):
176+ with pytest .raises (
177+ ValueError , match = "runtime_connection must be a string or None."
178+ ):
173179 object_under_test .runtime_connection = 123
174180
175181
176182def test_invalid_max_batching_rows (object_under_test ):
177- with pytest .raises (ValueError , match = "max_batching_rows must be an integer or None." ):
183+ with pytest .raises (
184+ ValueError , match = "max_batching_rows must be an integer or None."
185+ ):
178186 object_under_test .max_batching_rows = "100"
179187
180188
0 commit comments