MCPcopy Create free account
hub / github.com/TimMcCool/scratchattach / session

Function session

tests/src/util/__init__.py:23–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21
22
23def session() -> _Session:
24 global _session
25
26 if not _session:
27 auth = get_auth().get("auth")
28 scratchattachv2 = None if auth is None else auth.get("scratchattachv2")
29 if scratchattachv2 is None:
30 raise RuntimeError("Not enough data for login.")
31 _session = login("ScratchAttachV2", scratchattachv2)
32
33 return _session
34
35
36_teacher_session: Optional[_Session] = None

Callers 4

test_userFunction · 0.90
test_projectFunction · 0.90
test_searchFunction · 0.90
test_studioFunction · 0.90

Calls 3

loginFunction · 0.90
get_authFunction · 0.85
getMethod · 0.45

Tested by 4

test_userFunction · 0.72
test_projectFunction · 0.72
test_searchFunction · 0.72
test_studioFunction · 0.72