def run_streamlit():
    """Run the streamlit app at examples/streamlit_app.py on port 8599"""
    import subprocess

    if LOCAL_TEST:
        try:
            yield 1
        finally:
            pass
    else:
        p = subprocess.Popen(
            [
                "streamlit",
                "run",
                "example_app/streamlit_app.py",
                "--server.port",
                PORT,
                "--server.headless",
                "true",
                "--server.runOnSave",
                "true",
            ]
        )

        sleep(5)

        try:
            yield 1
        finally:
            p.kill()
Run the streamlit app at examples/streamlit_app.py on port 8599
tests/test_edits.py