class_docstr: Tests for st.secrets with multiple secrets.toml files.
class_docstr_tok: ["Tests","for","st.secrets","with","multiple","secrets.toml","files","."]
docstr: Validate that an error is thrown if none of the given secrets.toml files exist.
docstr_tok: ["Validate","that","an","error","is","thrown","if","none","of","the","given","secrets.toml","files","exist","."]
code: def test_no_secrets_files_explodes(self, mock_st_error):
      """Validate that an error is thrown if none of the given secrets.toml files exist."""
  
      secrets_file_locations = [
          "/mock1/secrets.toml",
          "/mock2/secrets.toml",
      ]
      secrets = Secrets(secrets_file_locations)
  
      with self.assertRaises(FileNotFoundError):
          secrets.get("no_such_secret", None)
  
      mock_st_error.assert_called_once_with(
          f"No secrets files found. Valid paths for a secrets.toml file are: /mock1/secrets.toml, /mock2/secrets.toml"
      )
  
imports: import os
  import tempfile
  import unittest
  from collections.abc import Mapping
  from collections.abc import MutableMapping
  from typing import Mapping, MutableMapping
  from unittest.mock import MagicMock, mock_open, patch
  from parameterized import parameterized
  from toml import TomlDecodeError
  from streamlit.runtime.secrets import SECRETS_FILE_LOCS, AttrDict, Secrets
  from tests.exception_capturing_thread import call_on_threads
label_desc: Use image node_id 3 for calling the MultipleSecretsFilesTest obj's underlying member method code with example usage: obj.test_no_secrets_files_explodes(mock_st_error) without return types