MCPcopy Create free account
hub / github.com/LaunchPlatform/beanhub-cli / make_session_cookies

Function make_session_cookies

tests/forms/app/conftest.py:65–77  ·  view source on GitHub ↗
(
    make_session: typing.Callable[[typing.Dict[str, typing.Any]], str],
    raw_csrf_token: str,
)

Source from the content-addressed store, hash-verified

63
64@pytest.fixture
65def make_session_cookies(
66 make_session: typing.Callable[[typing.Dict[str, typing.Any]], str],
67 raw_csrf_token: str,
68) -> types_def.MakeSessionCookies:
69 def _make_session_cookies(
70 _add_csrf_token: bool = True, **data: str
71 ) -> typing.Dict[str, typing.Any]:
72 session_data = data
73 if _add_csrf_token:
74 session_data |= dict(csrf_token=raw_csrf_token)
75 return dict(session=make_session(**data))
76
77 return _make_session_cookies

Callers 1

test_submit_formFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected