def METHOD_NAME(self):
    conn = MockConnection("my_mock_connection")
    with patch(
        "streamlit.connections.base_connection.ExperimentalBaseConnection.reset"
    ) as patched_reset, patch(
        "streamlit.connections.base_connection.ExperimentalBaseConnection._secrets",
        PropertyMock(return_value=AttrDict({"mock_connection": {"new": "secret"}})),
    ):
        conn._on_secrets_changed("unused_arg")
        patched_reset.assert_called_once()