MCPcopy Create free account
hub / github.com/apify/crawlee-python / session_args_snake

Function session_args_snake

tests/unit/sessions/test_models.py:50–64  ·  view source on GitHub ↗

Provide session parameters as dictionary with snake case keys.

()

Source from the content-addressed store, hash-verified

48
49@pytest.fixture
50def session_args_snake() -> dict:
51 """Provide session parameters as dictionary with snake case keys."""
52 return {
53 'id': 'test_session',
54 'max_age': '00:30:00',
55 'user_data': {'user_key': 'user_value'},
56 'max_error_score': 3.0,
57 'error_score_decrement': 0.5,
58 'created_at': SESSION_CREATED_AT,
59 'usage_count': 0,
60 'max_usage_count': 10,
61 'error_score': 0.0,
62 'cookies': [CookieParam({'name': 'cookie_key', 'value': 'cookie_value'})],
63 'blocked_status_codes': [401, 403, 429],
64 }
65
66
67def test_session_model(

Callers

nothing calls this directly

Calls 1

CookieParamClass · 0.90

Tested by

no test coverage detected