Tests / fedidevs/tests.py
TestAnonymousCacheAndCsrf::test_anonymous_forms_work_after_csrf_bootstrap
First seen 3 weeks ago in 0c23747
CI
github-actions:test
11 runs
Average
193 ms
median 173 ms
max 436 ms
max 436 ms
Phases
Setup 17 ms
Call 175 ms
Teardown 0.33 ms
Categories
Database 31 ms
Network 0.34 ms
App code 0.14 ms
Test code 0.14 ms
Other (Libraries, Imports, Templates, pytest, ...) 161 ms
8 database queries per run
Needs 113 KB of memory (max 524 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 7 hours ago ·
open run
setup24 ms8.8%
TestCase.setUpClassdjango/test/testcases.py:1426 cls.cls_atomics = cls._enter_atomics()24 ms8.8%
TestCase._enter_atomicsdjango/test/testcases.py:139924 ms8.8%
Atomic.__enter__django/db/transaction.py:21024 ms8.8%
BaseDatabaseWrapper.get_autocommitdjango/db/backends/base/base.py:45424 ms8.8%
SimpleTestCase.ensure_connection_patch_method.<locals>.patched_ensure_connectiondjango/test/testcases.py:30424 ms8.8%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2624 ms8.8%
BaseDatabaseWrapper.ensure_connectiondjango/db/backends/base/base.py:27924 ms8.8%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2624 ms8.8%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:25624 ms8.8%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2624 ms8.8%
DatabaseWrapper.get_new_connectiondjango/db/backends/postgresql/base.py:34524 ms8.8%
Connection.connectpsycopg/connection.py:10924 ms8.8%
wait_connpsycopg/waiting.py:14514 ms5.2%
BaseConnection._connect_genpsycopg/_connection_base.py:43914 ms5.2%
wait_connpsycopg/waiting.py:1417 ms2.4%
EpollSelector.select<stdlib>/selectors.py:4527 ms2.4%
wait_connpsycopg/waiting.py:1363 ms1.2%
BaseConnection._connect_genpsycopg/_connection_base.py:4393 ms1.2%
call250 ms91.1%
TestAnonymousCacheAndCsrf.test_anonymous_forms_work_after_csrf_bootstrapfedidevs/tests.py:98 subscribe = client.post(138 ms50.4%
Client.postdjango/test/client.py:1162138 ms50.4%
RequestFactory.postdjango/test/client.py:499138 ms50.4%
RequestFactory.genericdjango/test/client.py:671138 ms50.4%
Client.requestdjango/test/client.py:1091138 ms50.4%
ClientHandler.__call__django/test/client.py:186138 ms50.4%
BaseHandler.get_responsedjango/core/handlers/base.py:142138 ms50.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:56138 ms50.4%
MiddlewareMixin.__call__django/utils/deprecation.py:380138 ms50.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:56138 ms50.4%
MiddlewareMixin.__call__django/utils/deprecation.py:380138 ms50.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:56138 ms50.4%
MiddlewareMixin.__call__django/utils/deprecation.py:380138 ms50.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:56138 ms50.4%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:123138 ms50.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:56138 ms50.4%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:145138 ms50.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:56138 ms50.4%
MiddlewareMixin.__call__django/utils/deprecation.py:380138 ms50.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:56138 ms50.4%
MiddlewareMixin.__call__django/utils/deprecation.py:380138 ms50.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:56138 ms50.4%
MiddlewareMixin.__call__django/utils/deprecation.py:380138 ms50.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:56138 ms50.4%
MiddlewareMixin.__call__django/utils/deprecation.py:380138 ms50.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:56138 ms50.4%
MiddlewareMixin.__call__django/utils/deprecation.py:380138 ms50.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:56138 ms50.4%
MiddlewareMixin.__call__django/utils/deprecation.py:380138 ms50.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:56138 ms50.4%
MiddlewareMixin.__call__django/utils/deprecation.py:380138 ms50.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:56138 ms50.4%
BaseHandler._get_responsedjango/core/handlers/base.py:199136 ms49.5%
subscribeposts/views.py:38 if form.is_valid():118 ms42.8%
BaseForm.is_validdjango/forms/forms.py:206117 ms42.4%
BaseForm.errorsdjango/forms/forms.py:201117 ms42.4%
BaseForm.full_cleandjango/forms/forms.py:337117 ms42.4%
BaseForm._clean_fieldsdjango/forms/forms.py:345117 ms42.4%
Field._clean_bound_fielddjango/forms/fields.py:273117 ms42.4%
Field.cleandjango/forms/fields.py:210117 ms42.4%
Field.run_validatorsdjango/forms/fields.py:195117 ms42.4%
EmailValidator.__call__django/core/validators.py:255117 ms42.4%
EmailValidator.validate_domain_partdjango/core/validators.py:261117 ms42.4%
new_method_proxy.<locals>.innerdjango/utils/functional.py:251117 ms42.4%
SimpleLazyObject._setupdjango/utils/functional.py:404117 ms42.4%
_lazy_re_compile.<locals>._compiledjango/utils/regex_helper.py:349117 ms42.4%
compile<stdlib>/re/__init__.py:291117 ms42.4%
_compile<stdlib>/re/__init__.py:352117 ms42.4%
compile<stdlib>/re/_compiler.py:766114 ms41.6%
_code<stdlib>/re/_compiler.py:599114 ms41.6%
_compile<stdlib>/re/_compiler.py:12462 ms22.7%
_compile<stdlib>/re/_compiler.py:11636 ms13.0%
_compile<stdlib>/re/_compiler.py:8836 ms13.0%
_optimize_charset<stdlib>/re/_compiler.py:27223 ms8.4%
_optimize_charset<stdlib>/re/_compiler.py:2747 ms2.5%
_optimize_charset<stdlib>/re/_compiler.py:2736 ms2.1%
_compile<stdlib>/re/_compiler.py:8827 ms9.7%
_optimize_charset<stdlib>/re/_compiler.py:27213 ms4.6%
_optimize_charset<stdlib>/re/_compiler.py:2737 ms2.5%
_optimize_charset<stdlib>/re/_compiler.py:2747 ms2.5%
_compile<stdlib>/re/_compiler.py:8830 ms10.9%
_optimize_charset<stdlib>/re/_compiler.py:27414 ms5.0%
_optimize_charset<stdlib>/re/_compiler.py:27212 ms4.2%
_optimize_charset<stdlib>/re/_compiler.py:2735 ms1.7%
_compile<stdlib>/re/_compiler.py:18122 ms8.0%
_compile<stdlib>/re/_compiler.py:11622 ms8.0%
_compile<stdlib>/re/_compiler.py:8822 ms8.0%
_optimize_charset<stdlib>/re/_compiler.py:2728 ms2.9%
_optimize_charset<stdlib>/re/_compiler.py:2965 ms1.7%
_optimize_charset<stdlib>/re/_compiler.py:2735 ms1.7%
_optimize_charset<stdlib>/re/_compiler.py:2745 ms1.7%
1 smaller frames hidden
subscribeposts/views.py:41 send_mail(12 ms4.2%
deprecate_posargs.<locals>.decorator.<locals>.wrapperdjango/utils/deprecation.py:33912 ms4.2%
send_maildjango/core/mail/__init__.py:1656 ms2.1%
deprecate_posargs.<locals>.decorator.<locals>.wrapperdjango/utils/deprecation.py:3396 ms2.1%
get_connectiondjango/core/mail/__init__.py:976 ms2.1%
MailersHandler.create_connectiondjango/core/mail/handler.py:736 ms2.1%
import_stringdjango/utils/module_loading.py:306 ms2.1%
cached_importdjango/utils/module_loading.py:156 ms2.1%
import_module<stdlib>/importlib/__init__.py:886 ms2.1%
_gcd_import<frozen importlib._bootstrap>:13896 ms2.1%
_find_and_load<frozen importlib._bootstrap>:13533 ms1.3%
_find_and_load_unlocked<frozen importlib._bootstrap>:12493 ms1.3%
_load_unlocked<frozen importlib._bootstrap>:8573 ms1.3%
_LoaderBasics.exec_module<frozen importlib._bootstrap_external>:7513 ms1.3%
_call_with_frames_removed<frozen importlib._bootstrap>:4913 ms1.3%
<module>django/core/mail/backends/locmem.py:83 ms1.3%
_find_and_load<frozen importlib._bootstrap>:13533 ms1.3%
_find_and_load_unlocked<frozen importlib._bootstrap>:12492 ms0.8%
_load_unlocked<frozen importlib._bootstrap>:8572 ms0.8%
_LoaderBasics.exec_module<frozen importlib._bootstrap_external>:7472 ms0.8%
SourceLoader.get_code<frozen importlib._bootstrap_external>:8812 ms0.8%
SourceLoader.source_to_code<frozen importlib._bootstrap_external>:8102 ms0.8%
_call_with_frames_removed<frozen importlib._bootstrap>:4912 ms0.8%
1 smaller frames hidden
_find_and_load<frozen importlib._bootstrap>:13382 ms0.8%
_resolve_parents<frozen importlib._bootstrap>:12992 ms0.8%
_call_with_frames_removed<frozen importlib._bootstrap>:4912 ms0.8%
_gcd_import<frozen importlib._bootstrap>:13892 ms0.8%
_find_and_load<frozen importlib._bootstrap>:13532 ms0.8%
_find_and_load_unlocked<frozen importlib._bootstrap>:12382 ms0.8%
_find_spec<frozen importlib._bootstrap>:11642 ms0.8%
send_maildjango/core/mail/__init__.py:1836 ms2.1%
EmailMessage.senddjango/core/mail/message.py:4176 ms2.1%
EmailBackend.send_messagesdjango/core/mail/backends/locmem.py:325 ms1.7%
EmailMessage.messagedjango/core/mail/message.py:3462 ms0.8%
EmailMessage._set_list_header_if_not_emptydjango/core/mail/message.py:5662 ms0.8%
Message.__setitem__<stdlib>/email/message.py:4492 ms0.8%
EmailPolicy.header_store_parse<stdlib>/email/policy.py:1552 ms0.8%
HeaderRegistry.__call__<stdlib>/email/headerregistry.py:6162 ms0.8%
BaseHeader.__new__<stdlib>/email/headerregistry.py:1952 ms0.8%
EmailMessage.messagedjango/core/mail/message.py:3412 ms0.8%
EmailMultiAlternatives._add_bodiesdjango/core/mail/message.py:6622 ms0.8%
EmailMessage._add_bodiesdjango/core/mail/message.py:4932 ms0.8%
EmailMessage.set_content<stdlib>/email/message.py:12152 ms0.8%
MIMEPart.set_content<stdlib>/email/message.py:11452 ms0.8%
ContentManager.set_content<stdlib>/email/contentmanager.py:382 ms0.8%
set_text_content<stdlib>/email/contentmanager.py:1752 ms0.8%
_prepare_set<stdlib>/email/contentmanager.py:992 ms0.8%
Message.__setitem__<stdlib>/email/message.py:4492 ms0.8%
EmailPolicy.header_store_parse<stdlib>/email/policy.py:1552 ms0.8%
HeaderRegistry.__call__<stdlib>/email/headerregistry.py:6162 ms0.8%
BaseHeader.__new__<stdlib>/email/headerregistry.py:1902 ms0.8%
1 smaller frames hidden
subscribeposts/views.py:39 form.save()6 ms2.1%
BaseModelForm.savedjango/forms/models.py:5746 ms2.1%
Model.savedjango/db/models/base.py:9046 ms2.1%
Model.save_basedjango/db/models/base.py:9966 ms2.1%
Model._save_tabledjango/db/models/base.py:11996 ms2.1%
Model._do_insertdjango/db/models/base.py:12516 ms2.1%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:876 ms2.1%
QuerySet._insertdjango/db/models/query.py:21416 ms2.1%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19366 ms2.1%
CursorWrapper.executedjango/db/backends/utils.py:796 ms2.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:926 ms2.1%
CursorWrapper._executedjango/db/backends/utils.py:1056 ms2.1%
Cursor.executepsycopg/cursor.py:1136 ms2.1%
Connection.waitpsycopg/connection.py:4956 ms2.1%
1 smaller frames hidden
BaseHandler._get_responsedjango/core/handlers/base.py:1872 ms0.8%
CsrfViewMiddleware.process_viewdjango/middleware/csrf.py:4662 ms0.8%
CsrfViewMiddleware._check_tokendjango/middleware/csrf.py:3682 ms0.8%
WSGIRequest._get_postdjango/core/handlers/wsgi.py:932 ms0.8%
HttpRequest._load_post_and_filesdjango/http/request.py:4692 ms0.8%
HttpRequest.parse_file_uploaddjango/http/request.py:3972 ms0.8%
MultiPartParser.parsedjango/http/multipartparser.py:1252 ms0.8%
MultiPartParser._parsedjango/http/multipartparser.py:1882 ms0.8%
Parser.__iter__django/http/multipartparser.py:7572 ms0.8%
InterBoundaryIter.__next__django/http/multipartparser.py:5792 ms0.8%
__init____init__:-12 ms0.8%
BoundaryIter.__init__django/http/multipartparser.py:6062 ms0.8%
LazyStream.readdjango/http/multipartparser.py:4732 ms0.8%
LazyStream.read.<locals>.partsdjango/http/multipartparser.py:4692 ms0.8%
TestAnonymousCacheAndCsrf.test_anonymous_forms_work_after_csrf_bootstrapfedidevs/tests.py:88 page = client.get("/login/")74 ms26.9%
Client.getdjango/test/client.py:113374 ms26.9%
RequestFactory.getdjango/test/client.py:47574 ms26.9%
RequestFactory.genericdjango/test/client.py:67174 ms26.9%
Client.requestdjango/test/client.py:109174 ms26.9%
ClientHandler.__call__django/test/client.py:18651 ms18.5%
BaseHandler.get_responsedjango/core/handlers/base.py:14251 ms18.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5651 ms18.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38051 ms18.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5651 ms18.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38051 ms18.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5651 ms18.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38051 ms18.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5651 ms18.5%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12351 ms18.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5651 ms18.5%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:14551 ms18.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5651 ms18.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38051 ms18.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5651 ms18.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38051 ms18.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5651 ms18.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38051 ms18.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5651 ms18.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38051 ms18.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5651 ms18.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38051 ms18.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5651 ms18.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38051 ms18.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5651 ms18.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38051 ms18.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5651 ms18.5%
BaseHandler._get_responsedjango/core/handlers/base.py:19951 ms18.5%
loginaccounts/views.py:280 return render(request, "login.html")51 ms18.5%
renderdjango/shortcuts.py:2751 ms18.5%
render_to_stringdjango/template/loader.py:6251 ms18.5%
Template.renderdjango/template/backends/django.py:10751 ms18.5%
Template.renderdjango/template/base.py:17551 ms18.5%
instrumented_test_renderdjango/test/utils.py:11351 ms18.5%
NodeList.renderdjango/template/base.py:110851 ms18.5%
Node.render_annotateddjango/template/base.py:106951 ms18.5%
ExtendsNode.renderdjango/template/loader_tags.py:16051 ms18.5%
instrumented_test_renderdjango/test/utils.py:11351 ms18.5%
NodeList.renderdjango/template/base.py:110851 ms18.5%
Node.render_annotateddjango/template/base.py:106951 ms18.5%
IfNode.renderdjango/template/defaulttags.py:33351 ms18.5%
NodeList.renderdjango/template/base.py:110851 ms18.5%
Node.render_annotateddjango/template/base.py:106951 ms18.5%
IncludeNode.renderdjango/template/loader_tags.py:21151 ms18.5%
Template.renderdjango/template/base.py:17751 ms18.5%
instrumented_test_renderdjango/test/utils.py:11351 ms18.5%
NodeList.renderdjango/template/base.py:110851 ms18.5%
Node.render_annotateddjango/template/base.py:106951 ms18.5%
SimpleNode.renderdjango/template/library.py:34351 ms18.5%
instances_datalistaccounts/templatetags/account_extras.py:36 for instance in instances:51 ms18.5%
QuerySet.__iter__django/db/models/query.py:43951 ms18.5%
QuerySet._fetch_alldjango/db/models/query.py:226251 ms18.5%
FlatValuesListIterable.__iter__django/db/models/query.py:30251 ms18.5%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:157451 ms18.5%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:162551 ms18.5%
CursorWrapper.executedjango/db/backends/utils.py:7951 ms18.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9251 ms18.5%
CursorWrapper._executedjango/db/backends/utils.py:10551 ms18.5%
Cursor.executepsycopg/cursor.py:11351 ms18.5%
Connection.waitpsycopg/connection.py:49551 ms18.5%
BaseCursor._execute_genpsycopg/_cursor_base.py:20651 ms18.5%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:28651 ms18.5%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:7851 ms18.5%
ClientHandler.__call__django/test/client.py:17323 ms8.4%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6323 ms8.4%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10423 ms8.4%
WhiteNoise.add_fileswhitenoise/base.py:10823 ms8.4%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12016 ms5.9%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13116 ms5.9%
WhiteNoise.get_static_filewhitenoise/base.py:21714 ms5.0%
StaticFile.__init__whitenoise/responders.py:738 ms2.9%
StaticFile.get_headerswhitenoise/responders.py:1765 ms1.7%
formatdate<stdlib>/email/utils.py:2662 ms0.8%
StaticFile.get_headerswhitenoise/responders.py:1712 ms0.8%
1 smaller frames hidden
StaticFile.__init__whitenoise/responders.py:722 ms0.8%
StaticFile.__init__whitenoise/responders.py:762 ms0.8%
1 smaller frames hidden
1 smaller frames hidden
WhiteNoise.update_files_dictionarywhitenoise/base.py:1157 ms2.5%
scantreewhitenoise/base.py:2715 ms1.7%
scantreewhitenoise/base.py:2713 ms1.3%
scantreewhitenoise/base.py:2712 ms0.8%
scantreewhitenoise/base.py:2712 ms0.8%
1 smaller frames hidden
1 smaller frames hidden
TestAnonymousCacheAndCsrf.test_anonymous_forms_work_after_csrf_bootstrapfedidevs/tests.py:92 response = client.post(29 ms10.5%
Client.postdjango/test/client.py:116229 ms10.5%
RequestFactory.postdjango/test/client.py:49929 ms10.5%
RequestFactory.genericdjango/test/client.py:67129 ms10.5%
Client.requestdjango/test/client.py:109129 ms10.5%
ClientHandler.__call__django/test/client.py:18627 ms9.7%
BaseHandler.get_responsedjango/core/handlers/base.py:14227 ms9.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5627 ms9.7%
MiddlewareMixin.__call__django/utils/deprecation.py:38027 ms9.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5627 ms9.7%
MiddlewareMixin.__call__django/utils/deprecation.py:38027 ms9.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5627 ms9.7%
MiddlewareMixin.__call__django/utils/deprecation.py:38027 ms9.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5627 ms9.7%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12327 ms9.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5627 ms9.7%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:14527 ms9.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5627 ms9.7%
MiddlewareMixin.__call__django/utils/deprecation.py:38027 ms9.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5627 ms9.7%
MiddlewareMixin.__call__django/utils/deprecation.py:38027 ms9.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5627 ms9.7%
MiddlewareMixin.__call__django/utils/deprecation.py:38027 ms9.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5627 ms9.7%
MiddlewareMixin.__call__django/utils/deprecation.py:38027 ms9.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5627 ms9.7%
MiddlewareMixin.__call__django/utils/deprecation.py:38027 ms9.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5627 ms9.7%
MiddlewareMixin.__call__django/utils/deprecation.py:38027 ms9.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5627 ms9.7%
MiddlewareMixin.__call__django/utils/deprecation.py:38027 ms9.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5627 ms9.7%
BaseHandler._get_responsedjango/core/handlers/base.py:19927 ms9.7%
set_languagedjango/views/i18n.py:6125 ms9.2%
translate_urldjango/urls/base.py:20117 ms6.3%
reversedjango/urls/base.py:9817 ms6.3%
URLResolver._reverse_with_prefixdjango/urls/resolvers.py:76217 ms6.3%
URLResolver.reverse_dictdjango/urls/resolvers.py:63317 ms6.3%
URLResolver._populatedjango/urls/resolvers.py:58417 ms6.3%
URLResolver._populatedjango/urls/resolvers.py:5848 ms2.9%
URLResolver._populatedjango/urls/resolvers.py:6277 ms2.5%
Local.__setattr__asgiref/local.py:1647 ms2.5%
_CVar.__setattr__asgiref/local.py:667 ms2.5%
<GC>~7 ms2.5%
1 smaller frames hidden
URLResolver._populatedjango/urls/resolvers.py:5988 ms2.9%
normalizedjango/utils/regex_helper.py:1933 ms1.3%
flatten_resultdjango/utils/regex_helper.py:2973 ms1.3%
normalizedjango/utils/regex_helper.py:1032 ms0.8%
2 smaller frames hidden
1 smaller frames hidden
translate_urldjango/urls/base.py:1998 ms2.9%
override.__enter__django/utils/translation/__init__.py:1978 ms2.9%
activatedjango/utils/translation/__init__.py:1828 ms2.9%
activatedjango/utils/translation/trans_real.py:3058 ms2.9%
translationdjango/utils/translation/trans_real.py:2948 ms2.9%
__init____init__:-18 ms2.9%
DjangoTranslation.__init__django/utils/translation/trans_real.py:1717 ms2.5%
DjangoTranslation._add_installed_apps_translationsdjango/utils/translation/trans_real.py:2276 ms2.1%
DjangoTranslation._new_gnu_transdjango/utils/translation/trans_real.py:2006 ms2.1%
translation<stdlib>/gettext.py:5503 ms1.3%
2 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
ClientHandler.__call__django/test/client.py:2072 ms0.8%
HttpResponseBase.closedjango/http/response.py:3482 ms0.8%
Signal.senddjango/dispatch/dispatcher.py:2492 ms0.8%
close_cachesdjango/core/cache/__init__.py:642 ms0.8%
BaseConnectionHandler.close_alldjango/utils/connection.py:842 ms0.8%
TransactionTestCase._pre_setupdjango/test/testcases.py:1167 cls._fixture_setup()3 ms1.3%
TestCase._fixture_setupdjango/test/testcases.py:14813 ms1.3%
TestCase._enter_atomicsdjango/test/testcases.py:13993 ms1.3%
Atomic.__enter__django/db/transaction.py:2233 ms1.3%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:263 ms1.3%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4003 ms1.3%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3673 ms1.3%
CursorWrapper.executedjango/db/backends/utils.py:793 ms1.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms1.3%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms0.8%
Cursor.executepsycopg/cursor.py:1132 ms0.8%
Connection.waitpsycopg/connection.py:4952 ms0.8%
TransactionTestCase._post_teardowndjango/test/testcases.py:1243 self._fixture_teardown()3 ms1.3%
TestCase._fixture_teardowndjango/test/testcases.py:14972 ms0.8%
TestCase._should_check_constraintsdjango/test/testcases.py:15062 ms0.8%
DatabaseWrapper.is_usabledjango/db/backends/postgresql/base.py:5042 ms0.8%
Cursor.executepsycopg/cursor.py:1132 ms0.8%
Connection.waitpsycopg/connection.py:4952 ms0.8%
1 smaller frames hidden
2 smaller frames hidden
Estimated from 239 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
posts/views.py:38
if form.is_valid():
subscribe
· Libraries
|
118 ms |
|
accounts/templatetags/account_extras.py:36
for instance in instances:
instances_datalist
· Database
|
51 ms |
|
fedidevs/tests.py:92
response = client.post(
TestAnonymousCacheAndCsrf.test_anonymous_forms_work_after_csrf_bootstrap
· Libraries
|
29 ms |
|
fedidevs/tests.py:88
page = client.get("/login/")
TestAnonymousCacheAndCsrf.test_anonymous_forms_work_after_csrf_bootstrap
· Libraries
|
23 ms |
|
posts/views.py:41
send_mail(
subscribe
· Imports
|
12 ms |
|
posts/views.py:39
form.save()
subscribe
· Database
|
6 ms |
|
fedidevs/tests.py:98
subscribe = client.post(
TestAnonymousCacheAndCsrf.test_anonymous_forms_work_after_csrf_bootstrap
· Libraries
|
2 ms |
|
fedidevs/tests.py:91
token = client.get("/csrf/").json()["csrfToken"]
TestAnonymousCacheAndCsrf.test_anonymous_forms_work_after_csrf_bootstrap
· Libraries
|
1 ms |
|
posts/views.py:37
form = SubscribeForm(request.POST)
subscribe
· Libraries
|
1 ms |
Fixtures
Exact setup time| _unittest_setUpClass_fixture_TestAnonymousCacheAndCsrf class | 22 ms |
| _django_setup_unittest class | 0.38 ms |
| _template_string_if_invalid_marker function | 0.08 ms |
| _django_db_marker function | 0.07 ms |
| _dj_autoclear_mailbox function | 0.07 ms |
| _django_isolate_apps function | 0.06 ms |
| monkeypatch function | 0.06 ms |
| _live_server_helper function | 0.06 ms |
| _django_set_urlconf function | 0.06 ms |
| _django_clear_site_cache function | 0.04 ms |
Database
8 queries · 18 msNo repeated queries.
Biggest pieces of work
|
call test body
fedidevs/tests.py:88
|
242 ms |
|
setup setUpClass
django/test/testcases.py:1426
|
24 ms |
|
call _pre_setup
django/test/testcases.py:1167
|
3 ms |
|
call _post_teardown
django/test/testcases.py:1243
|
3 ms |
|
call removeHandler
<stdlib>/logging/__init__.py:1704
|
1 ms |
Reliability
12 results · 0 CI failures · 0 local failuresThis test hasn't failed recently.
History
Latest 12 results, oldest first in the strip| When | Environment | Outcome | Duration | |
|---|---|---|---|---|
| 7 hours ago | CI github-actions:test | passed | 275 ms | Profile |
| 16 hours ago | CI github-actions:test | passed | 127 ms | Profile |
| 22 hours ago | CI github-actions:test | passed | 200 ms | Profile |
| 1 week, 5 days ago | CI github-actions:test | passed | 173 ms | Profile |
| 2 weeks, 2 days ago | CI github-actions:test | passed | 119 ms | Profile |
| 2 weeks, 2 days ago | CI github-actions:test | passed | 206 ms | Profile |
| 2 weeks, 4 days ago | CI github-actions:test | passed | 110 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 140 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 155 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 436 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 183 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 92 ms | Run |