MCPcopy
hub / github.com/django/django / test_client_aforce_login

Method test_client_aforce_login

tests/async/test_async_auth.py:106–111  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

104 )
105
106 async def test_client_aforce_login(self):
107 await self.client.aforce_login(self.test_user)
108 request = HttpRequest()
109 request.session = await self.client.asession()
110 user = await aget_user(request)
111 self.assertEqual(user.username, self.test_user.username)
112
113 @override_settings(
114 AUTHENTICATION_BACKENDS=[

Callers

nothing calls this directly

Calls 4

HttpRequestClass · 0.90
aget_userFunction · 0.90
aforce_loginMethod · 0.80
asessionMethod · 0.80

Tested by

no test coverage detected