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

TestAccountIndexRobots::test_pagination_is_noindex

First seen 14 hours ago in 0c23747
CI github-actions:test 4 runs
Average
169 ms
median 204 ms
max 215 ms
Phases
Setup 2 ms Call 167 ms Teardown 0.30 ms
Categories
Database 16 ms Other (Libraries, Templates, Unsampled, pytest) 153 ms

8 database queries per run

Needs 2 KB of memory (max 8 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 8 hours ago · open run
Hide pytest frames
call53 ms98.3%
CallInfo.from_call_pytest/runner.py:36153 ms98.3%
call_and_report.<locals>.<lambda>_pytest/runner.py:25053 ms98.3%
HookCaller.__call__pluggy/_hooks.py:51253 ms98.3%
PluginManager._hookexecpluggy/_manager.py:12053 ms98.3%
_multicallpluggy/_callers.py:12153 ms98.3%
pytest_runtest_call_pytest/runner.py:18453 ms98.3%
_django_setup_unittest.<locals>.non_debugging_runtestpytest_django/plugin.py:61453 ms98.3%
SimpleTestCase.__call__django/test/testcases.py:31453 ms98.3%
SimpleTestCase._setup_and_calldjango/test/testcases.py:36946 ms84.9%
TestCase.__call__<stdlib>/unittest/case.py:74746 ms84.9%
TestCase.run<stdlib>/unittest/case.py:69146 ms84.9%
TestCase._callTestMethod<stdlib>/unittest/case.py:63746 ms84.9%
TestAccountIndexRobots.test_pagination_is_noindexaccounts/tests.py:592 self.assert_noindex("/python/?page=2")46 ms84.9%
TestAccountIndexRobots.assert_noindexaccounts/tests.py:550 response = self.client.get(url)46 ms84.9%
Client.getdjango/test/client.py:113346 ms84.9%
RequestFactory.getdjango/test/client.py:47546 ms84.9%
RequestFactory.genericdjango/test/client.py:67146 ms84.9%
Client.requestdjango/test/client.py:109146 ms84.9%
ClientHandler.__call__django/test/client.py:17334 ms62.6%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6334 ms62.6%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10431 ms58.1%
WhiteNoise.add_fileswhitenoise/base.py:10831 ms58.1%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12022 ms40.2%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13122 ms40.2%
WhiteNoise.get_static_filewhitenoise/base.py:21717 ms31.3%
StaticFile.__init__whitenoise/responders.py:737 ms13.4%
StaticFile.get_headerswhitenoise/responders.py:1785 ms8.9%
Headers.__getitem__<stdlib>/wsgiref/headers.py:832 ms4.5%
Headers.get<stdlib>/wsgiref/headers.py:1042 ms4.5%
parsedate<stdlib>/email/_parseaddr.py:1852 ms4.5%
StaticFile.get_headerswhitenoise/responders.py:1672 ms4.5%
StaticFile.__init__whitenoise/responders.py:775 ms8.9%
StaticFile.get_alternativeswhitenoise/responders.py:2002 ms4.5%
URLMixin.urldebug_toolbar/panels/staticfiles.py:202 ms4.5%
StaticFile.__init__whitenoise/responders.py:722 ms4.5%
StaticFile.get_file_statswhitenoise/responders.py:1612 ms4.5%
__init____init__:-12 ms4.5%
FileEntry.__init__whitenoise/responders.py:2632 ms4.5%
FileEntry.stat_regular_filewhitenoise/responders.py:2762 ms4.5%
<GC>~2 ms4.5%
StaticFile.__init__whitenoise/responders.py:762 ms4.5%
WhiteNoise.get_static_filewhitenoise/base.py:2125 ms8.9%
Headers.__setitem__<stdlib>/wsgiref/headers.py:622 ms4.5%
WhiteNoise.add_cache_headerswhitenoise/base.py:2332 ms4.5%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1762 ms4.5%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1972 ms4.5%
URLMixin.urldebug_toolbar/panels/staticfiles.py:212 ms4.5%
suppress.__exit__<stdlib>/contextlib.py:5122 ms4.5%
<GC>~2 ms4.5%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1157 ms13.4%
scantreewhitenoise/base.py:2717 ms13.4%
scantreewhitenoise/base.py:2715 ms8.9%
scantreewhitenoise/base.py:2715 ms8.9%
scantreewhitenoise/base.py:2715 ms8.9%
scantreewhitenoise/base.py:2715 ms8.9%
scantreewhitenoise/base.py:2735 ms8.9%
scantreewhitenoise/base.py:2732 ms4.5%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:402 ms4.5%
ClientHandler.__call__django/test/client.py:18612 ms22.3%
BaseHandler.get_responsedjango/core/handlers/base.py:14212 ms22.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5612 ms22.3%
MiddlewareMixin.__call__django/utils/deprecation.py:38012 ms22.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5612 ms22.3%
MiddlewareMixin.__call__django/utils/deprecation.py:38012 ms22.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5612 ms22.3%
MiddlewareMixin.__call__django/utils/deprecation.py:38012 ms22.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5612 ms22.3%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12312 ms22.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5612 ms22.3%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:14512 ms22.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5612 ms22.3%
MiddlewareMixin.__call__django/utils/deprecation.py:38012 ms22.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5612 ms22.3%
MiddlewareMixin.__call__django/utils/deprecation.py:38012 ms22.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5612 ms22.3%
MiddlewareMixin.__call__django/utils/deprecation.py:38012 ms22.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5612 ms22.3%
MiddlewareMixin.__call__django/utils/deprecation.py:38012 ms22.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5612 ms22.3%
MiddlewareMixin.__call__django/utils/deprecation.py:38012 ms22.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5612 ms22.3%
MiddlewareMixin.__call__django/utils/deprecation.py:38012 ms22.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5612 ms22.3%
MiddlewareMixin.__call__django/utils/deprecation.py:38012 ms22.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5612 ms22.3%
BaseHandler._get_responsedjango/core/handlers/base.py:19912 ms22.3%
indexaccounts/views.py:4127 ms13.4%
CountlessPaginator.get_pageaccounts/views.py:847 ms13.4%
CountlessPaginator.pageaccounts/views.py:907 ms13.4%
CountlessPage.__init__accounts/views.py:28 self.object_list = list(self.object_list)7 ms13.4%
QuerySet.__iter__django/db/models/query.py:4397 ms13.4%
QuerySet._fetch_alldjango/db/models/query.py:22627 ms13.4%
ModelIterable.__iter__django/db/models/query.py:1035 ms8.9%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16122 ms4.5%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7682 ms4.5%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:892 ms4.5%
SQLCompiler.setup_querydjango/db/models/sql/compiler.py:782 ms4.5%
SQLCompiler.get_selectdjango/db/models/sql/compiler.py:3102 ms4.5%
SQLCompiler.get_related_selectionsdjango/db/models/sql/compiler.py:12582 ms4.5%
Query.setup_joinsdjango/db/models/sql/query.py:20022 ms4.5%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16252 ms4.5%
CursorWrapper.executedjango/db/backends/utils.py:792 ms4.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms4.5%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1002 ms4.5%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms4.5%
Cursor.executepsycopg/cursor.py:1132 ms4.5%
Connection.waitpsycopg/connection.py:4952 ms4.5%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms4.5%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms4.5%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms4.5%
ModelIterable.__iter__django/db/models/query.py:1352 ms4.5%
get_related_populatorsdjango/db/models/query.py:30612 ms4.5%
__init____init__:-12 ms4.5%
RelatedPopulator.__init__django/db/models/query.py:30072 ms4.5%
indexaccounts/views.py:425 return render(5 ms8.9%
renderdjango/shortcuts.py:275 ms8.9%
render_to_stringdjango/template/loader.py:625 ms8.9%
Template.renderdjango/template/backends/django.py:1075 ms8.9%
Template.renderdjango/template/base.py:1755 ms8.9%
instrumented_test_renderdjango/test/utils.py:1135 ms8.9%
NodeList.renderdjango/template/base.py:11085 ms8.9%
Node.render_annotateddjango/template/base.py:10695 ms8.9%
ExtendsNode.renderdjango/template/loader_tags.py:1605 ms8.9%
instrumented_test_renderdjango/test/utils.py:1135 ms8.9%
NodeList.renderdjango/template/base.py:11085 ms8.9%
Node.render_annotateddjango/template/base.py:10695 ms8.9%
IfNode.renderdjango/template/defaulttags.py:3262 ms4.5%
TemplateLiteral.evaldjango/template/defaulttags.py:9182 ms4.5%
FilterExpression.resolvedjango/template/base.py:8062 ms4.5%
Variable.resolvedjango/template/base.py:9452 ms4.5%
Variable._resolve_lookupdjango/template/base.py:9932 ms4.5%
BlockNode.renderdjango/template/loader_tags.py:662 ms4.5%
NodeList.renderdjango/template/base.py:11082 ms4.5%
Node.render_annotateddjango/template/base.py:10692 ms4.5%
ForNode.renderdjango/template/defaulttags.py:2492 ms4.5%
Node.render_annotateddjango/template/base.py:10692 ms4.5%
SimpleNode.renderdjango/template/library.py:3432 ms4.5%
querystringdjango/template/defaulttags.py:13482 ms4.5%
SimpleTestCase._setup_and_calldjango/test/testcases.py:3727 ms13.4%
TransactionTestCase._post_teardowndjango/test/testcases.py:1243 self._fixture_teardown()7 ms13.4%
TestCase._fixture_teardowndjango/test/testcases.py:14975 ms8.9%
TestCase._should_check_constraintsdjango/test/testcases.py:15065 ms8.9%
DatabaseWrapper.is_usabledjango/db/backends/postgresql/base.py:5045 ms8.9%
Cursor.executepsycopg/cursor.py:1135 ms8.9%
Connection.waitpsycopg/connection.py:4955 ms8.9%
BaseCursor._execute_genpsycopg/_cursor_base.py:2065 ms8.9%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms4.5%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms4.5%
TestCase._fixture_teardowndjango/test/testcases.py:14982 ms4.5%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4952 ms4.5%
CursorWrapper.executedjango/db/backends/utils.py:792 ms4.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms4.5%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1002 ms4.5%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms4.5%
Cursor.executepsycopg/cursor.py:1132 ms4.5%
Connection.waitpsycopg/connection.py:4952 ms4.5%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms4.5%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms4.5%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms4.5%
teardown0.24 ms0.4%
Estimated from 23 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
34 ms
accounts/views.py:28
self.object_list = list(self.object_list)
CountlessPage.__init__ · Database
7 ms
accounts/views.py:425
return render(
index · Templates
5 ms

Fixtures

Exact setup time
_dj_autoclear_mailbox function 0.05 ms
_template_string_if_invalid_marker function 0.03 ms
_django_db_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

8 queries · 3 ms
No repeated queries.

Biggest pieces of work

call test body
accounts/tests.py:592
46 ms
call _post_teardown
django/test/testcases.py:1243
7 ms

Reliability

5 results · 0 CI failures · 0 local failures

This test hasn't failed recently.

History

Latest 5 results, oldest first in the strip
When Environment Outcome Duration Commit
8 hours ago CI github-actions:test passed 54 ms d923a46 main Profile
8 hours ago CI github-actions:test passed 195 ms 82997f8 main Profile
9 hours ago CI github-actions:test passed 214 ms 623aa3e main Profile
13 hours ago CI github-actions:test passed 215 ms ab6465a main Profile
14 hours ago CI github-actions:test passed 90 ms 0c23747 main Run