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

Function session_args_camel

tests/unit/sessions/test_models.py:32–46  ·  view source on GitHub ↗

Provide session parameters as dictionary with camel case keys.

()

Source from the content-addressed store, hash-verified

30
31@pytest.fixture
32def session_args_camel() -> dict:
33 """Provide session parameters as dictionary with camel case keys."""
34 return {
35 'id': 'test_session',
36 'maxAge': '00:30:00',
37 'userData': {'user_key': 'user_value'},
38 'maxErrorScore': 3.0,
39 'errorScoreDecrement': 0.5,
40 'createdAt': SESSION_CREATED_AT,
41 'usageCount': 0,
42 'maxUsageCount': 10,
43 'errorScore': 0.0,
44 'cookies': [CookieParam({'name': 'cookie_key', 'value': 'cookie_value'})],
45 'blockedStatusCodes': [401, 403, 429],
46 }
47
48
49@pytest.fixture

Callers

nothing calls this directly

Calls 1

CookieParamClass · 0.90

Tested by

no test coverage detected