def _before_module():
    # Run the streamlit app before each module
    with run_streamlit():
        yield

    Path("example_app/example_two.py").write_text(
        """import streamlit as st

st.write("This is just a sample page!")
"""
    )
import streamlit as st

st.write("This is just a sample page!")
tests/test_edits.py