def test_session_state(self): """Test st.write with st.session_state.""" with patch("streamlit.delta_generator.DeltaGenerator.json") as p: st.write(LazySessionState()) p.assert_called_once()
_arrow_table = _main._arrow_table _arrow_altair_chart = _main._arrow_altair_chart _arrow_area_chart = _main._arrow_area_chart _arrow_bar_chart = _main._arrow_bar_chart _arrow_line_chart = _main._arrow_line_chart _arrow_vega_lite_chart = _main._arrow_vega_lite_chart # Config get_option = _config.get_option from streamlit.commands.page_config import set_page_config # Session State from streamlit.state.session_state import LazySessionState session_state = LazySessionState() # Beta APIs beta_container = _main.beta_container beta_expander = _main.beta_expander beta_columns = _main.beta_columns def set_option(key, value): """Set config option. Currently, only the following config options can be set within the script itself: * client.caching * client.displayEnabled
def setUp(self): self.lazy_session_state = LazySessionState()