Provide a SessionModel instance directly using fixed parameters.
()
| 12 | |
| 13 | @pytest.fixture |
| 14 | def session_direct() -> SessionModel: |
| 15 | """Provide a SessionModel instance directly using fixed parameters.""" |
| 16 | return SessionModel( |
| 17 | id='test_session', |
| 18 | max_age=timedelta(minutes=30), |
| 19 | user_data={'user_key': 'user_value'}, |
| 20 | max_error_score=3.0, |
| 21 | error_score_decrement=0.5, |
| 22 | created_at=SESSION_CREATED_AT, |
| 23 | usage_count=0, |
| 24 | max_usage_count=10, |
| 25 | error_score=0.0, |
| 26 | cookies=[CookieParam({'name': 'cookie_key', 'value': 'cookie_value'})], |
| 27 | blocked_status_codes=[401, 403, 429], |
| 28 | ) |
| 29 | |
| 30 | |
| 31 | @pytest.fixture |
nothing calls this directly
no test coverage detected