class_docstr: Test Public Streamlit Public APIs.
docstr: Test st.time_input exceptions.
docstr_tok: ["Test","st.time_input","exceptions","."]
code: def test_st_time_input_exceptions(self):
      """Test st.time_input exceptions."""
      value = datetime.time(9, 00)
      with self.assertRaises(StreamlitAPIException):
          st.time_input("Set an alarm for", value, step=True)
      with self.assertRaises(StreamlitAPIException):
          st.time_input("Set an alarm for", value, step=(90, 0))
      with self.assertRaises(StreamlitAPIException):
          st.time_input("Set an alarm for", value, step=1)
      with self.assertRaises(StreamlitAPIException):
          st.time_input("Set an alarm for", value, step=59)
      with self.assertRaises(StreamlitAPIException):
          st.time_input(
              "Set an alarm for",
              value,
              step=datetime.timedelta(hours=24),
          )
      with self.assertRaises(StreamlitAPIException):
          st.time_input(
              "Set an alarm for", value, step=datetime.timedelta(days=1)
          )
  
file_path: streamlit/lib/tests/streamlit/elements/time_widgets_test.py
imports: import datetime
  import streamlit
  from streamlit.errors import StreamlitAPIException
  from tests.delta_generator_test_case import DeltaGeneratorTestCase
label_desc: Use image node_id 3 for calling the StreamlitAPITest obj's underlying member method code with example usage: obj.test_st_time_input_exceptions() without return types