class documentation
class ClientMixin: (source)
Known subclasses: django.test.client.AsyncClient
, django.test.client.Client
Mixin with common methods between Client and AsyncClient.
Method | check |
Look for a signaled exception, clear the current context exception data, re-raise the signaled exception, and clear the signaled exception from the local cache. |
Method | force |
Undocumented |
Method | login |
Set the Factory to appear as if it has successfully logged into a site. |
Method | logout |
Log out the user by removing the cookies and session object. |
Method | store |
Store exceptions when they are generated by a view. |
Instance Variable | cookies |
Undocumented |
Instance Variable | exc |
Undocumented |
Property | session |
Return the current session variables. |
Method | _login |
Undocumented |
Method | _parse |
Undocumented |
Look for a signaled exception, clear the current context exception data, re-raise the signaled exception, and clear the signaled exception from the local cache.
Set the Factory to appear as if it has successfully logged into a site. Return True if login is possible or False if the provided credentials are incorrect.