Skip to content

AppTest helper

run_app_function

Build an :class:~streamlit.testing.v1.AppTest from fn and .run() it once.

fn should be a no-argument callable containing a Streamlit script body (typically calling :func:streamtree.core.component.render or :func:streamtree.core.component.render_app). Returns the :class:~streamlit.testing.v1.AppTest instance after run completes.