Tests / accounts/tests.py
TestAccountIndexRobots::test_selected_instance_is_noindex
First seen 14 hours ago in 0c23747
CI
github-actions:test
4 runs
Average
175 ms
median 203 ms
max 230 ms
max 230 ms
Phases
Setup 2 ms
Call 170 ms
Teardown 3 ms
Categories
Database 18 ms
Other (Libraries, Templates, pytest, Unsampled) 157 ms
12 database queries per run
Needs 21 KB of memory (max 72 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 8 hours ago ·
open run
call59 ms93.1%
CallInfo.from_call_pytest/runner.py:36159 ms93.1%
call_and_report.<locals>.<lambda>_pytest/runner.py:25059 ms93.1%
HookCaller.__call__pluggy/_hooks.py:51259 ms93.1%
PluginManager._hookexecpluggy/_manager.py:12059 ms93.1%
_multicallpluggy/_callers.py:12159 ms93.1%
pytest_runtest_call_pytest/runner.py:18459 ms93.1%
_django_setup_unittest.<locals>.non_debugging_runtestpytest_django/plugin.py:61459 ms93.1%
SimpleTestCase.__call__django/test/testcases.py:31459 ms93.1%
SimpleTestCase._setup_and_calldjango/test/testcases.py:36957 ms89.6%
TestCase.__call__<stdlib>/unittest/case.py:74757 ms89.6%
TestCase.run<stdlib>/unittest/case.py:69157 ms89.6%
TestCase._callTestMethod<stdlib>/unittest/case.py:63757 ms89.6%
TestAccountIndexRobots.test_selected_instance_is_noindexaccounts/tests.py:589 self.assert_noindex("/python/?selected_instance=mastodon.social")57 ms89.6%
TestAccountIndexRobots.assert_noindexaccounts/tests.py:550 response = self.client.get(url)57 ms89.6%
Client.getdjango/test/client.py:113357 ms89.6%
RequestFactory.getdjango/test/client.py:47557 ms89.6%
RequestFactory.genericdjango/test/client.py:67157 ms89.6%
Client.requestdjango/test/client.py:109157 ms89.6%
ClientHandler.__call__django/test/client.py:17333 ms51.7%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6333 ms51.7%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10433 ms51.7%
WhiteNoise.add_fileswhitenoise/base.py:10833 ms51.7%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12024 ms37.9%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13124 ms37.9%
WhiteNoise.get_static_filewhitenoise/base.py:21722 ms34.5%
StaticFile.__init__whitenoise/responders.py:7711 ms17.2%
StaticFile.get_alternativeswhitenoise/responders.py:20111 ms17.2%
Headers.__setitem__<stdlib>/wsgiref/headers.py:629 ms13.8%
Headers.__delitem__<stdlib>/wsgiref/headers.py:729 ms13.8%
<GC>~9 ms13.8%
StaticFile.__init__whitenoise/responders.py:762 ms3.4%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1882 ms3.4%
StaticFile.__init__whitenoise/responders.py:732 ms3.4%
StaticFile.get_headerswhitenoise/responders.py:1782 ms3.4%
parsedate<stdlib>/email/_parseaddr.py:1852 ms3.4%
parsedate_tz<stdlib>/email/_parseaddr.py:502 ms3.4%
_parsedate_tz<stdlib>/email/_parseaddr.py:1002 ms3.4%
StaticFile.__init__whitenoise/responders.py:722 ms3.4%
StaticFile.get_file_statswhitenoise/responders.py:1642 ms3.4%
WhiteNoise.get_static_filewhitenoise/base.py:2122 ms3.4%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1159 ms13.8%
scantreewhitenoise/base.py:2719 ms13.8%
scantreewhitenoise/base.py:2719 ms13.8%
scantreewhitenoise/base.py:2737 ms10.3%
scantreewhitenoise/base.py:2712 ms3.4%
scantreewhitenoise/base.py:2712 ms3.4%
scantreewhitenoise/base.py:2712 ms3.4%
scantreewhitenoise/base.py:2732 ms3.4%
ClientHandler.__call__django/test/client.py:18622 ms34.5%
BaseHandler.get_responsedjango/core/handlers/base.py:14222 ms34.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5622 ms34.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38022 ms34.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5622 ms34.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38022 ms34.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5622 ms34.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38022 ms34.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5622 ms34.5%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12322 ms34.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5622 ms34.5%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:14522 ms34.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5622 ms34.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38211 ms17.2%
SessionMiddleware.process_responsedjango/contrib/sessions/middleware.py:6011 ms17.2%
SessionStore.savedjango/contrib/sessions/backends/db.py:12111 ms17.2%
SessionStore.createdjango/contrib/sessions/backends/db.py:709 ms13.8%
SessionBase._get_new_session_keydjango/contrib/sessions/backends/base.py:2019 ms13.8%
SessionStore.existsdjango/contrib/sessions/backends/db.py:639 ms13.8%
QuerySet.existsdjango/db/models/query.py:14589 ms13.8%
Query.has_resultsdjango/db/models/sql/query.py:6879 ms13.8%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15939 ms13.8%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16259 ms13.8%
CursorWrapper.executedjango/db/backends/utils.py:799 ms13.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:929 ms13.8%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1009 ms13.8%
CursorWrapper._executedjango/db/backends/utils.py:1059 ms13.8%
Cursor.executepsycopg/cursor.py:1139 ms13.8%
Connection.waitpsycopg/connection.py:4959 ms13.8%
BaseCursor._execute_genpsycopg/_cursor_base.py:2069 ms13.8%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2869 ms13.8%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:789 ms13.8%
SessionStore.createdjango/contrib/sessions/backends/db.py:742 ms3.4%
SessionStore.savedjango/contrib/sessions/backends/db.py:1272 ms3.4%
Model.savedjango/db/models/base.py:9042 ms3.4%
Model.save_basedjango/db/models/base.py:9962 ms3.4%
Model._save_tabledjango/db/models/base.py:11992 ms3.4%
Model._do_insertdjango/db/models/base.py:12512 ms3.4%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms3.4%
QuerySet._insertdjango/db/models/query.py:21412 ms3.4%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19362 ms3.4%
CursorWrapper.executedjango/db/backends/utils.py:792 ms3.4%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.4%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1002 ms3.4%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms3.4%
Cursor.executepsycopg/cursor.py:1132 ms3.4%
Connection.waitpsycopg/connection.py:4952 ms3.4%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms3.4%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms3.4%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms3.4%
MiddlewareMixin.__call__django/utils/deprecation.py:38011 ms17.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5611 ms17.2%
MiddlewareMixin.__call__django/utils/deprecation.py:38011 ms17.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5611 ms17.2%
MiddlewareMixin.__call__django/utils/deprecation.py:38011 ms17.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5611 ms17.2%
MiddlewareMixin.__call__django/utils/deprecation.py:38011 ms17.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5611 ms17.2%
MiddlewareMixin.__call__django/utils/deprecation.py:38011 ms17.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5611 ms17.2%
MiddlewareMixin.__call__django/utils/deprecation.py:38011 ms17.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5611 ms17.2%
MiddlewareMixin.__call__django/utils/deprecation.py:38011 ms17.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5611 ms17.2%
BaseHandler._get_responsedjango/core/handlers/base.py:19911 ms17.2%
indexaccounts/views.py:4127 ms10.3%
CountlessPaginator.get_pageaccounts/views.py:847 ms10.3%
CountlessPaginator.pageaccounts/views.py:907 ms10.3%
CountlessPage.__init__accounts/views.py:28 self.object_list = list(self.object_list)7 ms10.3%
QuerySet.__iter__django/db/models/query.py:4397 ms10.3%
QuerySet._fetch_alldjango/db/models/query.py:22627 ms10.3%
ModelIterable.__iter__django/db/models/query.py:1034 ms6.9%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16122 ms3.4%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7682 ms3.4%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:892 ms3.4%
SQLCompiler.setup_querydjango/db/models/sql/compiler.py:782 ms3.4%
SQLCompiler.get_selectdjango/db/models/sql/compiler.py:2652 ms3.4%
SQLCompiler.get_default_columnsdjango/db/models/sql/compiler.py:10132 ms3.4%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16252 ms3.4%
CursorWrapper.executedjango/db/backends/utils.py:792 ms3.4%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.4%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1002 ms3.4%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms3.4%
Cursor.executepsycopg/cursor.py:1132 ms3.4%
Connection.waitpsycopg/connection.py:4952 ms3.4%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms3.4%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms3.4%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms3.4%
ModelIterable.__iter__django/db/models/query.py:1172 ms3.4%
indexaccounts/views.py:295 language_counts = Daily.objects.order_by("date").last()2 ms3.4%
QuerySet.lastdjango/db/models/query.py:12252 ms3.4%
QuerySet.__iter__django/db/models/query.py:4392 ms3.4%
QuerySet._fetch_alldjango/db/models/query.py:22622 ms3.4%
ModelIterable.__iter__django/db/models/query.py:1032 ms3.4%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16252 ms3.4%
CursorWrapper.executedjango/db/backends/utils.py:792 ms3.4%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.4%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1002 ms3.4%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms3.4%
Cursor.executepsycopg/cursor.py:1132 ms3.4%
Connection.waitpsycopg/connection.py:4952 ms3.4%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms3.4%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:3182 ms3.4%
BaseCursor._set_resultspsycopg/_cursor_base.py:5352 ms3.4%
indexaccounts/views.py:425 return render(2 ms3.4%
renderdjango/shortcuts.py:272 ms3.4%
render_to_stringdjango/template/loader.py:622 ms3.4%
Template.renderdjango/template/backends/django.py:1072 ms3.4%
Template.renderdjango/template/base.py:1752 ms3.4%
instrumented_test_renderdjango/test/utils.py:1132 ms3.4%
NodeList.renderdjango/template/base.py:11082 ms3.4%
Node.render_annotateddjango/template/base.py:10692 ms3.4%
ExtendsNode.renderdjango/template/loader_tags.py:1602 ms3.4%
instrumented_test_renderdjango/test/utils.py:1132 ms3.4%
NodeList.renderdjango/template/base.py:11082 ms3.4%
Node.render_annotateddjango/template/base.py:10692 ms3.4%
BlockNode.renderdjango/template/loader_tags.py:662 ms3.4%
NodeList.renderdjango/template/base.py:11082 ms3.4%
Node.render_annotateddjango/template/base.py:10692 ms3.4%
ForNode.renderdjango/template/defaulttags.py:2492 ms3.4%
TextNode.render_annotateddjango/template/base.py:11372 ms3.4%
FilterExpression.resolvedjango/template/base.py:8062 ms3.4%
Variable.resolvedjango/template/base.py:9452 ms3.4%
Variable._resolve_lookupdjango/template/base.py:9992 ms3.4%
ClientHandler.__call__django/test/client.py:1752 ms3.4%
Signal.disconnectdjango/dispatch/dispatcher.py:2062 ms3.4%
SimpleTestCase._setup_and_calldjango/test/testcases.py:3602 ms3.4%
TransactionTestCase._pre_setupdjango/test/testcases.py:1167 cls._fixture_setup()2 ms3.4%
TestCase._fixture_setupdjango/test/testcases.py:14812 ms3.4%
TestCase._enter_atomicsdjango/test/testcases.py:13992 ms3.4%
Atomic.__enter__django/db/transaction.py:2232 ms3.4%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms3.4%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4002 ms3.4%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3672 ms3.4%
CursorWrapper.executedjango/db/backends/utils.py:792 ms3.4%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.4%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1002 ms3.4%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms3.4%
Cursor.executepsycopg/cursor.py:1132 ms3.4%
Connection.waitpsycopg/connection.py:4952 ms3.4%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms3.4%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms3.4%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms3.4%
teardown4 ms5.9%
CallInfo.from_call_pytest/runner.py:3613 ms4.4%
call_and_report.<locals>.<lambda>_pytest/runner.py:2503 ms4.4%
HookCaller.__call__pluggy/_hooks.py:5123 ms4.4%
PluginManager._hookexecpluggy/_manager.py:1203 ms4.4%
_multicallpluggy/_callers.py:1213 ms4.4%
pytest_runtest_teardown_pytest/runner.py:1993 ms4.4%
SetupState.teardown_exact_pytest/runner.py:5683 ms4.4%
FixtureDef.finish_pytest/fixtures.py:11563 ms4.4%
_teardown_yield_fixture_pytest/fixtures.py:10143 ms4.4%
UnitTestCase._register_unittest_setup_class_fixture.<locals>.unittest_setup_class_fixture_pytest/unittest.py:1693 ms4.4%
TestCase.tearDownClassdjango/test/testcases.py:1458 conn.close()3 ms4.4%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:263 ms4.4%
BaseDatabaseWrapper.closedjango/db/backends/base/base.py:3553 ms4.4%
DatabaseWrapper._closedjango/db/backends/postgresql/base.py:4083 ms4.4%
Connection.closepsycopg/connection.py:2013 ms4.4%
Estimated from 31 samples; phase durations are exact. Frames from pytest and pluggy are
shown
.
Hot lines in your code
|
accounts/tests.py:550
response = self.client.get(url)
TestAccountIndexRobots.assert_noindex
· Libraries
|
46 ms |
|
accounts/views.py:28
self.object_list = list(self.object_list)
CountlessPage.__init__
· Database
|
7 ms |
|
accounts/views.py:295
language_counts = Daily.objects.order_by("date").last()
index
· Database
|
2 ms |
|
accounts/views.py:425
return render(
index
· Templates
|
2 ms |
Fixtures
Exact setup time| _dj_autoclear_mailbox function | 0.05 ms |
| _django_db_marker function | 0.03 ms |
| _template_string_if_invalid_marker function | 0.03 ms |
| _django_isolate_apps function | 0.03 ms |
| _django_set_urlconf function | 0.02 ms |
| _live_server_helper function | 0.02 ms |
| _django_clear_site_cache function | 0.02 ms |
| monkeypatch function | 0.02 ms |
Database
12 queries · 4 msNo repeated queries.
Biggest pieces of work
|
call test body
accounts/tests.py:589
|
57 ms |
|
teardown tearDownClass
django/test/testcases.py:1458
|
3 ms |
|
call _pre_setup
django/test/testcases.py:1167
|
2 ms |
Reliability
5 results · 0 CI failures · 0 local failuresThis test hasn't failed recently.
History
Latest 5 results, oldest first in the strip| When | Environment | Outcome | Duration | |
|---|---|---|---|---|
| 8 hours ago | CI github-actions:test | passed | 64 ms | Profile |
| 8 hours ago | CI github-actions:test | passed | 202 ms | Profile |
| 8 hours ago | CI github-actions:test | passed | 204 ms | Profile |
| 13 hours ago | CI github-actions:test | passed | 230 ms | Profile |
| 14 hours ago | CI github-actions:test | passed | 89 ms | Run |