hunk.code_window:         self.assertEqual(expected_body, response.body)
       def test_new_metrics_endpoint_should_not_display_deprecation_warning(self):
           with self.assertRaisesRegex(
               AssertionError,
               "no logs of level INFO or higher triggered on "
               r"streamlit\.web\.server\.server\_util",
           ), self.assertLogs("streamlit.web.server.server_util") as logs:
               response = self.fetch("/_stcore/metrics")
           self.assertEqual(len(logs.records), 0)
           self.assertNotIn("link", response.headers)
           self.assertNotIn("deprecation", response.headers)
       def test_protobuf_stats(self):
  
hunk.labels: keep keep keep replace replace replace replace replace replace replace keep keep keep keep
hunk.after_edit:         response = self.fetch("/_stcore/metrics")
  
hunk.file_path: lib/tests/streamlit/web/server/stats_handler_test.py
hunk.type: replace
file: /**!
   * Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022)
   *
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   *
   *     http://www.apache.org/licenses/LICENSE-2.0
   *
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and
   * limitations under the License.
   */
  
  syntax = "proto3";
  
  message LabelVisibilityMessage {
    // We use separate LabelVisibilityMessage instead of just defining Enum and
    // use it in other widgets proto files due to protobuf js error, when just
    // enum defined and imported
    // https://github.com/protobufjs/protobuf.js/issues/1414
    enum LabelVisibilityOptions {
      VISIBLE = 0;
      HIDDEN = 1;
      COLLAPSED = 2;
    }
    LabelVisibilityOptions value = 1;
  }
  