from streamlit.testing.v1 import AppTest import pytest def test_no_interaction(): at = AppTest.from_file(script_path="auth.py", default_timeout=10) at.run() assert at.session_state.status == "unverified" assert at.session_state.username == "" assert at.session_state.username_field == "" assert at.session_state.password_field == "" assert len(at.text_input) == 2 assert len(at.button) == 2 assert len(at.warning) == 0 assert len(at.success) == 0