@@ -591,7 +591,7 @@ def test_success_with_override(self):
591591 def test_override_does_not_exist (self ):
592592 config_path = "fake/file/path"
593593 returned_path = _mtls_helper ._get_cert_config_path (config_path )
594- assert returned_path == config_path
594+ assert returned_path is None
595595
596596 @mock .patch .dict (
597597 os .environ ,
@@ -630,10 +630,7 @@ def test_env_variable(self, mock_path_exists):
630630 def test_default_file_does_not_exist (self , mock_path_exists ):
631631 mock_path_exists .return_value = False
632632 returned_path = _mtls_helper ._get_cert_config_path ()
633- expected_path = os .path .expanduser (
634- _mtls_helper .CERTIFICATE_CONFIGURATION_DEFAULT_PATH
635- )
636- assert returned_path == expected_path
633+ assert returned_path is None
637634
638635 def test_cert_config_path_precedence (self ):
639636 # GOOGLE_API_CERTIFICATE_CONFIG takes precedence
@@ -673,7 +670,7 @@ def test_cert_config_path_fallback(self):
673670 def test_env_variable_file_does_not_exist (self , mock_path_exists ):
674671 mock_path_exists .return_value = False
675672 returned_path = _mtls_helper ._get_cert_config_path ()
676- assert returned_path == "path/to/config/file"
673+ assert returned_path is None
677674
678675 @mock .patch .dict (
679676 os .environ ,
0 commit comments