test.runner.DiscoverRunner
  • References/Python/Django/Guides

class DiscoverRunner(pattern='test*.py', top_level=None, verbosity=1, interactive=True, failfast=False, keepdb=False, reverse=False, debug_sql=False, **kwargs)

2025-01-10 15:47:30
test.modify_settings()
  • References/Python/Django/Guides

modify_settings() [source] Likewise, Django provides the modify_settings() decorator:

2025-01-10 15:47:30
test.LiveServerTestCase
  • References/Python/Django/Guides

class LiveServerTestCase [source] LiveServerTestCase does basically the same

2025-01-10 15:47:30
auth.views.redirect_to_login()
  • References/Python/Django/Guides

redirect_to_login(next, login_url=None, redirect_field_name='next') Redirects to the login page, and then back to another URL

2025-01-10 15:47:30
core.mail.get_connection()
  • References/Python/Django/Guides

get_connection(backend=None, fail_silently=False, *args, **kwargs) [source] By default, a

2025-01-10 15:47:30
core.paginator.Paginator.page()
  • References/Python/Django/Guides

Paginator.page(number) [source] Returns a Page object with the given 1-based

2025-01-10 15:47:30
auth.models.PermissionsMixin.get_group_permissions()
  • References/Python/Django/Guides

get_group_permissions(obj=None) Returns a set of permission strings that the user has, through their groups.

2025-01-10 15:47:30
test.SimpleTestCase.assertFormError()
  • References/Python/Django/Guides

SimpleTestCase.assertFormError(response, form, field, errors, msg_prefix='') [source] Asserts

2025-01-10 15:47:30
test.runner.DiscoverRunner.setup_test_environment()
  • References/Python/Django/Guides

DiscoverRunner.setup_test_environment(**kwargs) Sets up the test environment by calling setup_test_environment()

2025-01-10 15:47:30
auth.mixins.PermissionRequiredMixin.get_permission_required()
  • References/Python/Django/Guides

get_permission_required() Returns an iterable of permission names used by the mixin. Defaults to the permission_required

2025-01-10 15:47:30