>tmp_path</span><span class="p">):</span>
    <span class="sd">&quot;&quot;&quot;Test custom app with code provided via string&quot;&quot;&quot;</span>
    <span class="n">dest</span> <span class="o">=</span> <span class="n">tmp_path</span> <span class="o">/</span> <span class="s2">&quot;app_custom_code.py&quot;</span>
    <span class="n">code</span> <span class="o">=</span> <span class="s2">&quot;&quot;&quot;</span>
<span class="s2">        st.write(&quot;hello&quot;)</span>
<span class="s2">        st.bal