Spaces:
Running
Running
Add new apptest for streamlit
Browse files- tests/test_apptest.py +7 -0
tests/test_apptest.py
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# file: D:/Projects/Battlewords/tests/test_apptest.py
|
| 2 |
+
from streamlit.testing.v1 import AppTest
|
| 3 |
+
|
| 4 |
+
def test_app_runs():
|
| 5 |
+
at = AppTest.from_file("app.py")
|
| 6 |
+
at.run()
|
| 7 |
+
assert not at.exception
|