FlyingNunchucks commited on
Commit
e2cb58c
·
1 Parent(s): bf8bfba

Fix Streamlit smoke test app path

Browse files
Files changed (1) hide show
  1. tests/test_app_smoke.py +6 -1
tests/test_app_smoke.py CHANGED
@@ -1,7 +1,12 @@
 
 
1
  from streamlit.testing.v1 import AppTest
2
 
3
 
 
 
 
4
  def test_streamlit_app_loads_without_exception():
5
- app = AppTest.from_file("app.py", default_timeout=15).run()
6
 
7
  assert not app.exception
 
1
+ from pathlib import Path
2
+
3
  from streamlit.testing.v1 import AppTest
4
 
5
 
6
+ APP_PATH = Path(__file__).resolve().parents[1] / "app.py"
7
+
8
+
9
  def test_streamlit_app_loads_without_exception():
10
+ app = AppTest.from_file(APP_PATH, default_timeout=15).run()
11
 
12
  assert not app.exception