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

TestAnonymousCacheAndCsrf::test_query_string_pages_are_not_noindexed

First seen 1 month, 1 week ago in 0c23747
CI github-actions:test 13 runs
Average
130 ms
median 136 ms
max 261 ms
Phases
Setup 2 ms Call 118 ms Teardown 10 ms
Categories
Database 19 ms App code 0.13 ms Other (Libraries, DB schema, Templates, pytest, ...) 111 ms

7 database queries per run

Needs 212 KB of memory (max 1 MB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 2 weeks ago · open run
Show pytest frames
call53 ms91.5%
TestAnonymousCacheAndCsrf.test_query_string_pages_are_not_noindexedfedidevs/tests.py:111 response = self.client.get("/login/?q=")30 ms50.8%
Client.getdjango/test/client.py:113330 ms50.8%
RequestFactory.getdjango/test/client.py:47530 ms50.8%
RequestFactory.genericdjango/test/client.py:67130 ms50.8%
Client.requestdjango/test/client.py:109130 ms50.8%
ClientHandler.__call__django/test/client.py:17327 ms45.7%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6327 ms45.7%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10427 ms45.7%
WhiteNoise.add_fileswhitenoise/base.py:10827 ms45.7%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12015 ms25.4%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13115 ms25.4%
WhiteNoise.get_static_filewhitenoise/base.py:2129 ms15.2%
WhiteNoise.add_cache_headerswhitenoise/base.py:2339 ms15.2%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1769 ms15.2%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1979 ms15.2%
URLMixin.urldebug_toolbar/panels/staticfiles.py:216 ms10.2%
<GC>~6 ms10.2%
URLMixin.urldebug_toolbar/panels/staticfiles.py:203 ms5.1%
WhiteNoise.get_static_filewhitenoise/base.py:2176 ms10.2%
StaticFile.__init__whitenoise/responders.py:733 ms5.1%
StaticFile.get_headerswhitenoise/responders.py:1763 ms5.1%
StaticFile.__init__whitenoise/responders.py:773 ms5.1%
StaticFile.get_alternativeswhitenoise/responders.py:2013 ms5.1%
WhiteNoise.update_files_dictionarywhitenoise/base.py:11512 ms20.3%
scantreewhitenoise/base.py:27112 ms20.3%
scantreewhitenoise/base.py:2719 ms15.2%
scantreewhitenoise/base.py:2719 ms15.2%
scantreewhitenoise/base.py:2719 ms15.2%
scantreewhitenoise/base.py:2719 ms15.2%
scantreewhitenoise/base.py:2739 ms15.2%
ClientHandler.__call__django/test/client.py:1863 ms5.1%
BaseHandler.get_responsedjango/core/handlers/base.py:1423 ms5.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:563 ms5.1%
MiddlewareMixin.__call__django/utils/deprecation.py:3803 ms5.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:563 ms5.1%
MiddlewareMixin.__call__django/utils/deprecation.py:3803 ms5.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:563 ms5.1%
MiddlewareMixin.__call__django/utils/deprecation.py:3803 ms5.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:563 ms5.1%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:1233 ms5.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:563 ms5.1%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1453 ms5.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:563 ms5.1%
MiddlewareMixin.__call__django/utils/deprecation.py:3803 ms5.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:563 ms5.1%
MiddlewareMixin.__call__django/utils/deprecation.py:3803 ms5.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:563 ms5.1%
MiddlewareMixin.__call__django/utils/deprecation.py:3803 ms5.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:563 ms5.1%
MiddlewareMixin.__call__django/utils/deprecation.py:3803 ms5.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:563 ms5.1%
MiddlewareMixin.__call__django/utils/deprecation.py:3803 ms5.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:563 ms5.1%
MiddlewareMixin.__call__django/utils/deprecation.py:3803 ms5.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:563 ms5.1%
MiddlewareMixin.__call__django/utils/deprecation.py:3803 ms5.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:563 ms5.1%
BaseHandler._get_responsedjango/core/handlers/base.py:1993 ms5.1%
loginaccounts/views.py:280 return render(request, "login.html")3 ms5.1%
renderdjango/shortcuts.py:273 ms5.1%
render_to_stringdjango/template/loader.py:623 ms5.1%
Template.renderdjango/template/backends/django.py:1073 ms5.1%
Template.renderdjango/template/base.py:1753 ms5.1%
instrumented_test_renderdjango/test/utils.py:1133 ms5.1%
NodeList.renderdjango/template/base.py:11083 ms5.1%
Node.render_annotateddjango/template/base.py:10693 ms5.1%
ExtendsNode.renderdjango/template/loader_tags.py:1603 ms5.1%
instrumented_test_renderdjango/test/utils.py:1133 ms5.1%
NodeList.renderdjango/template/base.py:11083 ms5.1%
Node.render_annotateddjango/template/base.py:10693 ms5.1%
IfNode.renderdjango/template/defaulttags.py:3333 ms5.1%
NodeList.renderdjango/template/base.py:11083 ms5.1%
Node.render_annotateddjango/template/base.py:10693 ms5.1%
IncludeNode.renderdjango/template/loader_tags.py:2113 ms5.1%
Template.renderdjango/template/base.py:1773 ms5.1%
instrumented_test_renderdjango/test/utils.py:1133 ms5.1%
NodeList.renderdjango/template/base.py:11083 ms5.1%
Node.render_annotateddjango/template/base.py:10693 ms5.1%
URLNode.renderdjango/template/defaulttags.py:5113 ms5.1%
reversedjango/urls/base.py:983 ms5.1%
URLResolver._reverse_with_prefixdjango/urls/resolvers.py:7713 ms5.1%
TransactionTestCase._post_teardowndjango/test/testcases.py:1243 self._fixture_teardown()15 ms25.4%
TestCase._fixture_teardowndjango/test/testcases.py:15009 ms15.2%
TestCase._rollback_atomicsdjango/test/testcases.py:14076 ms10.2%
set_rollbackdjango/db/transaction.py:1093 ms5.1%
Atomic.__exit__django/db/transaction.py:2953 ms5.1%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:263 ms5.1%
BaseDatabaseWrapper.savepoint_rollbackdjango/db/backends/base/base.py:4133 ms5.1%
BaseDatabaseWrapper._savepoint_rollbackdjango/db/backends/base/base.py:3713 ms5.1%
CursorWrapper.executedjango/db/backends/utils.py:793 ms5.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms5.1%
CursorWrapper._executedjango/db/backends/utils.py:1033 ms5.1%
Cursor.executepsycopg/cursor.py:1133 ms5.1%
Connection.waitpsycopg/connection.py:4953 ms5.1%
BaseCursor._execute_genpsycopg/_cursor_base.py:2063 ms5.1%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2863 ms5.1%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:783 ms5.1%
TestCase._rollback_atomicsdjango/test/testcases.py:14083 ms5.1%
Atomic.__exit__django/db/transaction.py:2983 ms5.1%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:263 ms5.1%
BaseDatabaseWrapper.savepoint_commitdjango/db/backends/base/base.py:4313 ms5.1%
BaseDatabaseWrapper._savepoint_commitdjango/db/backends/base/base.py:3753 ms5.1%
CursorWrapper.executedjango/db/backends/utils.py:793 ms5.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms5.1%
CursorWrapper._executedjango/db/backends/utils.py:1033 ms5.1%
Cursor.executepsycopg/cursor.py:1133 ms5.1%
Connection.waitpsycopg/connection.py:4953 ms5.1%
BaseCursor._execute_genpsycopg/_cursor_base.py:2063 ms5.1%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2863 ms5.1%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:783 ms5.1%
TestCase._fixture_teardowndjango/test/testcases.py:14986 ms10.2%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4953 ms5.1%
CursorWrapper.executedjango/db/backends/utils.py:793 ms5.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms5.1%
CursorWrapper._executedjango/db/backends/utils.py:1033 ms5.1%
Cursor.executepsycopg/cursor.py:1133 ms5.1%
Connection.waitpsycopg/connection.py:4953 ms5.1%
BaseCursor._execute_genpsycopg/_cursor_base.py:2063 ms5.1%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2863 ms5.1%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:783 ms5.1%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4963 ms5.1%
CursorWrapper.executedjango/db/backends/utils.py:793 ms5.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms5.1%
CursorWrapper._executedjango/db/backends/utils.py:1033 ms5.1%
Cursor.executepsycopg/cursor.py:1133 ms5.1%
Connection.waitpsycopg/connection.py:4953 ms5.1%
BaseCursor._execute_genpsycopg/_cursor_base.py:2063 ms5.1%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2863 ms5.1%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:783 ms5.1%
TransactionTestCase._pre_setupdjango/test/testcases.py:1167 cls._fixture_setup()3 ms5.1%
TestCase._fixture_setupdjango/test/testcases.py:14813 ms5.1%
TestCase._enter_atomicsdjango/test/testcases.py:13993 ms5.1%
Atomic.__enter__django/db/transaction.py:2233 ms5.1%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:263 ms5.1%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4003 ms5.1%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3673 ms5.1%
CursorWrapper.executedjango/db/backends/utils.py:793 ms5.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms5.1%
CursorWrapper._executedjango/db/backends/utils.py:1033 ms5.1%
Cursor.executepsycopg/cursor.py:1133 ms5.1%
Connection.waitpsycopg/connection.py:4953 ms5.1%
BaseCursor._execute_genpsycopg/_cursor_base.py:2063 ms5.1%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:3123 ms5.1%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:783 ms5.1%
teardown4 ms7.2%
TestCase.tearDownClassdjango/test/testcases.py:1458 conn.close()4 ms7.2%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:264 ms7.2%
BaseDatabaseWrapper.closedjango/db/backends/base/base.py:3554 ms7.2%
DatabaseWrapper._closedjango/db/backends/postgresql/base.py:4084 ms7.2%
Connection.closepsycopg/connection.py:2014 ms7.2%
Estimated from 26 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

fedidevs/tests.py:111
response = self.client.get("/login/?q=")
TestAnonymousCacheAndCsrf.test_query_string_pages_are_not_noindexed · Libraries
27 ms
accounts/views.py:280
return render(request, "login.html")
login · Templates
3 ms

Fixtures

Exact setup time
_dj_autoclear_mailbox function 0.05 ms
_template_string_if_invalid_marker function 0.04 ms
_django_db_marker function 0.03 ms
_django_isolate_apps function 0.03 ms
_live_server_helper function 0.03 ms
_django_set_urlconf function 0.03 ms
_django_clear_site_cache function 0.02 ms
monkeypatch function 0.02 ms

Database

7 queries · 1 ms
No repeated queries.

Biggest pieces of work

call test body
fedidevs/tests.py:111
30 ms
call _post_teardown
django/test/testcases.py:1243
15 ms
call pytest internals 6 ms
teardown tearDownClass
django/test/testcases.py:1458
4 ms
call _pre_setup
django/test/testcases.py:1167
3 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 58 ms 28600ed main Profile
2 weeks, 5 days ago CI github-actions:test passed 208 ms 600b717 main Profile
2 weeks, 6 days ago CI github-actions:test passed 136 ms c28a326 main Profile
3 weeks ago CI github-actions:test passed 55 ms 9b8826a main Profile
3 weeks ago CI github-actions:test passed 155 ms 4f01055 main Profile
1 month ago CI github-actions:test passed 103 ms 8ab642e main Profile
1 month ago CI github-actions:test passed 144 ms 9b75244 main Profile
1 month ago CI github-actions:test passed 74 ms 9603516 main Profile
1 month, 1 week ago CI github-actions:test passed 102 ms 615a272 main Profile
1 month, 1 week ago CI github-actions:test passed 50 ms d923a46 main Profile
1 month, 1 week ago CI github-actions:test passed 261 ms 82997f8 main Profile
1 month, 1 week ago CI github-actions:test passed 180 ms 623aa3e main Profile
1 month, 1 week ago CI github-actions:test passed 161 ms ab6465a main Profile
1 month, 1 week ago CI github-actions:test passed 78 ms 0c23747 main Run