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

TestSelectedInstance::test_selected_instance

First seen 2 years, 10 months ago in 1cd3a8d
CI github-actions:test 4 runs
Average
212 ms
median 213 ms
max 341 ms
Phases
Setup 1 ms Call 210 ms Teardown 1 ms
Categories
Database 25 ms Other (Libraries, Templates, pytest, Unsampled) 187 ms

13 database queries per run

Needs 445 KB of memory (max 480 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 8 hours ago · open run
Show pytest frames
setup0.97 ms1.2%
__init____init__:-10.97 ms1.2%
call80 ms98.5%
TestSelectedInstance.test_selected_instanceaccounts/tests.py:171 response = self.client.get("/?selected_instance=mastodon.social")75 ms92.7%
Client.getdjango/test/client.py:113375 ms92.7%
RequestFactory.getdjango/test/client.py:47575 ms92.7%
RequestFactory.genericdjango/test/client.py:67175 ms92.7%
Client.requestdjango/test/client.py:109175 ms92.7%
ClientHandler.__call__django/test/client.py:17336 ms44.4%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6336 ms44.4%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10436 ms44.4%
WhiteNoise.add_fileswhitenoise/base.py:10836 ms44.4%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12028 ms34.8%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13128 ms34.8%
WhiteNoise.get_static_filewhitenoise/base.py:21725 ms30.9%
StaticFile.__init__whitenoise/responders.py:7719 ms23.2%
StaticFile.get_alternativeswhitenoise/responders.py:20116 ms19.3%
Headers.__setitem__<stdlib>/wsgiref/headers.py:6213 ms15.5%
Headers.__delitem__<stdlib>/wsgiref/headers.py:7213 ms15.5%
<GC>~13 ms15.5%
StaticFile.get_alternativeswhitenoise/responders.py:2002 ms1.9%
__init____init__:-12 ms1.9%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:502 ms1.9%
StaticFile.get_alternativeswhitenoise/responders.py:1982 ms1.9%
StaticFile.__init__whitenoise/responders.py:733 ms3.9%
StaticFile.get_headerswhitenoise/responders.py:1672 ms1.9%
StaticFile.get_headerswhitenoise/responders.py:1782 ms1.9%
parsedate<stdlib>/email/_parseaddr.py:1852 ms1.9%
StaticFile.__init__whitenoise/responders.py:763 ms3.9%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1882 ms1.9%
WhiteNoise.get_static_filewhitenoise/base.py:2123 ms3.9%
WhiteNoise.add_cache_headerswhitenoise/base.py:2333 ms3.9%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1763 ms3.9%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1973 ms3.9%
URLMixin.urldebug_toolbar/panels/staticfiles.py:203 ms3.9%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:2352 ms1.9%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:2142 ms1.9%
ManifestFilesMixin.stored_namedjango/contrib/staticfiles/storage.py:6052 ms1.9%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1156 ms7.7%
scantreewhitenoise/base.py:2715 ms5.8%
scantreewhitenoise/base.py:2715 ms5.8%
scantreewhitenoise/base.py:2712 ms1.9%
scantreewhitenoise/base.py:2712 ms1.9%
scantreewhitenoise/base.py:2712 ms1.9%
scantreewhitenoise/base.py:2692 ms1.9%
scantreewhitenoise/base.py:2732 ms1.9%
scantreewhitenoise/base.py:2692 ms1.9%
scantreewhitenoise/base.py:2732 ms1.9%
ClientHandler.__call__django/test/client.py:18636 ms44.4%
BaseHandler.get_responsedjango/core/handlers/base.py:14236 ms44.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5636 ms44.4%
MiddlewareMixin.__call__django/utils/deprecation.py:38036 ms44.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5636 ms44.4%
MiddlewareMixin.__call__django/utils/deprecation.py:38036 ms44.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5636 ms44.4%
MiddlewareMixin.__call__django/utils/deprecation.py:38036 ms44.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5636 ms44.4%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12336 ms44.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5636 ms44.4%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:14536 ms44.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5636 ms44.4%
MiddlewareMixin.__call__django/utils/deprecation.py:38033 ms40.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5633 ms40.6%
MiddlewareMixin.__call__django/utils/deprecation.py:38031 ms38.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5631 ms38.6%
MiddlewareMixin.__call__django/utils/deprecation.py:38031 ms38.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5631 ms38.6%
MiddlewareMixin.__call__django/utils/deprecation.py:38031 ms38.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5631 ms38.6%
MiddlewareMixin.__call__django/utils/deprecation.py:38031 ms38.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5631 ms38.6%
MiddlewareMixin.__call__django/utils/deprecation.py:38031 ms38.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5631 ms38.6%
MiddlewareMixin.__call__django/utils/deprecation.py:38031 ms38.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5631 ms38.6%
BaseHandler._get_responsedjango/core/handlers/base.py:19931 ms38.6%
indexaccounts/views.py:425 return render(24 ms29.0%
renderdjango/shortcuts.py:2724 ms29.0%
render_to_stringdjango/template/loader.py:6224 ms29.0%
Template.renderdjango/template/backends/django.py:10724 ms29.0%
Template.renderdjango/template/base.py:17524 ms29.0%
instrumented_test_renderdjango/test/utils.py:11324 ms29.0%
NodeList.renderdjango/template/base.py:110824 ms29.0%
Node.render_annotateddjango/template/base.py:106924 ms29.0%
ExtendsNode.renderdjango/template/loader_tags.py:16024 ms29.0%
instrumented_test_renderdjango/test/utils.py:11324 ms29.0%
NodeList.renderdjango/template/base.py:110824 ms29.0%
Node.render_annotateddjango/template/base.py:106924 ms29.0%
BlockNode.renderdjango/template/loader_tags.py:6616 ms19.3%
NodeList.renderdjango/template/base.py:110816 ms19.3%
Node.render_annotateddjango/template/base.py:106916 ms19.3%
ForNode.renderdjango/template/defaulttags.py:24913 ms15.5%
Node.render_annotateddjango/template/base.py:106913 ms15.5%
IfNode.renderdjango/template/defaulttags.py:3266 ms7.7%
infix.<locals>.Operator.evaldjango/template/smartif.py:616 ms7.7%
<lambda>django/template/smartif.py:1066 ms7.7%
TemplateLiteral.evaldjango/template/defaulttags.py:9186 ms7.7%
FilterExpression.resolvedjango/template/base.py:8066 ms7.7%
Variable.resolvedjango/template/base.py:9456 ms7.7%
Variable._resolve_lookupdjango/template/base.py:9966 ms7.7%
SimpleNode.renderdjango/template/library.py:3432 ms1.9%
querystringdjango/template/defaulttags.py:13292 ms1.9%
StaticNode.renderdjango/templatetags/static.py:1162 ms1.9%
StaticNode.urldjango/templatetags/static.py:1132 ms1.9%
StaticNode.handle_simpledjango/templatetags/static.py:1292 ms1.9%
LazyObject.__getattribute__django/utils/functional.py:2802 ms1.9%
IfNode.renderdjango/template/defaulttags.py:3332 ms1.9%
NodeList.renderdjango/template/base.py:11082 ms1.9%
Node.render_annotateddjango/template/base.py:10692 ms1.9%
URLNode.renderdjango/template/defaulttags.py:5112 ms1.9%
reversedjango/urls/base.py:412 ms1.9%
VariableNode.renderdjango/template/base.py:11672 ms1.9%
FilterExpression.resolvedjango/template/base.py:8062 ms1.9%
Variable.resolvedjango/template/base.py:9452 ms1.9%
Variable._resolve_lookupdjango/template/base.py:9822 ms1.9%
BaseContext.__getitem__django/template/context.py:882 ms1.9%
IncludeNode.renderdjango/template/loader_tags.py:2113 ms3.9%
Template.renderdjango/template/base.py:1773 ms3.9%
instrumented_test_renderdjango/test/utils.py:1133 ms3.9%
NodeList.renderdjango/template/base.py:11083 ms3.9%
Node.render_annotateddjango/template/base.py:10693 ms3.9%
ForNode.renderdjango/template/defaulttags.py:2493 ms3.9%
Node.render_annotateddjango/template/base.py:10693 ms3.9%
TranslateNode.renderdjango/templatetags/i18n.py:903 ms3.9%
FilterExpression.resolvedjango/template/base.py:8063 ms3.9%
Variable.resolvedjango/template/base.py:9543 ms3.9%
lazy.<locals>.__wrapper__django/utils/functional.py:1953 ms3.9%
IfNode.renderdjango/template/defaulttags.py:3335 ms5.8%
NodeList.renderdjango/template/base.py:11085 ms5.8%
Node.render_annotateddjango/template/base.py:10695 ms5.8%
IncludeNode.renderdjango/template/loader_tags.py:2113 ms3.9%
Template.renderdjango/template/base.py:1773 ms3.9%
instrumented_test_renderdjango/test/utils.py:1133 ms3.9%
NodeList.renderdjango/template/base.py:11083 ms3.9%
Node.render_annotateddjango/template/base.py:10693 ms3.9%
TranslateNode.renderdjango/templatetags/i18n.py:962 ms1.9%
keep_lazy.<locals>.decorator.<locals>.wrapperdjango/utils/functional.py:2282 ms1.9%
SimpleNode.renderdjango/template/library.py:3432 ms1.9%
instances_datalistaccounts/templatetags/account_extras.py:36 for instance in instances:2 ms1.9%
QuerySet.__iter__django/db/models/query.py:4392 ms1.9%
QuerySet._fetch_alldjango/db/models/query.py:22622 ms1.9%
FlatValuesListIterable.__iter__django/db/models/query.py:3022 ms1.9%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15742 ms1.9%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16252 ms1.9%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.9%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.9%
Cursor.executepsycopg/cursor.py:1132 ms1.9%
Connection.waitpsycopg/connection.py:4952 ms1.9%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms1.9%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms1.9%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms1.9%
SimpleNode.renderdjango/template/library.py:3432 ms1.9%
heroicon_outlineheroicons/templatetags/heroicons.py:232 ms1.9%
_render_iconheroicons/templatetags/heroicons.py:412 ms1.9%
_render_iconheroicons/__init__.py:652 ms1.9%
tostring<stdlib>/xml/etree/ElementTree.py:11102 ms1.9%
ElementTree.write<stdlib>/xml/etree/ElementTree.py:7492 ms1.9%
_serialize_xml<stdlib>/xml/etree/ElementTree.py:9122 ms1.9%
_serialize_xml<stdlib>/xml/etree/ElementTree.py:9002 ms1.9%
IfNode.renderdjango/template/defaulttags.py:3262 ms1.9%
TemplateLiteral.evaldjango/template/defaulttags.py:9182 ms1.9%
FilterExpression.resolvedjango/template/base.py:8062 ms1.9%
Variable.resolvedjango/template/base.py:9452 ms1.9%
Variable._resolve_lookupdjango/template/base.py:9892 ms1.9%
LazyObject.__getattribute__django/utils/functional.py:2802 ms1.9%
new_method_proxy.<locals>.innerdjango/utils/functional.py:2532 ms1.9%
VariableNode.renderdjango/template/base.py:11732 ms1.9%
render_value_in_contextdjango/template/base.py:11512 ms1.9%
conditional_escapedjango/utils/html.py:1322 ms1.9%
keep_lazy.<locals>.decorator.<locals>.wrapperdjango/utils/functional.py:2262 ms1.9%
keep_lazy.<locals>.decorator.<locals>.wrapper.<locals>.<genexpr>django/utils/functional.py:2262 ms1.9%
indexaccounts/views.py:4126 ms7.7%
CountlessPaginator.get_pageaccounts/views.py:846 ms7.7%
CountlessPaginator.pageaccounts/views.py:906 ms7.7%
CountlessPage.__init__accounts/views.py:28 self.object_list = list(self.object_list)6 ms7.7%
QuerySet.__iter__django/db/models/query.py:4396 ms7.7%
QuerySet._fetch_alldjango/db/models/query.py:22626 ms7.7%
ModelIterable.__iter__django/db/models/query.py:1035 ms5.8%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16253 ms3.9%
CursorWrapper.executedjango/db/backends/utils.py:793 ms3.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms3.9%
CursorWrapper._executedjango/db/backends/utils.py:1053 ms3.9%
Cursor.executepsycopg/cursor.py:1133 ms3.9%
Connection.waitpsycopg/connection.py:4953 ms3.9%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16122 ms1.9%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7682 ms1.9%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:892 ms1.9%
SQLCompiler.setup_querydjango/db/models/sql/compiler.py:782 ms1.9%
SQLCompiler.get_selectdjango/db/models/sql/compiler.py:3102 ms1.9%
SQLCompiler.get_related_selectionsdjango/db/models/sql/compiler.py:12582 ms1.9%
ModelIterable.__iter__django/db/models/query.py:1362 ms1.9%
indexaccounts/views.py:295 language_counts = Daily.objects.order_by("date").last()2 ms1.9%
QuerySet.lastdjango/db/models/query.py:12252 ms1.9%
QuerySet.__iter__django/db/models/query.py:4392 ms1.9%
QuerySet._fetch_alldjango/db/models/query.py:22622 ms1.9%
ModelIterable.__iter__django/db/models/query.py:1032 ms1.9%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16252 ms1.9%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.9%
MiddlewareMixin.__call__django/utils/deprecation.py:3822 ms1.9%
LocaleMiddleware.process_responsedjango/middleware/locale.py:392 ms1.9%
get_languagedjango/utils/translation/__init__.py:2112 ms1.9%
MiddlewareMixin.__call__django/utils/deprecation.py:3823 ms3.9%
SessionMiddleware.process_responsedjango/contrib/sessions/middleware.py:603 ms3.9%
SessionStore.savedjango/contrib/sessions/backends/db.py:1213 ms3.9%
SessionStore.createdjango/contrib/sessions/backends/db.py:702 ms1.9%
SessionBase._get_new_session_keydjango/contrib/sessions/backends/base.py:2012 ms1.9%
SessionStore.existsdjango/contrib/sessions/backends/db.py:632 ms1.9%
QuerySet.existsdjango/db/models/query.py:14582 ms1.9%
Query.has_resultsdjango/db/models/sql/query.py:6872 ms1.9%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15932 ms1.9%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16252 ms1.9%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.9%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.9%
Cursor.executepsycopg/cursor.py:1132 ms1.9%
Connection.waitpsycopg/connection.py:4952 ms1.9%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms1.9%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms1.9%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms1.9%
SessionStore.createdjango/contrib/sessions/backends/db.py:742 ms1.9%
SessionStore.savedjango/contrib/sessions/backends/db.py:1272 ms1.9%
Model.savedjango/db/models/base.py:9042 ms1.9%
Model.save_basedjango/db/models/base.py:9962 ms1.9%
Model._save_tabledjango/db/models/base.py:11992 ms1.9%
Model._do_insertdjango/db/models/base.py:12512 ms1.9%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms1.9%
QuerySet._insertdjango/db/models/query.py:21412 ms1.9%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19362 ms1.9%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.9%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.9%
Cursor.executepsycopg/cursor.py:1132 ms1.9%
Connection.waitpsycopg/connection.py:4952 ms1.9%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms1.9%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms1.9%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms1.9%
ClientHandler.__call__django/test/client.py:1783 ms3.9%
__init____init__:-12 ms1.9%
BaseHandler.get_responsedjango/core/handlers/base.py:1422 ms1.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:562 ms1.9%
MiddlewareMixin.__call__django/utils/deprecation.py:3802 ms1.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:562 ms1.9%
MiddlewareMixin.__call__django/utils/deprecation.py:3802 ms1.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:562 ms1.9%
MiddlewareMixin.__call__django/utils/deprecation.py:3802 ms1.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:562 ms1.9%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:1232 ms1.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:562 ms1.9%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1452 ms1.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:562 ms1.9%
MiddlewareMixin.__call__django/utils/deprecation.py:3802 ms1.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:562 ms1.9%
MiddlewareMixin.__call__django/utils/deprecation.py:3802 ms1.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:562 ms1.9%
MiddlewareMixin.__call__django/utils/deprecation.py:3802 ms1.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:562 ms1.9%
MiddlewareMixin.__call__django/utils/deprecation.py:3802 ms1.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:562 ms1.9%
MiddlewareMixin.__call__django/utils/deprecation.py:3802 ms1.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:562 ms1.9%
MiddlewareMixin.__call__django/utils/deprecation.py:3802 ms1.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:562 ms1.9%
MiddlewareMixin.__call__django/utils/deprecation.py:3802 ms1.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:562 ms1.9%
BaseHandler._get_responsedjango/core/handlers/base.py:1992 ms1.9%
indexaccounts/views.py:295 language_counts = Daily.objects.order_by("date").last()2 ms1.9%
QuerySet.lastdjango/db/models/query.py:12252 ms1.9%
QuerySet.__iter__django/db/models/query.py:4392 ms1.9%
QuerySet._fetch_alldjango/db/models/query.py:22622 ms1.9%
ModelIterable.__iter__django/db/models/query.py:1032 ms1.9%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16252 ms1.9%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.9%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.9%
Cursor.executepsycopg/cursor.py:1132 ms1.9%
Connection.waitpsycopg/connection.py:4952 ms1.9%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms1.9%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms1.9%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms1.9%
TestSelectedInstance.test_selected_instanceaccounts/tests.py:174 self.assertEqual(self.client.session["selected_instance"], "mastodon.social")3 ms3.9%
SessionBase.__getitem__django/contrib/sessions/backends/base.py:553 ms3.9%
SessionBase._get_sessiondjango/contrib/sessions/backends/base.py:2543 ms3.9%
SessionStore.loaddjango/contrib/sessions/backends/db.py:553 ms3.9%
SessionStore._get_session_from_dbdjango/contrib/sessions/backends/db.py:352 ms1.9%
nowdjango/utils/timezone.py:2042 ms1.9%
LazyObject.__getattribute__django/utils/functional.py:2802 ms1.9%
SessionStore._get_session_from_dbdjango/contrib/sessions/backends/db.py:342 ms1.9%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms1.9%
QuerySet.getdjango/db/models/query.py:7022 ms1.9%
QuerySet.__len__django/db/models/query.py:4212 ms1.9%
QuerySet._fetch_alldjango/db/models/query.py:22622 ms1.9%
ModelIterable.__iter__django/db/models/query.py:1032 ms1.9%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16252 ms1.9%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.9%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.9%
Cursor.executepsycopg/cursor.py:1132 ms1.9%
Connection.waitpsycopg/connection.py:4952 ms1.9%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms1.9%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:3182 ms1.9%
BaseCursor._set_resultspsycopg/_cursor_base.py:5352 ms1.9%
BaseCursor._select_current_resultpsycopg/_cursor_base.py:5142 ms1.9%
BaseTzLoader.__init__django/db/backends/postgresql/psycopg_any.py:382 ms1.9%
TransactionTestCase._post_teardowndjango/test/testcases.py:1243 self._fixture_teardown()2 ms1.9%
TestCase._fixture_teardowndjango/test/testcases.py:14982 ms1.9%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4952 ms1.9%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.9%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms1.9%
Cursor.executepsycopg/cursor.py:1132 ms1.9%
Connection.waitpsycopg/connection.py:4952 ms1.9%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms1.9%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms1.9%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms1.9%
Estimated from 52 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

accounts/tests.py:171
response = self.client.get("/?selected_instance=mastodon.social")
TestSelectedInstance.test_selected_instance · Libraries
42 ms
accounts/views.py:425
return render(
index · Templates
22 ms
accounts/views.py:28
self.object_list = list(self.object_list)
CountlessPage.__init__ · Database
6 ms
accounts/views.py:295
language_counts = Daily.objects.order_by("date").last()
index · Database
3 ms
accounts/tests.py:174
self.assertEqual(self.client.session["selected_instance"], "mastodon.social")
TestSelectedInstance.test_selected_instance · Libraries
3 ms
accounts/templatetags/account_extras.py:36
for instance in instances:
instances_datalist · Database
2 ms

Fixtures

Exact setup time
_dj_autoclear_mailbox function 0.05 ms
_django_set_urlconf function 0.04 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_clear_site_cache function 0.03 ms
monkeypatch function 0.02 ms

Database

13 queries · 6 ms
No repeated queries.

Biggest pieces of work

call test body
accounts/tests.py:171
79 ms
call _post_teardown
django/test/testcases.py:1243
2 ms
setup __init__
__init__:-1
0.97 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
8 hours ago CI github-actions:test passed 81 ms d923a46 main Profile
8 hours ago CI github-actions:test passed 162 ms 82997f8 main Profile
8 hours ago CI github-actions:test passed 264 ms 623aa3e main Profile
13 hours ago CI github-actions:test passed 341 ms ab6465a main Profile
14 hours ago CI github-actions:test passed 125 ms 0c23747 main Run
3 months, 3 weeks ago CI github-actions passed 116 ms 69d78ea HEAD Run
3 months, 3 weeks ago CI github-actions passed 176 ms 8fac7b5 main Run
3 months, 3 weeks ago CI github-actions passed 173 ms 36b9579 main Run
3 months, 3 weeks ago CI github-actions passed 184 ms 553d048 main Run
3 months, 3 weeks ago CI github-actions passed 173 ms 8eb0f44 HEAD Run
3 months, 3 weeks ago CI github-actions passed 183 ms e0fb3ac HEAD Run
3 months, 3 weeks ago CI github-actions passed 172 ms a849b58 HEAD Run
3 months, 3 weeks ago CI github-actions passed 177 ms 6418e05 HEAD Run
3 months, 3 weeks ago CI github-actions passed 189 ms 5b9b309 main Run
3 months, 4 weeks ago CI github-actions passed 183 ms 1f2c5a6 main Run
3 months, 4 weeks ago CI github-actions passed 183 ms 5ec7fa8 main Run
3 months, 4 weeks ago CI github-actions passed 186 ms 1e42064 main Run
3 months, 4 weeks ago CI github-actions passed 178 ms fcb1b79 main Run
3 months, 4 weeks ago CI github-actions passed 192 ms 1460ac2 HEAD Run
3 months, 4 weeks ago CI github-actions passed 184 ms 8129f09 HEAD Run