File size: 537 Bytes
ef4cf4a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
"""Smoke-test that the Streamlit app module imports cleanly.

Streamlit UIs are hard to unit-test without `streamlit.testing` (which
spawns a headless app); for hackathon scope we settle for a clean import
+ presence of `main()`. Manual UX testing via `streamlit run`.
"""
from __future__ import annotations


def test_app_module_imports() -> None:
    from src.frontend import app  # noqa: F401


def test_app_module_defines_main() -> None:
    from src.frontend import app
    assert hasattr(app, "main")
    assert callable(app.main)