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

TestAccountIndexRobots::test_canonical_page_is_indexable

First seen 3 weeks ago in 0c23747
CI github-actions:test 11 runs
Average
173 ms
median 135 ms
max 338 ms
Phases
Setup 17 ms Call 156 ms Teardown 0.42 ms
Categories
Database 56 ms App code 0.91 ms Other (Libraries, Templates, Unsampled, pytest, ...) 117 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, 7 hours ago · open run
Show pytest frames
setup14 ms10.5%
TestCase.setUpClassdjango/test/testcases.py:1426 cls.cls_atomics = cls._enter_atomics()13 ms9.7%
TestCase._enter_atomicsdjango/test/testcases.py:139913 ms9.7%
Atomic.__enter__django/db/transaction.py:21013 ms9.7%
BaseDatabaseWrapper.get_autocommitdjango/db/backends/base/base.py:45413 ms9.7%
SimpleTestCase.ensure_connection_patch_method.<locals>.patched_ensure_connectiondjango/test/testcases.py:30413 ms9.7%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2613 ms9.7%
BaseDatabaseWrapper.ensure_connectiondjango/db/backends/base/base.py:27913 ms9.7%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2613 ms9.7%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:25613 ms9.7%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2613 ms9.7%
DatabaseWrapper.get_new_connectiondjango/db/backends/postgresql/base.py:34513 ms9.7%
Connection.connectpsycopg/connection.py:10913 ms9.7%
wait_connpsycopg/waiting.py:1459 ms6.5%
BaseConnection._connect_genpsycopg/_connection_base.py:4399 ms6.5%
wait_connpsycopg/waiting.py:1413 ms2.4%
EpollSelector.select<stdlib>/selectors.py:4523 ms2.4%
wait_connpsycopg/waiting.py:1361 ms0.8%
BaseConnection._connect_genpsycopg/_connection_base.py:4391 ms0.8%
__init____init__:-11 ms0.8%
signature<stdlib>/inspect.py:33431 ms0.8%
Signature.from_callable<stdlib>/inspect.py:30581 ms0.8%
_signature_from_callable<stdlib>/inspect.py:25281 ms0.8%
_signature_from_function<stdlib>/inspect.py:23861 ms0.8%
call118 ms89.2%
TestAccountIndexRobots.test_canonical_page_is_indexableaccounts/tests.py:560 self.assert_indexable("/python/")116 ms88.0%
TestAccountIndexRobots.assert_indexableaccounts/tests.py:555 response = self.client.get(url)116 ms88.0%
Client.getdjango/test/client.py:1133116 ms88.0%
RequestFactory.getdjango/test/client.py:475116 ms88.0%
RequestFactory.genericdjango/test/client.py:671116 ms88.0%
Client.requestdjango/test/client.py:1091116 ms88.0%
ClientHandler.__call__django/test/client.py:18689 ms67.2%
BaseHandler.get_responsedjango/core/handlers/base.py:14289 ms67.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5689 ms67.2%
MiddlewareMixin.__call__django/utils/deprecation.py:38089 ms67.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5689 ms67.2%
MiddlewareMixin.__call__django/utils/deprecation.py:38089 ms67.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5689 ms67.2%
MiddlewareMixin.__call__django/utils/deprecation.py:38089 ms67.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5689 ms67.2%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12389 ms67.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5689 ms67.2%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:14589 ms67.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5689 ms67.2%
MiddlewareMixin.__call__django/utils/deprecation.py:38089 ms67.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5689 ms67.2%
MiddlewareMixin.__call__django/utils/deprecation.py:38089 ms67.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5689 ms67.2%
MiddlewareMixin.__call__django/utils/deprecation.py:38089 ms67.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5689 ms67.2%
MiddlewareMixin.__call__django/utils/deprecation.py:38089 ms67.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5689 ms67.2%
MiddlewareMixin.__call__django/utils/deprecation.py:38089 ms67.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5689 ms67.2%
MiddlewareMixin.__call__django/utils/deprecation.py:38089 ms67.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5689 ms67.2%
MiddlewareMixin.__call__django/utils/deprecation.py:38089 ms67.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5689 ms67.2%
BaseHandler._get_responsedjango/core/handlers/base.py:19989 ms67.2%
indexaccounts/views.py:295 language_counts = Daily.objects.order_by("date").last()71 ms53.8%
QuerySet.lastdjango/db/models/query.py:122571 ms53.8%
QuerySet.__iter__django/db/models/query.py:43971 ms53.8%
QuerySet._fetch_alldjango/db/models/query.py:226271 ms53.8%
ModelIterable.__iter__django/db/models/query.py:10371 ms53.8%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:162563 ms47.7%
CursorWrapper.executedjango/db/backends/utils.py:7963 ms47.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9263 ms47.7%
CursorWrapper._executedjango/db/backends/utils.py:10563 ms47.7%
Cursor.executepsycopg/cursor.py:11363 ms47.7%
Connection.waitpsycopg/connection.py:49563 ms47.7%
BaseCursor._execute_genpsycopg/_cursor_base.py:20663 ms47.7%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:28663 ms47.7%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:7863 ms47.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16126 ms4.9%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7686 ms4.9%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:893 ms2.4%
SQLCompiler.setup_querydjango/db/models/sql/compiler.py:783 ms2.4%
SQLCompiler.get_selectdjango/db/models/sql/compiler.py:3193 ms2.4%
SQLCompiler.compiledjango/db/models/sql/compiler.py:5793 ms2.4%
Col.as_sqldjango/db/models/expressions.py:13693 ms2.4%
SQLCompiler.quote_namedjango/db/models/sql/compiler.py:5572 ms1.2%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:903 ms2.4%
SQLCompiler.get_order_bydjango/db/models/sql/compiler.py:4913 ms2.4%
SQLCompiler._order_by_pairsdjango/db/models/sql/compiler.py:4002 ms1.2%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16232 ms1.2%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms1.2%
BaseDatabaseWrapper.cursordjango/db/backends/base/base.py:3202 ms1.2%
BaseDatabaseWrapper._cursordjango/db/backends/base/base.py:2962 ms1.2%
indexaccounts/views.py:412 page_obj = paginator.get_page(page_number)16 ms12.2%
CountlessPaginator.get_pageaccounts/views.py:8416 ms12.2%
CountlessPaginator.pageaccounts/views.py:9016 ms12.2%
CountlessPage.__init__accounts/views.py:28 self.object_list = list(self.object_list)16 ms12.2%
QuerySet.__iter__django/db/models/query.py:43916 ms12.2%
QuerySet._fetch_alldjango/db/models/query.py:226216 ms12.2%
ModelIterable.__iter__django/db/models/query.py:10315 ms11.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:162515 ms11.0%
CursorWrapper.executedjango/db/backends/utils.py:7915 ms11.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9215 ms11.0%
CursorWrapper._executedjango/db/backends/utils.py:10515 ms11.0%
Cursor.executepsycopg/cursor.py:11315 ms11.0%
Connection.waitpsycopg/connection.py:49515 ms11.0%
BaseCursor._execute_genpsycopg/_cursor_base.py:20615 ms11.0%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:28615 ms11.0%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:7815 ms11.0%
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%
Col.get_db_convertersdjango/db/models/expressions.py:13832 ms1.2%
Field.__eq__django/db/models/fields/__init__.py:7182 ms1.2%
indexaccounts/views.py:425 return render(2 ms1.2%
renderdjango/shortcuts.py:272 ms1.2%
render_to_stringdjango/template/loader.py:622 ms1.2%
Template.renderdjango/template/backends/django.py:1072 ms1.2%
Template.renderdjango/template/base.py:1752 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%
ExtendsNode.renderdjango/template/loader_tags.py:1602 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%
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%
ClientHandler.__call__django/test/client.py:17327 ms20.8%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6327 ms20.8%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10427 ms20.8%
WhiteNoise.add_fileswhitenoise/base.py:10827 ms20.8%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12018 ms13.4%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13118 ms13.4%
WhiteNoise.get_static_filewhitenoise/base.py:2176 ms4.9%
StaticFile.__init__whitenoise/responders.py:745 ms3.7%
parsedate<stdlib>/email/_parseaddr.py:1855 ms3.7%
StaticFile.__init__whitenoise/responders.py:762 ms1.2%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1902 ms1.2%
WhiteNoise.get_static_filewhitenoise/base.py:2115 ms3.7%
WhiteNoise.add_mime_headerswhitenoise/base.py:2303 ms2.4%
WhiteNoise.get_static_filewhitenoise/base.py:2125 ms3.7%
WhiteNoise.add_cache_headerswhitenoise/base.py:2335 ms3.7%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1763 ms2.4%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1973 ms2.4%
URLMixin.urldebug_toolbar/panels/staticfiles.py:202 ms1.2%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:2352 ms1.2%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:2112 ms1.2%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1732 ms1.2%
WhiteNoiseMiddleware.get_name_without_hashwhitenoise/middleware.py:1912 ms1.2%
splitext<frozen posixpath>:1262 ms1.2%
_splitext<frozen genericpath>:1742 ms1.2%
WhiteNoise.get_static_filewhitenoise/base.py:2102 ms1.2%
__init____init__:-12 ms1.2%
Headers.__init__<stdlib>/wsgiref/headers.py:382 ms1.2%
WhiteNoise.update_files_dictionarywhitenoise/base.py:11510 ms7.3%
scantreewhitenoise/base.py:2716 ms4.9%
scantreewhitenoise/base.py:2716 ms4.9%
scantreewhitenoise/base.py:2735 ms3.7%
scantreewhitenoise/base.py:2712 ms1.2%
scantreewhitenoise/base.py:2712 ms1.2%
scantreewhitenoise/base.py:2712 ms1.2%
scantreewhitenoise/base.py:2732 ms1.2%
scantreewhitenoise/base.py:2732 ms1.2%
TransactionTestCase._pre_setupdjango/test/testcases.py:1167 cls._fixture_setup()2 ms1.2%
TestCase._fixture_setupdjango/test/testcases.py:14812 ms1.2%
TestCase._enter_atomicsdjango/test/testcases.py:13992 ms1.2%
Atomic.__enter__django/db/transaction.py:2232 ms1.2%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms1.2%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4002 ms1.2%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3672 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%
BaseCursor._execute_genpsycopg/_cursor_base.py:2042 ms1.2%
BaseCursor._start_querypsycopg/_cursor_base.py:3872 ms1.2%
BaseConnection._start_querypsycopg/_connection_base.py:5532 ms1.2%
BaseConnection._exec_commandpsycopg/_connection_base.py:4742 ms1.2%
Estimated from 86 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

accounts/views.py:295
language_counts = Daily.objects.order_by("date").last()
index · Database
71 ms
accounts/tests.py:555
response = self.client.get(url)
TestAccountIndexRobots.assert_indexable · Libraries
27 ms
accounts/views.py:28
self.object_list = list(self.object_list)
CountlessPage.__init__ · Database
16 ms
accounts/views.py:425
return render(
index · Templates
2 ms

Fixtures

Exact setup time
_unittest_setUpClass_fixture_TestAccountIndexRobots class 12 ms
_django_setup_unittest class 0.33 ms
_template_string_if_invalid_marker function 0.10 ms
_django_db_marker function 0.06 ms
_django_set_urlconf function 0.06 ms
_live_server_helper function 0.06 ms
_django_isolate_apps function 0.06 ms
_dj_autoclear_mailbox function 0.05 ms
_django_clear_site_cache function 0.04 ms
monkeypatch function 0.03 ms

Database

8 queries · 17 ms
No repeated queries.

Biggest pieces of work

call test body
accounts/tests.py:560
116 ms
setup setUpClass
django/test/testcases.py:1426
13 ms
call _pre_setup
django/test/testcases.py:1167
2 ms
setup __init__
__init__:-1
1 ms

Reliability

12 results · 0 CI failures · 0 local failures

This test hasn't failed recently.

History

Latest 12 results, oldest first in the strip
When Environment Outcome Duration Commit
7 hours ago CI github-actions:test passed 132 ms c28a326 main Profile
16 hours ago CI github-actions:test passed 79 ms 9b8826a main Profile
22 hours ago CI github-actions:test passed 257 ms 4f01055 main Profile
1 week, 5 days ago CI github-actions:test passed 157 ms 8ab642e main Profile
2 weeks, 2 days ago CI github-actions:test passed 119 ms 9b75244 main Profile
2 weeks, 2 days ago CI github-actions:test passed 163 ms 9603516 main Profile
2 weeks, 4 days ago CI github-actions:test passed 127 ms 615a272 main Profile
3 weeks ago CI github-actions:test passed 97 ms d923a46 main Profile
3 weeks ago CI github-actions:test passed 135 ms 82997f8 main Profile
3 weeks ago CI github-actions:test passed 338 ms 623aa3e main Profile
3 weeks ago CI github-actions:test passed 303 ms ab6465a main Profile
3 weeks ago CI github-actions:test passed 114 ms 0c23747 main Run