MCPcopy
hub / github.com/django/django / asession

Method asession

django/test/client.py:819–827  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

817 return session
818
819 async def asession(self):
820 engine = import_module(settings.SESSION_ENGINE)
821 cookie = self.cookies.get(settings.SESSION_COOKIE_NAME)
822 if cookie:
823 return engine.SessionStore(cookie.value)
824 session = engine.SessionStore()
825 await session.asave()
826 self.cookies[settings.SESSION_COOKIE_NAME] = session.session_key
827 return session
828
829 def login(self, **credentials):
830 """

Callers 13

_aloginMethod · 0.95
alogoutMethod · 0.95
test_aloginMethod · 0.80
test_alogin_new_userMethod · 0.80
test_alogoutMethod · 0.80
test_client_alogoutMethod · 0.80
test_change_passwordMethod · 0.80

Calls 2

asaveMethod · 0.95
getMethod · 0.45