Check if the session state is correctly retrievable in both dict and model forms.
(session: Session)
| 38 | |
| 39 | |
| 40 | def test_session_get_state(session: Session) -> None: |
| 41 | """Check if the session state is correctly retrievable in both dict and model forms.""" |
| 42 | session_state_dict = session.get_state(as_dict=True) |
| 43 | assert session_state_dict['id'] == 'test_session' |
| 44 | |
| 45 | session_state_model = session.get_state(as_dict=False) |
| 46 | assert session_state_model.id == 'test_session' |
| 47 | |
| 48 | session_2 = Session.from_model(session_state_model) |
| 49 | assert session_2.id == 'test_session' |
| 50 | |
| 51 | |
| 52 | def test_mark_good(session: Session) -> None: |
nothing calls this directly
no test coverage detected