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

TestAccountIndexRobots::test_selected_instance_is_noindex

First seen 1 month, 1 week ago in 0c23747
CI github-actions:test 13 runs
Average
139 ms
median 125 ms
max 230 ms
Phases
Setup 2 ms Call 136 ms Teardown 2 ms
Categories
Database 27 ms App code 0.24 ms Other (Libraries, Templates, pytest, Unsampled, ...) 112 ms

12 database queries per run

Needs 8 KB of memory (max 72 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 2 weeks ago · open run
Show pytest frames
setup0.76 ms0.8%
call96 ms98.9%
TestAccountIndexRobots.test_selected_instance_is_noindexaccounts/tests.py:589 self.assert_noindex("/python/?selected_instance=mastodon.social")95 ms97.4%
TestAccountIndexRobots.assert_noindexaccounts/tests.py:550 response = self.client.get(url)95 ms97.4%
Client.getdjango/test/client.py:113395 ms97.4%
RequestFactory.getdjango/test/client.py:47595 ms97.4%
RequestFactory.genericdjango/test/client.py:67195 ms97.4%
Client.requestdjango/test/client.py:109195 ms97.4%
ClientHandler.__call__django/test/client.py:18669 ms70.5%
BaseHandler.get_responsedjango/core/handlers/base.py:14269 ms70.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5669 ms70.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38069 ms70.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5669 ms70.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38069 ms70.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5669 ms70.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38069 ms70.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5669 ms70.5%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12369 ms70.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5669 ms70.5%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:14569 ms70.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5669 ms70.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38061 ms63.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5661 ms63.0%
MiddlewareMixin.__call__django/utils/deprecation.py:38061 ms63.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5661 ms63.0%
MiddlewareMixin.__call__django/utils/deprecation.py:38061 ms63.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5661 ms63.0%
MiddlewareMixin.__call__django/utils/deprecation.py:38061 ms63.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5661 ms63.0%
MiddlewareMixin.__call__django/utils/deprecation.py:38061 ms63.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5661 ms63.0%
MiddlewareMixin.__call__django/utils/deprecation.py:38061 ms63.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5661 ms63.0%
MiddlewareMixin.__call__django/utils/deprecation.py:38061 ms63.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5661 ms63.0%
BaseHandler._get_responsedjango/core/handlers/base.py:19961 ms63.0%
indexaccounts/views.py:425 return render(61 ms63.0%
renderdjango/shortcuts.py:2761 ms63.0%
render_to_stringdjango/template/loader.py:6261 ms63.0%
Template.renderdjango/template/backends/django.py:10761 ms63.0%
Template.renderdjango/template/base.py:17561 ms63.0%
instrumented_test_renderdjango/test/utils.py:11361 ms63.0%
NodeList.renderdjango/template/base.py:110861 ms63.0%
Node.render_annotateddjango/template/base.py:106961 ms63.0%
ExtendsNode.renderdjango/template/loader_tags.py:16061 ms63.0%
instrumented_test_renderdjango/test/utils.py:11361 ms63.0%
NodeList.renderdjango/template/base.py:110861 ms63.0%
Node.render_annotateddjango/template/base.py:106961 ms63.0%
BlockNode.renderdjango/template/loader_tags.py:6661 ms63.0%
NodeList.renderdjango/template/base.py:110861 ms63.0%
Node.render_annotateddjango/template/base.py:106961 ms63.0%
ForNode.renderdjango/template/defaulttags.py:24960 ms61.5%
Node.render_annotateddjango/template/base.py:106958 ms60.0%
SimpleNode.renderdjango/template/library.py:34351 ms52.5%
querystringdjango/template/defaulttags.py:134851 ms52.5%
QueryDict.urlencodedjango/http/request.py:71851 ms52.5%
<GC>~51 ms52.5%
IfNode.renderdjango/template/defaulttags.py:3264 ms4.5%
infix.<locals>.Operator.evaldjango/template/smartif.py:614 ms4.5%
<lambda>django/template/smartif.py:1073 ms3.0%
TemplateLiteral.evaldjango/template/defaulttags.py:9183 ms3.0%
FilterExpression.resolvedjango/template/base.py:8063 ms3.0%
<lambda>django/template/smartif.py:1061 ms1.5%
TemplateLiteral.evaldjango/template/defaulttags.py:9181 ms1.5%
FilterExpression.resolvedjango/template/base.py:8061 ms1.5%
Variable.resolvedjango/template/base.py:9451 ms1.5%
Variable._resolve_lookupdjango/template/base.py:9961 ms1.5%
VariableNode.renderdjango/template/base.py:11733 ms3.0%
render_value_in_contextdjango/template/base.py:11473 ms3.0%
localizedjango/utils/formats.py:2081 ms1.5%
number_formatdjango/utils/formats.py:1821 ms1.5%
<GC>~1 ms1.5%
localizedjango/utils/formats.py:2051 ms1.5%
SimpleNode.renderdjango/template/library.py:3431 ms1.5%
heroicon_outlineheroicons/templatetags/heroicons.py:231 ms1.5%
_render_iconheroicons/templatetags/heroicons.py:411 ms1.5%
_render_iconheroicons/__init__.py:651 ms1.5%
tostring<stdlib>/xml/etree/ElementTree.py:11061 ms1.5%
ElementTree.write<stdlib>/xml/etree/ElementTree.py:7451 ms1.5%
_serialize_xml<stdlib>/xml/etree/ElementTree.py:8861 ms1.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3827 ms7.5%
SessionMiddleware.process_responsedjango/contrib/sessions/middleware.py:607 ms7.5%
SessionStore.savedjango/contrib/sessions/backends/db.py:1217 ms7.5%
SessionStore.createdjango/contrib/sessions/backends/db.py:706 ms6.0%
SessionBase._get_new_session_keydjango/contrib/sessions/backends/base.py:2016 ms6.0%
SessionStore.existsdjango/contrib/sessions/backends/db.py:636 ms6.0%
QuerySet.existsdjango/db/models/query.py:14586 ms6.0%
Query.has_resultsdjango/db/models/sql/query.py:6876 ms6.0%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15936 ms6.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16253 ms3.0%
CursorWrapper.executedjango/db/backends/utils.py:793 ms3.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms3.0%
CursorWrapper._executedjango/db/backends/utils.py:1053 ms3.0%
Cursor.executepsycopg/cursor.py:1133 ms3.0%
Connection.waitpsycopg/connection.py:4953 ms3.0%
BaseCursor._execute_genpsycopg/_cursor_base.py:2063 ms3.0%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2863 ms3.0%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:783 ms3.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16121 ms1.5%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7681 ms1.5%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:891 ms1.5%
SQLCompiler.setup_querydjango/db/models/sql/compiler.py:781 ms1.5%
SQLCompiler.get_selectdjango/db/models/sql/compiler.py:3191 ms1.5%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16231 ms1.5%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:261 ms1.5%
BaseDatabaseWrapper.cursordjango/db/backends/base/base.py:3201 ms1.5%
BaseDatabaseWrapper._cursordjango/db/backends/base/base.py:2981 ms1.5%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:261 ms1.5%
SessionStore.createdjango/contrib/sessions/backends/db.py:741 ms1.5%
SessionStore.savedjango/contrib/sessions/backends/db.py:1271 ms1.5%
Model.savedjango/db/models/base.py:9041 ms1.5%
Model.save_basedjango/db/models/base.py:9961 ms1.5%
Model._save_tabledjango/db/models/base.py:11991 ms1.5%
Model._do_insertdjango/db/models/base.py:12511 ms1.5%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:871 ms1.5%
QuerySet._insertdjango/db/models/query.py:21411 ms1.5%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19361 ms1.5%
CursorWrapper.executedjango/db/backends/utils.py:791 ms1.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms1.5%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms1.5%
Cursor.executepsycopg/cursor.py:1131 ms1.5%
Connection.waitpsycopg/connection.py:4951 ms1.5%
BaseCursor._execute_genpsycopg/_cursor_base.py:2061 ms1.5%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2861 ms1.5%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:781 ms1.5%
ClientHandler.__call__django/test/client.py:17326 ms27.0%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6326 ms27.0%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10426 ms27.0%
WhiteNoise.add_fileswhitenoise/base.py:10826 ms27.0%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12019 ms19.5%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13118 ms18.0%
WhiteNoise.get_static_filewhitenoise/base.py:21712 ms12.0%
StaticFile.__init__whitenoise/responders.py:774 ms4.5%
StaticFile.get_alternativeswhitenoise/responders.py:2013 ms3.0%
Headers.__setitem__<stdlib>/wsgiref/headers.py:643 ms3.0%
StaticFile.get_alternativeswhitenoise/responders.py:2031 ms1.5%
Headers.__setitem__<stdlib>/wsgiref/headers.py:621 ms1.5%
Headers.__init__<stdlib>/wsgiref/headers.py:431 ms1.5%
StaticFile.__init__whitenoise/responders.py:723 ms3.0%
StaticFile.get_file_statswhitenoise/responders.py:1611 ms1.5%
StaticFile.__init__whitenoise/responders.py:751 ms1.5%
Headers.__getitem__<stdlib>/wsgiref/headers.py:831 ms1.5%
StaticFile.__init__whitenoise/responders.py:761 ms1.5%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1891 ms1.5%
Headers.__getitem__<stdlib>/wsgiref/headers.py:831 ms1.5%
Headers.get<stdlib>/wsgiref/headers.py:1041 ms1.5%
StaticFile.__init__whitenoise/responders.py:731 ms1.5%
StaticFile.get_headerswhitenoise/responders.py:1781 ms1.5%
parsedate<stdlib>/email/_parseaddr.py:1851 ms1.5%
parsedate_tz<stdlib>/email/_parseaddr.py:501 ms1.5%
_parsedate_tz<stdlib>/email/_parseaddr.py:1051 ms1.5%
WhiteNoise.get_static_filewhitenoise/base.py:2124 ms4.5%
WhiteNoise.add_cache_headerswhitenoise/base.py:2334 ms4.5%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1764 ms4.5%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1973 ms3.0%
URLMixin.urldebug_toolbar/panels/staticfiles.py:203 ms3.0%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:2351 ms1.5%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:2161 ms1.5%
WhiteNoise.get_static_filewhitenoise/base.py:2111 ms1.5%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1157 ms7.5%
scantreewhitenoise/base.py:2717 ms7.5%
scantreewhitenoise/base.py:2716 ms6.0%
scantreewhitenoise/base.py:2733 ms3.0%
scantreewhitenoise/base.py:2713 ms3.0%
scantreewhitenoise/base.py:2713 ms3.0%
scantreewhitenoise/base.py:2713 ms3.0%
scantreewhitenoise/base.py:2733 ms3.0%
scantreewhitenoise/base.py:2731 ms1.5%
TransactionTestCase._pre_setupdjango/test/testcases.py:1167 cls._fixture_setup()1 ms1.5%
TestCase._fixture_setupdjango/test/testcases.py:14811 ms1.5%
TestCase._enter_atomicsdjango/test/testcases.py:13991 ms1.5%
Atomic.__enter__django/db/transaction.py:2231 ms1.5%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:261 ms1.5%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4001 ms1.5%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3671 ms1.5%
CursorWrapper.executedjango/db/backends/utils.py:791 ms1.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms1.5%
CursorWrapper._executedjango/db/backends/utils.py:1031 ms1.5%
Cursor.executepsycopg/cursor.py:1131 ms1.5%
Connection.waitpsycopg/connection.py:4951 ms1.5%
BaseCursor._execute_genpsycopg/_cursor_base.py:2061 ms1.5%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2861 ms1.5%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:781 ms1.5%
Estimated from 67 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

accounts/views.py:425
return render(
index · Templates
61 ms
accounts/tests.py:550
response = self.client.get(url)
TestAccountIndexRobots.assert_noindex · Libraries
34 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.03 ms
_django_isolate_apps function 0.03 ms
_django_set_urlconf function 0.03 ms
_live_server_helper function 0.03 ms
_django_clear_site_cache function 0.02 ms
monkeypatch function 0.02 ms

Database

12 queries · 5 ms
No repeated queries.

Biggest pieces of work

call test body
accounts/tests.py:589
95 ms
call _pre_setup
django/test/testcases.py:1167
1 ms
setup pytest internals 0.76 ms

Reliability

14 results · 0 CI failures · 0 local failures

This test hasn't failed recently.

History

Latest 14 results, oldest first in the strip
When Environment Outcome Duration Commit
2 weeks ago CI github-actions:test passed 97 ms 28600ed main Profile
2 weeks, 5 days ago CI github-actions:test passed 190 ms 600b717 main Profile
2 weeks, 6 days ago CI github-actions:test passed 121 ms c28a326 main Profile
3 weeks ago CI github-actions:test passed 62 ms 9b8826a main Profile
3 weeks ago CI github-actions:test passed 143 ms 4f01055 main Profile
1 month ago CI github-actions:test passed 125 ms 8ab642e main Profile
1 month ago CI github-actions:test passed 94 ms 9b75244 main Profile
1 month ago CI github-actions:test passed 171 ms 9603516 main Profile
1 month, 1 week ago CI github-actions:test passed 108 ms 615a272 main Profile
1 month, 1 week ago CI github-actions:test passed 64 ms d923a46 main Profile
1 month, 1 week ago CI github-actions:test passed 202 ms 82997f8 main Profile
1 month, 1 week ago CI github-actions:test passed 204 ms 623aa3e main Profile
1 month, 1 week ago CI github-actions:test passed 230 ms ab6465a main Profile
1 month, 1 week ago CI github-actions:test passed 89 ms 0c23747 main Run