Skip to content

Commit f21a72b

Browse files
chore: Update mock name for test
Signed-off-by: Radhika Agrawal <agrawalradhika@google.com>
1 parent 635d662 commit f21a72b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gapic/templates/tests/unit/gapic/%name_%version/%sub/test_%service.py.j2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -695,8 +695,8 @@ def test_{{ service.client_name|snake_case }}_get_mtls_endpoint_and_cert_source(
695695
with mock.patch.dict(os.environ, {"GOOGLE_API_USE_CLIENT_CERTIFICATE": ""}):
696696
config_filename = "mock_certificate_config.json"
697697
config_file_content = json.dumps(config_data)
698-
m = mock.mock_open(read_data=config_file_content)
699-
with mock.patch("builtins.open", m):
698+
mock_read_file = mock.mock_open(read_data=config_file_content)
699+
with mock.patch("builtins.open", mock_read_file):
700700
with mock.patch.dict(
701701
os.environ, {"GOOGLE_API_CERTIFICATE_CONFIG": config_filename}
702702
):

0 commit comments

Comments
 (0)