flakytest.dev anze3db fedidevs
Tests / accounts/tests.py

TestSelectedInstance::test_unselected_instance

First seen 2 years, 10 months ago in 1cd3a8d
CI github-actions:test 4 runs
Average
255 ms
median 272 ms
max 353 ms
Phases
Setup 3 ms Call 250 ms Teardown 2 ms
Categories
Database 35 ms Other (Libraries, Templates, Unsampled, pytest) 221 ms

20 database queries per run

Needs 859 KB of memory (max 880 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 7 hours ago · open run
Show pytest frames
call121 ms98.0%
TestSelectedInstance.test_unselected_instanceaccounts/tests.py:186 self.client.get("/?selected_instance=mastodon.social")94 ms76.0%
Client.getdjango/test/client.py:113394 ms76.0%
RequestFactory.getdjango/test/client.py:47594 ms76.0%
RequestFactory.genericdjango/test/client.py:67194 ms76.0%
Client.requestdjango/test/client.py:109194 ms76.0%
ClientHandler.__call__django/test/client.py:17376 ms61.3%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6376 ms61.3%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10476 ms61.3%
WhiteNoise.add_fileswhitenoise/base.py:10874 ms60.0%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12067 ms53.9%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13165 ms52.7%
WhiteNoise.get_static_filewhitenoise/base.py:21745 ms36.8%
StaticFile.__init__whitenoise/responders.py:7314 ms11.0%
StaticFile.get_headerswhitenoise/responders.py:1765 ms3.7%
formatdate<stdlib>/email/utils.py:2662 ms1.2%
format_datetime<stdlib>/email/utils.py:2752 ms1.2%
formatdate<stdlib>/email/utils.py:2592 ms1.2%
Headers.__setitem__<stdlib>/wsgiref/headers.py:642 ms1.2%
StaticFile.get_headerswhitenoise/responders.py:1785 ms3.7%
Headers.__getitem__<stdlib>/wsgiref/headers.py:832 ms1.2%
Headers.get<stdlib>/wsgiref/headers.py:1042 ms1.2%
parsedate<stdlib>/email/_parseaddr.py:1872 ms1.2%
parsedate<stdlib>/email/_parseaddr.py:1852 ms1.2%
parsedate_tz<stdlib>/email/_parseaddr.py:502 ms1.2%
_parsedate_tz<stdlib>/email/_parseaddr.py:1802 ms1.2%
StaticFile.get_headerswhitenoise/responders.py:1802 ms1.2%
StaticFile.get_headerswhitenoise/responders.py:1672 ms1.2%
__init____init__:-12 ms1.2%
Headers.__init__<stdlib>/wsgiref/headers.py:382 ms1.2%
StaticFile.__init__whitenoise/responders.py:7712 ms9.8%
StaticFile.get_alternativeswhitenoise/responders.py:2016 ms4.9%
Headers.__setitem__<stdlib>/wsgiref/headers.py:625 ms3.7%
Headers.__delitem__<stdlib>/wsgiref/headers.py:725 ms3.7%
<GC>~2 ms1.2%
Headers.__setitem__<stdlib>/wsgiref/headers.py:642 ms1.2%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:502 ms1.2%
StaticFile.get_alternativeswhitenoise/responders.py:2006 ms4.9%
__init____init__:-16 ms4.9%
Headers.__init__<stdlib>/wsgiref/headers.py:446 ms4.9%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:505 ms3.7%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:462 ms1.2%
StaticFile.__init__whitenoise/responders.py:7611 ms8.6%
StaticFile.get_not_modified_responsewhitenoise/responders.py:18811 ms8.6%
Headers.__contains__<stdlib>/wsgiref/headers.py:8711 ms8.6%
Headers.get<stdlib>/wsgiref/headers.py:1045 ms3.7%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:505 ms3.7%
Headers.get<stdlib>/wsgiref/headers.py:1063 ms2.5%
URLMixin.urldebug_toolbar/panels/staticfiles.py:203 ms2.5%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:2353 ms2.5%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:2163 ms2.5%
FileSystemStorage.urldjango/core/files/storage/filesystem.py:2063 ms2.5%
StaticFile.__init__whitenoise/responders.py:729 ms7.4%
StaticFile.get_file_statswhitenoise/responders.py:1619 ms7.4%
__init____init__:-19 ms7.4%
FileEntry.__init__whitenoise/responders.py:2639 ms7.4%
FileEntry.stat_regular_filewhitenoise/responders.py:2769 ms7.4%
<GC>~9 ms7.4%
WhiteNoise.get_static_filewhitenoise/base.py:21214 ms11.0%
WhiteNoise.add_cache_headerswhitenoise/base.py:23312 ms9.8%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1768 ms6.1%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1978 ms6.1%
URLMixin.urldebug_toolbar/panels/staticfiles.py:208 ms6.1%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:2358 ms6.1%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:2165 ms3.7%
FileSystemStorage.urldjango/core/files/storage/filesystem.py:2075 ms3.7%
urljoin<stdlib>/urllib/parse.py:7652 ms1.2%
urljoin<stdlib>/urllib/parse.py:7002 ms1.2%
urljoin<stdlib>/urllib/parse.py:7092 ms1.2%
_urlsplit<stdlib>/urllib/parse.py:5982 ms1.2%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:2072 ms1.2%
urldefrag<stdlib>/urllib/parse.py:7692 ms1.2%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:2142 ms1.2%
ManifestFilesMixin.stored_namedjango/contrib/staticfiles/storage.py:6092 ms1.2%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1735 ms3.7%
WhiteNoiseMiddleware.get_name_without_hashwhitenoise/middleware.py:1923 ms2.5%
splitext<frozen posixpath>:1263 ms2.5%
_splitext<frozen genericpath>:1882 ms1.2%
_splitext<frozen genericpath>:1852 ms1.2%
WhiteNoise.add_cache_headerswhitenoise/base.py:2362 ms1.2%
WhiteNoise.get_static_filewhitenoise/base.py:2213 ms2.5%
WhiteNoise.get_static_filewhitenoise/base.py:2113 ms2.5%
WhiteNoise.add_mime_headerswhitenoise/base.py:2252 ms1.2%
WhiteNoise.add_mime_headerswhitenoise/base.py:2302 ms1.2%
Headers.add_header<stdlib>/wsgiref/headers.py:1912 ms1.2%
_formatparam<stdlib>/wsgiref/headers.py:262 ms1.2%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:1232 ms1.2%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1156 ms4.9%
scantreewhitenoise/base.py:2716 ms4.9%
scantreewhitenoise/base.py:2715 ms3.7%
scantreewhitenoise/base.py:2735 ms3.7%
scantreewhitenoise/base.py:2732 ms1.2%
ClientHandler.__call__django/test/client.py:18618 ms14.7%
BaseHandler.get_responsedjango/core/handlers/base.py:14218 ms14.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5618 ms14.7%
MiddlewareMixin.__call__django/utils/deprecation.py:38018 ms14.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5618 ms14.7%
MiddlewareMixin.__call__django/utils/deprecation.py:38018 ms14.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5618 ms14.7%
MiddlewareMixin.__call__django/utils/deprecation.py:38018 ms14.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5618 ms14.7%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12318 ms14.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5618 ms14.7%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:14518 ms14.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5618 ms14.7%
MiddlewareMixin.__call__django/utils/deprecation.py:38015 ms12.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5615 ms12.3%
MiddlewareMixin.__call__django/utils/deprecation.py:38015 ms12.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5615 ms12.3%
MiddlewareMixin.__call__django/utils/deprecation.py:38015 ms12.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5615 ms12.3%
MiddlewareMixin.__call__django/utils/deprecation.py:38015 ms12.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5615 ms12.3%
MiddlewareMixin.__call__django/utils/deprecation.py:38015 ms12.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5615 ms12.3%
MiddlewareMixin.__call__django/utils/deprecation.py:38015 ms12.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5615 ms12.3%
MiddlewareMixin.__call__django/utils/deprecation.py:38015 ms12.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5615 ms12.3%
BaseHandler._get_responsedjango/core/handlers/base.py:19915 ms12.3%
indexaccounts/views.py:425 return render(8 ms6.1%
renderdjango/shortcuts.py:278 ms6.1%
render_to_stringdjango/template/loader.py:628 ms6.1%
Template.renderdjango/template/backends/django.py:1078 ms6.1%
Template.renderdjango/template/base.py:1758 ms6.1%
instrumented_test_renderdjango/test/utils.py:1138 ms6.1%
NodeList.renderdjango/template/base.py:11088 ms6.1%
Node.render_annotateddjango/template/base.py:10698 ms6.1%
ExtendsNode.renderdjango/template/loader_tags.py:1608 ms6.1%
instrumented_test_renderdjango/test/utils.py:1138 ms6.1%
NodeList.renderdjango/template/base.py:11088 ms6.1%
Node.render_annotateddjango/template/base.py:10698 ms6.1%
BlockNode.renderdjango/template/loader_tags.py:665 ms3.7%
NodeList.renderdjango/template/base.py:11085 ms3.7%
Node.render_annotateddjango/template/base.py:10695 ms3.7%
ForNode.renderdjango/template/defaulttags.py:2493 ms2.5%
Node.render_annotateddjango/template/base.py:10693 ms2.5%
StaticNode.renderdjango/templatetags/static.py:1162 ms1.2%
StaticNode.urldjango/templatetags/static.py:1132 ms1.2%
StaticNode.handle_simpledjango/templatetags/static.py:1292 ms1.2%
URLMixin.urldebug_toolbar/panels/staticfiles.py:202 ms1.2%
SimpleNode.renderdjango/template/library.py:3432 ms1.2%
querystringdjango/template/defaulttags.py:13482 ms1.2%
QueryDict.urlencodedjango/http/request.py:7442 ms1.2%
IncludeNode.renderdjango/template/loader_tags.py:2112 ms1.2%
Template.renderdjango/template/base.py:1772 ms1.2%
instrumented_test_renderdjango/test/utils.py:1132 ms1.2%
NodeList.renderdjango/template/base.py:11082 ms1.2%
Node.render_annotateddjango/template/base.py:10692 ms1.2%
ForNode.renderdjango/template/defaulttags.py:2492 ms1.2%
Node.render_annotateddjango/template/base.py:10692 ms1.2%
IfNode.renderdjango/template/defaulttags.py:3332 ms1.2%
NodeList.renderdjango/template/base.py:11082 ms1.2%
StaticNode.renderdjango/templatetags/static.py:1162 ms1.2%
StaticNode.urldjango/templatetags/static.py:1132 ms1.2%
StaticNode.handle_simpledjango/templatetags/static.py:1292 ms1.2%
new_method_proxy.<locals>.innerdjango/utils/functional.py:2532 ms1.2%
CsrfTokenNode.renderdjango/template/defaulttags.py:782 ms1.2%
new_method_proxy.<locals>.innerdjango/utils/functional.py:2512 ms1.2%
SimpleLazyObject._setupdjango/utils/functional.py:4042 ms1.2%
csrf.<locals>._get_valdjango/template/context_processors.py:262 ms1.2%
get_tokendjango/middleware/csrf.py:1132 ms1.2%
_add_new_csrf_cookiedjango/middleware/csrf.py:862 ms1.2%
_get_new_csrf_stringdjango/middleware/csrf.py:562 ms1.2%
get_random_stringdjango/utils/crypto.py:782 ms1.2%
get_random_string.<locals>.<genexpr>django/utils/crypto.py:782 ms1.2%
Random.choice<stdlib>/random.py:3542 ms1.2%
Random._randbelow_with_getrandbits<stdlib>/random.py:2492 ms1.2%
indexaccounts/views.py:4126 ms4.9%
CountlessPaginator.get_pageaccounts/views.py:846 ms4.9%
CountlessPaginator.pageaccounts/views.py:906 ms4.9%
CountlessPage.__init__accounts/views.py:28 self.object_list = list(self.object_list)6 ms4.9%
QuerySet.__iter__django/db/models/query.py:4396 ms4.9%
QuerySet._fetch_alldjango/db/models/query.py:22626 ms4.9%
ModelIterable.__iter__django/db/models/query.py:1036 ms4.9%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16256 ms4.9%
CursorWrapper.executedjango/db/backends/utils.py:796 ms4.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:926 ms4.9%
CursorWrapper._executedjango/db/backends/utils.py:1056 ms4.9%
Cursor.executepsycopg/cursor.py:1136 ms4.9%
Connection.waitpsycopg/connection.py:4956 ms4.9%
BaseCursor._execute_genpsycopg/_cursor_base.py:2066 ms4.9%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2865 ms3.7%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:785 ms3.7%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:3182 ms1.2%
BaseCursor._set_resultspsycopg/_cursor_base.py:5352 ms1.2%
BaseCursor._select_current_resultpsycopg/_cursor_base.py:5142 ms1.2%
BaseTzLoader.__init__django/db/backends/postgresql/psycopg_any.py:382 ms1.2%
indexaccounts/views.py:295 language_counts = Daily.objects.order_by("date").last()2 ms1.2%
QuerySet.lastdjango/db/models/query.py:12252 ms1.2%
QuerySet.__iter__django/db/models/query.py:4392 ms1.2%
QuerySet._fetch_alldjango/db/models/query.py:22622 ms1.2%
ModelIterable.__iter__django/db/models/query.py:1032 ms1.2%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16252 ms1.2%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.2%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.2%
Cursor.executepsycopg/cursor.py:1132 ms1.2%
Connection.waitpsycopg/connection.py:4952 ms1.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3823 ms2.5%
SessionMiddleware.process_responsedjango/contrib/sessions/middleware.py:603 ms2.5%
SessionStore.savedjango/contrib/sessions/backends/db.py:1213 ms2.5%
SessionStore.createdjango/contrib/sessions/backends/db.py:702 ms1.2%
SessionBase._get_new_session_keydjango/contrib/sessions/backends/base.py:2012 ms1.2%
SessionStore.existsdjango/contrib/sessions/backends/db.py:632 ms1.2%
QuerySet.existsdjango/db/models/query.py:14582 ms1.2%
Query.has_resultsdjango/db/models/sql/query.py:6872 ms1.2%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15932 ms1.2%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16252 ms1.2%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.2%
SessionStore.createdjango/contrib/sessions/backends/db.py:742 ms1.2%
SessionStore.savedjango/contrib/sessions/backends/db.py:1272 ms1.2%
Model.savedjango/db/models/base.py:9042 ms1.2%
Model.save_basedjango/db/models/base.py:9962 ms1.2%
Model._save_tabledjango/db/models/base.py:11942 ms1.2%
Field.db_returningdjango/db/models/fields/__init__.py:9762 ms1.2%
TestSelectedInstance.test_unselected_instanceaccounts/tests.py:187 response = self.client.get("/?selected_instance=")26 ms20.8%
Client.getdjango/test/client.py:113326 ms20.8%
RequestFactory.getdjango/test/client.py:47526 ms20.8%
RequestFactory.genericdjango/test/client.py:67126 ms20.8%
Client.requestdjango/test/client.py:109126 ms20.8%
ClientHandler.__call__django/test/client.py:18626 ms20.8%
BaseHandler.get_responsedjango/core/handlers/base.py:14226 ms20.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5626 ms20.8%
MiddlewareMixin.__call__django/utils/deprecation.py:38026 ms20.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5626 ms20.8%
MiddlewareMixin.__call__django/utils/deprecation.py:38026 ms20.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5626 ms20.8%
MiddlewareMixin.__call__django/utils/deprecation.py:38026 ms20.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5626 ms20.8%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12326 ms20.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5626 ms20.8%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:14526 ms20.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5626 ms20.8%
MiddlewareMixin.__call__django/utils/deprecation.py:38024 ms19.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5624 ms19.6%
MiddlewareMixin.__call__django/utils/deprecation.py:38024 ms19.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5624 ms19.6%
MiddlewareMixin.__call__django/utils/deprecation.py:38024 ms19.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5624 ms19.6%
MiddlewareMixin.__call__django/utils/deprecation.py:38024 ms19.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5624 ms19.6%
MiddlewareMixin.__call__django/utils/deprecation.py:38024 ms19.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5624 ms19.6%
MiddlewareMixin.__call__django/utils/deprecation.py:38024 ms19.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5624 ms19.6%
MiddlewareMixin.__call__django/utils/deprecation.py:38024 ms19.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5624 ms19.6%
BaseHandler._get_responsedjango/core/handlers/base.py:19924 ms19.6%
indexaccounts/views.py:425 return render(14 ms11.0%
renderdjango/shortcuts.py:2711 ms8.6%
render_to_stringdjango/template/loader.py:6211 ms8.6%
Template.renderdjango/template/backends/django.py:10711 ms8.6%
Template.renderdjango/template/base.py:17511 ms8.6%
instrumented_test_renderdjango/test/utils.py:11311 ms8.6%
NodeList.renderdjango/template/base.py:110811 ms8.6%
Node.render_annotateddjango/template/base.py:106911 ms8.6%
ExtendsNode.renderdjango/template/loader_tags.py:16011 ms8.6%
instrumented_test_renderdjango/test/utils.py:11311 ms8.6%
NodeList.renderdjango/template/base.py:110811 ms8.6%
Node.render_annotateddjango/template/base.py:106911 ms8.6%
BlockNode.renderdjango/template/loader_tags.py:668 ms6.1%
NodeList.renderdjango/template/base.py:11088 ms6.1%
Node.render_annotateddjango/template/base.py:10698 ms6.1%
ForNode.renderdjango/template/defaulttags.py:2498 ms6.1%
Node.render_annotateddjango/template/base.py:10698 ms6.1%
IfNode.renderdjango/template/defaulttags.py:3332 ms1.2%
NodeList.renderdjango/template/base.py:11082 ms1.2%
Node.render_annotateddjango/template/base.py:10692 ms1.2%
URLNode.renderdjango/template/defaulttags.py:5112 ms1.2%
reversedjango/urls/base.py:982 ms1.2%
URLResolver._reverse_with_prefixdjango/urls/resolvers.py:8032 ms1.2%
StaticNode.renderdjango/templatetags/static.py:1162 ms1.2%
StaticNode.urldjango/templatetags/static.py:1132 ms1.2%
StaticNode.handle_simpledjango/templatetags/static.py:1292 ms1.2%
URLMixin.urldebug_toolbar/panels/staticfiles.py:202 ms1.2%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:2352 ms1.2%
SimpleNode.renderdjango/template/library.py:3432 ms1.2%
querystringdjango/template/defaulttags.py:13432 ms1.2%
IfNode.renderdjango/template/defaulttags.py:3262 ms1.2%
InclusionNode.renderdjango/template/library.py:4032 ms1.2%
Template.renderdjango/template/base.py:1772 ms1.2%
instrumented_test_renderdjango/test/utils.py:1132 ms1.2%
SimpleNode.renderdjango/template/library.py:3432 ms1.2%
heroicon_outlineheroicons/templatetags/heroicons.py:232 ms1.2%
renderdjango/shortcuts.py:283 ms2.5%
HttpResponse.__init__django/http/response.py:3893 ms2.5%
HttpResponse.contentdjango/http/response.py:4213 ms2.5%
HttpResponseBase.make_bytesdjango/http/response.py:3293 ms2.5%
indexaccounts/views.py:295 language_counts = Daily.objects.order_by("date").last()6 ms4.9%
QuerySet.lastdjango/db/models/query.py:12256 ms4.9%
QuerySet.__iter__django/db/models/query.py:4396 ms4.9%
QuerySet._fetch_alldjango/db/models/query.py:22626 ms4.9%
ModelIterable.__iter__django/db/models/query.py:1035 ms3.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16122 ms1.2%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7682 ms1.2%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:892 ms1.2%
SQLCompiler.setup_querydjango/db/models/sql/compiler.py:782 ms1.2%
SQLCompiler.get_selectdjango/db/models/sql/compiler.py:3192 ms1.2%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16252 ms1.2%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.2%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.2%
Cursor.executepsycopg/cursor.py:1132 ms1.2%
Connection.waitpsycopg/connection.py:4952 ms1.2%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16662 ms1.2%
cursor_iterdjango/db/models/sql/compiler.py:22672 ms1.2%
ModelIterable.__iter__django/db/models/query.py:1352 ms1.2%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15782 ms1.2%
SQLCompiler.get_convertersdjango/db/models/sql/compiler.py:15272 ms1.2%
indexaccounts/views.py:289 request.session["selected_instance"] = parse_instance(request.GET.get("selected_instance"))3 ms2.5%
SessionBase.__setitem__django/contrib/sessions/backends/base.py:583 ms2.5%
SessionBase._get_sessiondjango/contrib/sessions/backends/base.py:2543 ms2.5%
SessionStore.loaddjango/contrib/sessions/backends/db.py:553 ms2.5%
SessionStore._get_session_from_dbdjango/contrib/sessions/backends/db.py:343 ms2.5%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:873 ms2.5%
QuerySet.getdjango/db/models/query.py:7023 ms2.5%
QuerySet.__len__django/db/models/query.py:4213 ms2.5%
QuerySet._fetch_alldjango/db/models/query.py:22623 ms2.5%
ModelIterable.__iter__django/db/models/query.py:1033 ms2.5%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16253 ms2.5%
CursorWrapper.executedjango/db/backends/utils.py:793 ms2.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms2.5%
CursorWrapper._executedjango/db/backends/utils.py:1053 ms2.5%
Cursor.executepsycopg/cursor.py:1133 ms2.5%
Connection.waitpsycopg/connection.py:4953 ms2.5%
indexaccounts/views.py:4122 ms1.2%
CountlessPaginator.get_pageaccounts/views.py:842 ms1.2%
CountlessPaginator.pageaccounts/views.py:902 ms1.2%
CountlessPage.__init__accounts/views.py:28 self.object_list = list(self.object_list)2 ms1.2%
QuerySet.__iter__django/db/models/query.py:4392 ms1.2%
QuerySet._fetch_alldjango/db/models/query.py:22622 ms1.2%
ModelIterable.__iter__django/db/models/query.py:1032 ms1.2%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16122 ms1.2%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7682 ms1.2%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:892 ms1.2%
SQLCompiler.setup_querydjango/db/models/sql/compiler.py:782 ms1.2%
SQLCompiler.get_selectdjango/db/models/sql/compiler.py:3192 ms1.2%
SQLCompiler.compiledjango/db/models/sql/compiler.py:5752 ms1.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3822 ms1.2%
SessionMiddleware.process_responsedjango/contrib/sessions/middleware.py:602 ms1.2%
SessionStore.savedjango/contrib/sessions/backends/db.py:1272 ms1.2%
Model.savedjango/db/models/base.py:9042 ms1.2%
Model.save_basedjango/db/models/base.py:9962 ms1.2%
Model._save_tabledjango/db/models/base.py:11402 ms1.2%
Model._do_updatedjango/db/models/base.py:12442 ms1.2%
QuerySet._updatedjango/db/models/query.py:14482 ms1.2%
SQLUpdateCompiler.execute_returning_sqldjango/db/models/sql/compiler.py:21502 ms1.2%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21212 ms1.2%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16252 ms1.2%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.2%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.2%
Cursor.executepsycopg/cursor.py:1132 ms1.2%
Connection.waitpsycopg/connection.py:4952 ms1.2%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms1.2%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms1.2%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms1.2%
TransactionTestCase._post_teardowndjango/test/testcases.py:1243 self._fixture_teardown()2 ms1.2%
TestCase._fixture_teardowndjango/test/testcases.py:14982 ms1.2%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4952 ms1.2%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.2%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms1.2%
Cursor.executepsycopg/cursor.py:1132 ms1.2%
Connection.waitpsycopg/connection.py:4952 ms1.2%
Estimated from 80 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

accounts/tests.py:186
self.client.get("/?selected_instance=mastodon.social")
TestSelectedInstance.test_unselected_instance · Libraries
79 ms
accounts/views.py:425
return render(
index · Templates
21 ms
accounts/views.py:295
language_counts = Daily.objects.order_by("date").last()
index · Database
8 ms
accounts/views.py:28
self.object_list = list(self.object_list)
CountlessPage.__init__ · Database
8 ms
accounts/views.py:289
request.session["selected_instance"] = parse_instance(request.GET.get("selected_instance"))
index · Database
3 ms
accounts/tests.py:187
response = self.client.get("/?selected_instance=")
TestSelectedInstance.test_unselected_instance · Database
2 ms

Fixtures

Exact setup time
_dj_autoclear_mailbox function 0.05 ms
_template_string_if_invalid_marker function 0.04 ms
_django_db_marker function 0.04 ms
_live_server_helper function 0.03 ms
_django_isolate_apps function 0.03 ms
_django_set_urlconf function 0.03 ms
_django_clear_site_cache function 0.03 ms
monkeypatch function 0.02 ms

Database

20 queries · 9 ms
No repeated queries.

Biggest pieces of work

call test body
accounts/tests.py:186
120 ms
call _post_teardown
django/test/testcases.py:1243
2 ms

Reliability

5 results · 0 CI failures · 0 local failures

This test hasn't failed recently.

History

Latest 50 results, oldest first in the strip
When Environment Outcome Duration Commit
7 hours ago CI github-actions:test passed 124 ms d923a46 main Profile
7 hours ago CI github-actions:test passed 267 ms 82997f8 main Profile
7 hours ago CI github-actions:test passed 276 ms 623aa3e main Profile
12 hours ago CI github-actions:test passed 353 ms ab6465a main Profile
12 hours ago CI github-actions:test passed 353 ms 0c23747 main Run
3 months, 3 weeks ago CI github-actions passed 182 ms 69d78ea HEAD Run
3 months, 3 weeks ago CI github-actions passed 281 ms 8fac7b5 main Run
3 months, 3 weeks ago CI github-actions passed 280 ms 36b9579 main Run
3 months, 3 weeks ago CI github-actions passed 295 ms 553d048 main Run
3 months, 3 weeks ago CI github-actions passed 305 ms 8eb0f44 HEAD Run
3 months, 3 weeks ago CI github-actions passed 292 ms e0fb3ac HEAD Run
3 months, 3 weeks ago CI github-actions passed 288 ms a849b58 HEAD Run
3 months, 3 weeks ago CI github-actions passed 285 ms 6418e05 HEAD Run
3 months, 3 weeks ago CI github-actions passed 301 ms 5b9b309 main Run
3 months, 4 weeks ago CI github-actions passed 297 ms 1f2c5a6 main Run
3 months, 4 weeks ago CI github-actions passed 288 ms 5ec7fa8 main Run
3 months, 4 weeks ago CI github-actions passed 293 ms 1e42064 main Run
3 months, 4 weeks ago CI github-actions passed 282 ms fcb1b79 main Run
3 months, 4 weeks ago CI github-actions passed 301 ms 1460ac2 HEAD Run
3 months, 4 weeks ago CI github-actions passed 309 ms 8129f09 HEAD Run