Tests / accounts/tests.py
TestAccountIndexRobots::test_canonical_page_is_indexable
First seen 14 hours ago in 0c23747
CI
github-actions:test
4 runs
Average
218 ms
median 219 ms
max 338 ms
max 338 ms
Phases
Setup 22 ms
Call 195 ms
Teardown 0.60 ms
Categories
Database 53 ms
App code 2 ms
Other (Libraries, Templates, pytest, Unsampled) 163 ms
8 database queries per run
Needs 0 KB of memory (max 0 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 8 hours ago ·
open run
setup12 ms12.1%
CallInfo.from_call_pytest/runner.py:36112 ms12.1%
call_and_report.<locals>.<lambda>_pytest/runner.py:25012 ms12.1%
HookCaller.__call__pluggy/_hooks.py:51212 ms12.1%
PluginManager._hookexecpluggy/_manager.py:12012 ms12.1%
_multicallpluggy/_callers.py:12112 ms12.1%
pytest_runtest_setup_pytest/runner.py:17012 ms12.1%
SetupState.setup_pytest/runner.py:53612 ms12.1%
TestCaseFunction.setup_pytest/unittest.py:24812 ms12.1%
Function.setup_pytest/python.py:171012 ms12.1%
TopRequest._fillfixtures_pytest/fixtures.py:80612 ms12.1%
FixtureRequest.getfixturevalue_pytest/fixtures.py:63012 ms12.1%
FixtureRequest._get_active_fixturedef_pytest/fixtures.py:72612 ms12.1%
FixtureDef.execute_pytest/fixtures.py:123212 ms12.1%
HookCaller.__call__pluggy/_hooks.py:51212 ms12.1%
PluginManager._hookexecpluggy/_manager.py:12012 ms12.1%
_multicallpluggy/_callers.py:12112 ms12.1%
pytest_fixture_setup_pytest/fixtures.py:132811 ms11.0%
call_fixture_func_pytest/fixtures.py:99811 ms11.0%
UnitTestCase._register_unittest_setup_class_fixture.<locals>.unittest_setup_class_fixture_pytest/unittest.py:15911 ms11.0%
TestCase.setUpClassdjango/test/testcases.py:1426 cls.cls_atomics = cls._enter_atomics()11 ms11.0%
TestCase._enter_atomicsdjango/test/testcases.py:139911 ms11.0%
Atomic.__enter__django/db/transaction.py:21011 ms11.0%
BaseDatabaseWrapper.get_autocommitdjango/db/backends/base/base.py:45411 ms11.0%
SimpleTestCase.ensure_connection_patch_method.<locals>.patched_ensure_connectiondjango/test/testcases.py:30411 ms11.0%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2611 ms11.0%
BaseDatabaseWrapper.ensure_connectiondjango/db/backends/base/base.py:27911 ms11.0%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2611 ms11.0%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:25611 ms11.0%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2611 ms11.0%
DatabaseWrapper.get_new_connectiondjango/db/backends/postgresql/base.py:34511 ms11.0%
Connection.connectpsycopg/connection.py:10910 ms9.9%
wait_connpsycopg/waiting.py:1455 ms5.5%
BaseConnection._connect_genpsycopg/_connection_base.py:4395 ms5.5%
wait_connpsycopg/waiting.py:1414 ms4.4%
EpollSelector.select<stdlib>/selectors.py:4524 ms4.4%
Connection.connectpsycopg/connection.py:1001 ms1.1%
conninfo_attemptspsycopg/_conninfo_attempts.py:431 ms1.1%
split_attemptspsycopg/_conninfo_utils.py:471 ms1.1%
call85 ms87.6%
CallInfo.from_call_pytest/runner.py:36185 ms87.6%
call_and_report.<locals>.<lambda>_pytest/runner.py:25085 ms87.6%
HookCaller.__call__pluggy/_hooks.py:51285 ms87.6%
PluginManager._hookexecpluggy/_manager.py:12085 ms87.6%
_multicallpluggy/_callers.py:12185 ms87.6%
pytest_runtest_call_pytest/runner.py:18485 ms87.6%
_django_setup_unittest.<locals>.non_debugging_runtestpytest_django/plugin.py:61485 ms87.6%
SimpleTestCase.__call__django/test/testcases.py:31485 ms87.6%
SimpleTestCase._setup_and_calldjango/test/testcases.py:36982 ms84.6%
TestCase.__call__<stdlib>/unittest/case.py:74782 ms84.6%
TestCase.run<stdlib>/unittest/case.py:69182 ms84.6%
TestCase._callTestMethod<stdlib>/unittest/case.py:63782 ms84.6%
TestAccountIndexRobots.test_canonical_page_is_indexableaccounts/tests.py:560 self.assert_indexable("/python/")82 ms84.6%
TestAccountIndexRobots.assert_indexableaccounts/tests.py:555 response = self.client.get(url)82 ms84.6%
Client.getdjango/test/client.py:113382 ms84.6%
RequestFactory.getdjango/test/client.py:47582 ms84.6%
RequestFactory.genericdjango/test/client.py:67181 ms83.0%
Client.requestdjango/test/client.py:109181 ms83.0%
ClientHandler.__call__django/test/client.py:17345 ms46.1%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6345 ms46.1%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10443 ms44.6%
WhiteNoise.add_fileswhitenoise/base.py:10843 ms44.6%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12033 ms33.8%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13133 ms33.8%
WhiteNoise.get_static_filewhitenoise/base.py:21722 ms23.1%
StaticFile.__init__whitenoise/responders.py:729 ms9.2%
StaticFile.get_file_statswhitenoise/responders.py:1617 ms7.7%
__init____init__:-17 ms7.7%
FileEntry.__init__whitenoise/responders.py:2637 ms7.7%
FileEntry.stat_regular_filewhitenoise/responders.py:2766 ms6.1%
<GC>~6 ms6.1%
FileEntry.stat_regular_filewhitenoise/responders.py:2741 ms1.5%
StaticFile.get_file_statswhitenoise/responders.py:1621 ms1.5%
StaticFile.__init__whitenoise/responders.py:776 ms6.1%
StaticFile.get_alternativeswhitenoise/responders.py:2033 ms3.1%
StaticFile.get_alternativeswhitenoise/responders.py:2003 ms3.1%
__init____init__:-13 ms3.1%
Headers.__init__<stdlib>/wsgiref/headers.py:443 ms3.1%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:501 ms1.5%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:521 ms1.5%
StaticFile.__init__whitenoise/responders.py:763 ms3.1%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1893 ms3.1%
Headers.__getitem__<stdlib>/wsgiref/headers.py:831 ms1.5%
Headers.get<stdlib>/wsgiref/headers.py:1071 ms1.5%
StaticFile.__init__whitenoise/responders.py:731 ms1.5%
StaticFile.get_headerswhitenoise/responders.py:1781 ms1.5%
Headers.__getitem__<stdlib>/wsgiref/headers.py:831 ms1.5%
StaticFile.__init__whitenoise/responders.py:741 ms1.5%
parsedate<stdlib>/email/_parseaddr.py:1851 ms1.5%
WhiteNoise.get_static_filewhitenoise/base.py:2127 ms7.7%
WhiteNoise.add_cache_headerswhitenoise/base.py:2336 ms6.1%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1766 ms6.1%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1976 ms6.1%
URLMixin.urldebug_toolbar/panels/staticfiles.py:203 ms3.1%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:2351 ms1.5%
WhiteNoise.get_static_filewhitenoise/base.py:2111 ms1.5%
WhiteNoise.add_mime_headerswhitenoise/base.py:2251 ms1.5%
MediaTypes.get_typewhitenoise/media_types.py:191 ms1.5%
splitext<frozen posixpath>:1261 ms1.5%
WhiteNoise.update_files_dictionarywhitenoise/base.py:11510 ms10.8%
scantreewhitenoise/base.py:2719 ms9.2%
scantreewhitenoise/base.py:2719 ms9.2%
scantreewhitenoise/base.py:2714 ms4.6%
scantreewhitenoise/base.py:2713 ms3.1%
scantreewhitenoise/base.py:2711 ms1.5%
scantreewhitenoise/base.py:2731 ms1.5%
scantreewhitenoise/base.py:2731 ms1.5%
scantreewhitenoise/base.py:2691 ms1.5%
scantreewhitenoise/base.py:2733 ms3.1%
scantreewhitenoise/base.py:2691 ms1.5%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:1111 ms1.5%
WhiteNoise.add_fileswhitenoise/base.py:1081 ms1.5%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1201 ms1.5%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:1311 ms1.5%
WhiteNoise.get_static_filewhitenoise/base.py:2171 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%
ClientHandler.__call__django/test/client.py:18636 ms36.9%
BaseHandler.get_responsedjango/core/handlers/base.py:14236 ms36.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5636 ms36.9%
MiddlewareMixin.__call__django/utils/deprecation.py:38036 ms36.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5636 ms36.9%
MiddlewareMixin.__call__django/utils/deprecation.py:38036 ms36.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5636 ms36.9%
MiddlewareMixin.__call__django/utils/deprecation.py:38036 ms36.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5636 ms36.9%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12336 ms36.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5636 ms36.9%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:14536 ms36.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5636 ms36.9%
MiddlewareMixin.__call__django/utils/deprecation.py:38036 ms36.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5636 ms36.9%
MiddlewareMixin.__call__django/utils/deprecation.py:38036 ms36.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5636 ms36.9%
MiddlewareMixin.__call__django/utils/deprecation.py:38036 ms36.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5636 ms36.9%
MiddlewareMixin.__call__django/utils/deprecation.py:38036 ms36.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5636 ms36.9%
MiddlewareMixin.__call__django/utils/deprecation.py:38036 ms36.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5636 ms36.9%
MiddlewareMixin.__call__django/utils/deprecation.py:38036 ms36.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5636 ms36.9%
MiddlewareMixin.__call__django/utils/deprecation.py:38036 ms36.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5636 ms36.9%
BaseHandler._get_responsedjango/core/handlers/base.py:19936 ms36.9%
indexaccounts/views.py:425 return render(13 ms13.8%
renderdjango/shortcuts.py:2712 ms12.3%
render_to_stringdjango/template/loader.py:6212 ms12.3%
Template.renderdjango/template/backends/django.py:10712 ms12.3%
Template.renderdjango/template/base.py:17512 ms12.3%
instrumented_test_renderdjango/test/utils.py:11312 ms12.3%
NodeList.renderdjango/template/base.py:110812 ms12.3%
Node.render_annotateddjango/template/base.py:106912 ms12.3%
ExtendsNode.renderdjango/template/loader_tags.py:16012 ms12.3%
instrumented_test_renderdjango/test/utils.py:11312 ms12.3%
NodeList.renderdjango/template/base.py:110812 ms12.3%
Node.render_annotateddjango/template/base.py:106912 ms12.3%
BlockNode.renderdjango/template/loader_tags.py:6612 ms12.3%
NodeList.renderdjango/template/base.py:110812 ms12.3%
Node.render_annotateddjango/template/base.py:106910 ms10.8%
ForNode.renderdjango/template/defaulttags.py:24910 ms10.8%
Node.render_annotateddjango/template/base.py:10699 ms9.2%
IfNode.renderdjango/template/defaulttags.py:3337 ms7.7%
NodeList.renderdjango/template/base.py:11087 ms7.7%
Node.render_annotateddjango/template/base.py:10697 ms7.7%
SimpleNode.renderdjango/template/library.py:3437 ms7.7%
heroicon_outlineheroicons/templatetags/heroicons.py:237 ms7.7%
_render_iconheroicons/templatetags/heroicons.py:417 ms7.7%
_render_iconheroicons/__init__.py:477 ms7.7%
_load_iconheroicons/__init__.py:187 ms7.7%
ZipFile.__init__<stdlib>/zipfile/__init__.py:15057 ms7.7%
ZipFile._RealGetContents<stdlib>/zipfile/__init__.py:16064 ms4.6%
Codec.decode<stdlib>/encodings/cp437.py:141 ms1.5%
<GC>~1 ms1.5%
ZipFile._RealGetContents<stdlib>/zipfile/__init__.py:16291 ms1.5%
ZipFile._RealGetContents<stdlib>/zipfile/__init__.py:15931 ms1.5%
renderdjango/shortcuts.py:281 ms1.5%
HttpResponse.__init__django/http/response.py:3891 ms1.5%
HttpResponse.contentdjango/http/response.py:4211 ms1.5%
HttpResponseBase.make_bytesdjango/http/response.py:3291 ms1.5%
indexaccounts/views.py:41212 ms12.3%
CountlessPaginator.get_pageaccounts/views.py:8412 ms12.3%
CountlessPaginator.pageaccounts/views.py:9012 ms12.3%
CountlessPage.__init__accounts/views.py:28 self.object_list = list(self.object_list)12 ms12.3%
QuerySet.__iter__django/db/models/query.py:43912 ms12.3%
QuerySet._fetch_alldjango/db/models/query.py:226212 ms12.3%
ModelIterable.__iter__django/db/models/query.py:10312 ms12.3%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:162512 ms12.3%
CursorWrapper.executedjango/db/backends/utils.py:7912 ms12.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9212 ms12.3%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:10012 ms12.3%
CursorWrapper._executedjango/db/backends/utils.py:10512 ms12.3%
Cursor.executepsycopg/cursor.py:11312 ms12.3%
Connection.waitpsycopg/connection.py:49512 ms12.3%
BaseCursor._execute_genpsycopg/_cursor_base.py:2069 ms9.2%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2869 ms9.2%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:789 ms9.2%
indexaccounts/views.py:295 language_counts = Daily.objects.order_by("date").last()10 ms10.8%
QuerySet.lastdjango/db/models/query.py:122510 ms10.8%
QuerySet.__iter__django/db/models/query.py:43910 ms10.8%
QuerySet._fetch_alldjango/db/models/query.py:226210 ms10.8%
ModelIterable.__iter__django/db/models/query.py:1039 ms9.2%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16257 ms7.7%
CursorWrapper.executedjango/db/backends/utils.py:797 ms7.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:927 ms7.7%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1007 ms7.7%
CursorWrapper._executedjango/db/backends/utils.py:1057 ms7.7%
Cursor.executepsycopg/cursor.py:1137 ms7.7%
Connection.waitpsycopg/connection.py:4957 ms7.7%
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.compiledjango/db/models/sql/compiler.py:5791 ms1.5%
Col.as_sqldjango/db/models/expressions.py:13691 ms1.5%
ModelIterable.__iter__django/db/models/query.py:1351 ms1.5%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15781 ms1.5%
SQLCompiler.get_convertersdjango/db/models/sql/compiler.py:15271 ms1.5%
RequestFactory.genericdjango/test/client.py:6491 ms1.5%
RequestFactory._get_pathdjango/test/client.py:4611 ms1.5%
unquote_to_bytes<stdlib>/urllib/parse.py:7931 ms1.5%
_unquote_impl<stdlib>/urllib/parse.py:8041 ms1.5%
SimpleTestCase._setup_and_calldjango/test/testcases.py:3601 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:3661 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%
BaseDatabaseWrapper._prepare_cursordjango/db/backends/base/base.py:2911 ms1.5%
BaseDatabaseWrapper.make_cursordjango/db/backends/base/base.py:6821 ms1.5%
__init____init__:-11 ms1.5%
SimpleTestCase._setup_and_calldjango/test/testcases.py:3721 ms1.5%
TransactionTestCase._post_teardowndjango/test/testcases.py:1243 self._fixture_teardown()1 ms1.5%
TestCase._fixture_teardowndjango/test/testcases.py:14981 ms1.5%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4961 ms1.5%
CursorWrapper.executedjango/db/backends/utils.py:791 ms1.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms1.5%
Estimated from 68 samples; phase durations are exact. Frames from pytest and pluggy are
shown
.
Hot lines in your code
|
accounts/tests.py:555
response = self.client.get(url)
TestAccountIndexRobots.assert_indexable
· Libraries
|
46 ms |
|
accounts/views.py:425
return render(
index
· Templates
|
13 ms |
|
accounts/views.py:28
self.object_list = list(self.object_list)
CountlessPage.__init__
· Database
|
12 ms |
|
accounts/views.py:295
language_counts = Daily.objects.order_by("date").last()
index
· Database
|
10 ms |
Fixtures
Exact setup time| _unittest_setUpClass_fixture_TestAccountIndexRobots class | 10 ms |
| _django_setup_unittest class | 0.30 ms |
| _django_db_marker function | 0.06 ms |
| _django_set_urlconf function | 0.04 ms |
| _dj_autoclear_mailbox function | 0.04 ms |
| _template_string_if_invalid_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
8 queries · 14 msNo repeated queries.
Biggest pieces of work
|
call test body
accounts/tests.py:560
|
82 ms |
|
setup setUpClass
django/test/testcases.py:1426
|
11 ms |
|
call _pre_setup
django/test/testcases.py:1167
|
1 ms |
|
call _post_teardown
django/test/testcases.py:1243
|
1 ms |
| setup pytest internals | 1 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 | 97 ms | Profile |
| 8 hours ago | CI github-actions:test | passed | 135 ms | Profile |
| 9 hours ago | CI github-actions:test | passed | 338 ms | Profile |
| 13 hours ago | CI github-actions:test | passed | 303 ms | Profile |
| 14 hours ago | CI github-actions:test | passed | 114 ms | Run |