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

TestAccountIndexRobots::test_search_is_noindex_even_alone

First seen 1 month, 1 week ago in 0c23747
CI github-actions:test 13 runs
Average
133 ms
median 127 ms
max 205 ms
Phases
Setup 2 ms Call 131 ms Teardown 0.32 ms
Categories
Database 11 ms App code 0.82 ms Test code 0.18 ms Other (Libraries, Templates, pytest, Unsampled) 121 ms

8 database queries per run

Needs 2 KB of memory (max 16 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 2 weeks ago · open run
Show pytest frames
call86 ms98.9%
TestAccountIndexRobots.test_search_is_noindex_even_aloneaccounts/tests.py:586 self.assert_noindex("/python/?q=django")85 ms97.5%
TestAccountIndexRobots.assert_noindexaccounts/tests.py:550 response = self.client.get(url)85 ms97.5%
Client.getdjango/test/client.py:113385 ms97.5%
RequestFactory.getdjango/test/client.py:47585 ms97.5%
RequestFactory.genericdjango/test/client.py:67185 ms97.5%
Client.requestdjango/test/client.py:109185 ms97.5%
ClientHandler.__call__django/test/client.py:17357 ms65.0%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6357 ms65.0%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10457 ms65.0%
WhiteNoise.add_fileswhitenoise/base.py:10857 ms65.0%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12045 ms51.5%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13144 ms50.1%
WhiteNoise.get_static_filewhitenoise/base.py:21743 ms48.7%
StaticFile.__init__whitenoise/responders.py:7730 ms33.9%
StaticFile.get_alternativeswhitenoise/responders.py:20326 ms29.8%
Headers.__setitem__<stdlib>/wsgiref/headers.py:6426 ms29.8%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:5026 ms29.8%
StaticFile.get_alternativeswhitenoise/responders.py:2004 ms4.1%
__init____init__:-14 ms4.1%
Headers.__init__<stdlib>/wsgiref/headers.py:434 ms4.1%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:504 ms4.1%
StaticFile.__init__whitenoise/responders.py:739 ms10.8%
StaticFile.get_headerswhitenoise/responders.py:1787 ms8.1%
parsedate<stdlib>/email/_parseaddr.py:1857 ms8.1%
parsedate_tz<stdlib>/email/_parseaddr.py:507 ms8.1%
_parsedate_tz<stdlib>/email/_parseaddr.py:1196 ms6.8%
_parsedate_tz<stdlib>/email/_parseaddr.py:1401 ms1.4%
StaticFile.get_headerswhitenoise/responders.py:1761 ms1.4%
formatdate<stdlib>/email/utils.py:2661 ms1.4%
StaticFile.__init__whitenoise/responders.py:764 ms4.1%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1894 ms4.1%
Headers.__getitem__<stdlib>/wsgiref/headers.py:834 ms4.1%
Headers.get<stdlib>/wsgiref/headers.py:1044 ms4.1%
WhiteNoise.get_static_filewhitenoise/base.py:2121 ms1.4%
WhiteNoise.add_cache_headerswhitenoise/base.py:2331 ms1.4%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1761 ms1.4%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1971 ms1.4%
WhiteNoise.update_files_dictionarywhitenoise/base.py:11512 ms13.5%
scantreewhitenoise/base.py:2719 ms10.8%
scantreewhitenoise/base.py:2719 ms10.8%
scantreewhitenoise/base.py:2736 ms6.8%
scantreewhitenoise/base.py:2694 ms4.1%
scantreewhitenoise/base.py:2732 ms2.7%
ClientHandler.__call__django/test/client.py:18628 ms32.5%
BaseHandler.get_responsedjango/core/handlers/base.py:14228 ms32.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5628 ms32.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38028 ms32.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5628 ms32.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38028 ms32.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5628 ms32.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38028 ms32.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5628 ms32.5%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12328 ms32.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5628 ms32.5%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:14528 ms32.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5628 ms32.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38028 ms32.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5628 ms32.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38028 ms32.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5628 ms32.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38028 ms32.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5628 ms32.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38028 ms32.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5628 ms32.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38028 ms32.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5628 ms32.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38028 ms32.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5628 ms32.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38028 ms32.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5628 ms32.5%
BaseHandler._get_responsedjango/core/handlers/base.py:19928 ms32.5%
indexaccounts/views.py:425 return render(28 ms32.5%
renderdjango/shortcuts.py:2728 ms32.5%
render_to_stringdjango/template/loader.py:6228 ms32.5%
Template.renderdjango/template/backends/django.py:10728 ms32.5%
Template.renderdjango/template/base.py:17528 ms32.5%
instrumented_test_renderdjango/test/utils.py:11328 ms32.5%
NodeList.renderdjango/template/base.py:110828 ms32.5%
Node.render_annotateddjango/template/base.py:106928 ms32.5%
ExtendsNode.renderdjango/template/loader_tags.py:16028 ms32.5%
instrumented_test_renderdjango/test/utils.py:11328 ms32.5%
NodeList.renderdjango/template/base.py:110828 ms32.5%
Node.render_annotateddjango/template/base.py:106928 ms32.5%
BlockNode.renderdjango/template/loader_tags.py:6625 ms28.4%
NodeList.renderdjango/template/base.py:110825 ms28.4%
Node.render_annotateddjango/template/base.py:106925 ms28.4%
IfNode.renderdjango/template/defaulttags.py:33319 ms21.7%
NodeList.renderdjango/template/base.py:110819 ms21.7%
Node.render_annotateddjango/template/base.py:106919 ms21.7%
SimpleNode.renderdjango/template/library.py:34319 ms21.7%
querystringdjango/template/defaulttags.py:132719 ms21.7%
QueryDict.__init__django/http/request.py:60619 ms21.7%
LazyObject.__getattribute__django/utils/functional.py:28019 ms21.7%
ForNode.renderdjango/template/defaulttags.py:2496 ms6.8%
Node.render_annotateddjango/template/base.py:10696 ms6.8%
IfNode.renderdjango/template/defaulttags.py:3335 ms5.4%
NodeList.renderdjango/template/base.py:11085 ms5.4%
Node.render_annotateddjango/template/base.py:10695 ms5.4%
URLNode.renderdjango/template/defaulttags.py:5114 ms4.1%
reversedjango/urls/base.py:984 ms4.1%
URLResolver._reverse_with_prefixdjango/urls/resolvers.py:8132 ms2.7%
URLResolver._reverse_with_prefixdjango/urls/resolvers.py:8031 ms1.4%
search<stdlib>/re/__init__.py:1791 ms1.4%
URLNode.renderdjango/template/defaulttags.py:5211 ms1.4%
conditional_escapedjango/utils/html.py:1321 ms1.4%
IfNode.renderdjango/template/defaulttags.py:3261 ms1.4%
infix.<locals>.Operator.evaldjango/template/smartif.py:611 ms1.4%
<lambda>django/template/smartif.py:1061 ms1.4%
TemplateLiteral.evaldjango/template/defaulttags.py:9181 ms1.4%
FilterExpression.resolvedjango/template/base.py:8061 ms1.4%
Variable.resolvedjango/template/base.py:9451 ms1.4%
Variable._resolve_lookupdjango/template/base.py:10321 ms1.4%
IfNode.renderdjango/template/defaulttags.py:3332 ms2.7%
NodeList.renderdjango/template/base.py:11082 ms2.7%
Node.render_annotateddjango/template/base.py:10692 ms2.7%
IncludeNode.renderdjango/template/loader_tags.py:2112 ms2.7%
Template.renderdjango/template/base.py:1772 ms2.7%
instrumented_test_renderdjango/test/utils.py:1132 ms2.7%
NodeList.renderdjango/template/base.py:11082 ms2.7%
Node.render_annotateddjango/template/base.py:10692 ms2.7%
SimpleNode.renderdjango/template/library.py:3432 ms2.7%
instances_datalistaccounts/templatetags/account_extras.py:36 for instance in instances:2 ms2.7%
QuerySet.__iter__django/db/models/query.py:4392 ms2.7%
QuerySet._fetch_alldjango/db/models/query.py:22622 ms2.7%
FlatValuesListIterable.__iter__django/db/models/query.py:3022 ms2.7%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15742 ms2.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16252 ms2.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.7%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms1.4%
Cursor.executepsycopg/cursor.py:1131 ms1.4%
Connection.waitpsycopg/connection.py:4951 ms1.4%
URLNode.renderdjango/template/defaulttags.py:5111 ms1.4%
reversedjango/urls/base.py:981 ms1.4%
URLResolver._reverse_with_prefixdjango/urls/resolvers.py:7621 ms1.4%
URLResolver.reverse_dictdjango/urls/resolvers.py:6311 ms1.4%
get_languagedjango/utils/translation/__init__.py:2111 ms1.4%
get_languagedjango/utils/translation/trans_real.py:3291 ms1.4%
Local.__getattr__asgiref/local.py:1581 ms1.4%
TransactionTestCase._post_teardowndjango/test/testcases.py:1243 self._fixture_teardown()1 ms1.4%
TestCase._fixture_teardowndjango/test/testcases.py:14971 ms1.4%
TestCase._should_check_constraintsdjango/test/testcases.py:15061 ms1.4%
DatabaseWrapper.is_usabledjango/db/backends/postgresql/base.py:5041 ms1.4%
Cursor.executepsycopg/cursor.py:1131 ms1.4%
Connection.waitpsycopg/connection.py:4951 ms1.4%
BaseCursor._execute_genpsycopg/_cursor_base.py:2061 ms1.4%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2861 ms1.4%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:781 ms1.4%
teardown0.24 ms0.3%
Estimated from 74 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

accounts/tests.py:550
response = self.client.get(url)
TestAccountIndexRobots.assert_noindex · Libraries
57 ms
accounts/views.py:425
return render(
index · Templates
26 ms
accounts/templatetags/account_extras.py:36
for instance in instances:
instances_datalist · Database
2 ms

Fixtures

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

Database

8 queries · 8 ms
No repeated queries.

Biggest pieces of work

call test body
accounts/tests.py:586
85 ms
call _post_teardown
django/test/testcases.py:1243
1 ms
teardown pytest internals 0.24 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 87 ms 28600ed main Profile
2 weeks, 5 days ago CI github-actions:test passed 127 ms 600b717 main Profile
2 weeks, 6 days ago CI github-actions:test passed 184 ms c28a326 main Profile
3 weeks ago CI github-actions:test passed 58 ms 9b8826a main Profile
3 weeks ago CI github-actions:test passed 188 ms 4f01055 main Profile
1 month ago CI github-actions:test passed 150 ms 8ab642e main Profile
1 month ago CI github-actions:test passed 91 ms 9b75244 main Profile
1 month ago CI github-actions:test passed 102 ms 9603516 main Profile
1 month, 1 week ago CI github-actions:test passed 91 ms 615a272 main Profile
1 month, 1 week ago CI github-actions:test passed 53 ms d923a46 main Profile
1 month, 1 week ago CI github-actions:test passed 203 ms 82997f8 main Profile
1 month, 1 week ago CI github-actions:test passed 189 ms 623aa3e main Profile
1 month, 1 week ago CI github-actions:test passed 205 ms ab6465a main Profile
1 month, 1 week ago CI github-actions:test passed 78 ms 0c23747 main Run