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

TestAnonymousCacheAndCsrf::test_anonymous_html_is_publicly_cacheable_without_csrf_cookie

First seen 3 weeks ago in 0c23747
CI github-actions:test 11 runs
Average
150 ms
median 131 ms
max 335 ms
Phases
Setup 1 ms Call 107 ms Teardown 43 ms
Categories
Database 13 ms Test code 0.10 ms Other (Libraries, DB schema, pytest, Templates, ...) 137 ms

7 database queries per run

Needs 424 KB of memory (max 1 MB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 7 hours ago · open run
Show pytest frames
setup2 ms1.5%
__init____init__:-10.92 ms0.7%
call124 ms98.3%
TestAnonymousCacheAndCsrf.test_anonymous_html_is_publicly_cacheable_without_csrf_cookiefedidevs/tests.py:52 response = self.client.get("/login/")114 ms90.3%
Client.getdjango/test/client.py:1133114 ms90.3%
RequestFactory.getdjango/test/client.py:475114 ms90.3%
RequestFactory.genericdjango/test/client.py:671114 ms90.3%
Client.requestdjango/test/client.py:1091114 ms90.3%
ClientHandler.__call__django/test/client.py:173103 ms81.3%
BaseHandler.load_middlewaredjango/core/handlers/base.py:63102 ms80.3%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:104100 ms79.3%
WhiteNoise.add_fileswhitenoise/base.py:108100 ms79.3%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12025 ms20.1%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13124 ms19.1%
WhiteNoise.get_static_filewhitenoise/base.py:21720 ms16.1%
StaticFile.__init__whitenoise/responders.py:7210 ms8.0%
StaticFile.get_file_statswhitenoise/responders.py:16110 ms8.0%
__init____init__:-110 ms8.0%
FileEntry.__init__whitenoise/responders.py:26310 ms8.0%
FileEntry.stat_regular_filewhitenoise/responders.py:27610 ms8.0%
<GC>~10 ms8.0%
StaticFile.__init__whitenoise/responders.py:735 ms4.0%
StaticFile.get_headerswhitenoise/responders.py:1671 ms1.0%
StaticFile.get_headerswhitenoise/responders.py:1701 ms1.0%
StaticFile.get_headerswhitenoise/responders.py:1781 ms1.0%
parsedate<stdlib>/email/_parseaddr.py:1851 ms1.0%
parsedate_tz<stdlib>/email/_parseaddr.py:501 ms1.0%
_parsedate_tz<stdlib>/email/_parseaddr.py:811 ms1.0%
StaticFile.__init__whitenoise/responders.py:774 ms3.0%
StaticFile.get_alternativeswhitenoise/responders.py:2004 ms3.0%
__init____init__:-11 ms1.0%
Headers.__init__<stdlib>/wsgiref/headers.py:431 ms1.0%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:501 ms1.0%
StaticFile.__init__whitenoise/responders.py:761 ms1.0%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1891 ms1.0%
Headers.__getitem__<stdlib>/wsgiref/headers.py:831 ms1.0%
Headers.get<stdlib>/wsgiref/headers.py:1041 ms1.0%
WhiteNoise.get_static_filewhitenoise/base.py:2124 ms3.0%
WhiteNoise.add_cache_headerswhitenoise/base.py:2334 ms3.0%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1764 ms3.0%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1974 ms3.0%
URLMixin.urldebug_toolbar/panels/staticfiles.py:204 ms3.0%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:2353 ms2.0%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:2161 ms1.0%
FileSystemStorage.urldjango/core/files/storage/filesystem.py:2071 ms1.0%
urljoin<stdlib>/urllib/parse.py:7091 ms1.0%
_urlsplit<stdlib>/urllib/parse.py:5961 ms1.0%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:2141 ms1.0%
ManifestFilesMixin.stored_namedjango/contrib/staticfiles/storage.py:6111 ms1.0%
urlunsplit<stdlib>/urllib/parse.py:6671 ms1.0%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:1231 ms1.0%
WhiteNoise.is_compressed_variantwhitenoise/base.py:1981 ms1.0%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1159 ms7.0%
scantreewhitenoise/base.py:2719 ms7.0%
scantreewhitenoise/base.py:2719 ms7.0%
scantreewhitenoise/base.py:2716 ms5.0%
scantreewhitenoise/base.py:2715 ms4.0%
scantreewhitenoise/base.py:2715 ms4.0%
scantreewhitenoise/base.py:2735 ms4.0%
scantreewhitenoise/base.py:2691 ms1.0%
scantreewhitenoise/base.py:2731 ms1.0%
scantreewhitenoise/base.py:2691 ms1.0%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:1111 ms1.0%
WhiteNoise.add_fileswhitenoise/base.py:1081 ms1.0%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1201 ms1.0%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:1311 ms1.0%
WhiteNoise.get_static_filewhitenoise/base.py:2111 ms1.0%
BaseHandler.load_middlewaredjango/core/handlers/base.py:971 ms1.0%
convert_exception_to_responsedjango/core/handlers/exception.py:531 ms1.0%
wraps<stdlib>/functools.py:761 ms1.0%
ClientHandler.__call__django/test/client.py:18611 ms9.0%
BaseHandler.get_responsedjango/core/handlers/base.py:14211 ms9.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5611 ms9.0%
MiddlewareMixin.__call__django/utils/deprecation.py:38011 ms9.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5611 ms9.0%
MiddlewareMixin.__call__django/utils/deprecation.py:38011 ms9.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5611 ms9.0%
MiddlewareMixin.__call__django/utils/deprecation.py:38011 ms9.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5611 ms9.0%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12311 ms9.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5611 ms9.0%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:14511 ms9.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5611 ms9.0%
MiddlewareMixin.__call__django/utils/deprecation.py:38011 ms9.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5611 ms9.0%
MiddlewareMixin.__call__django/utils/deprecation.py:38011 ms9.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5611 ms9.0%
MiddlewareMixin.__call__django/utils/deprecation.py:38011 ms9.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5611 ms9.0%
MiddlewareMixin.__call__django/utils/deprecation.py:38011 ms9.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5611 ms9.0%
MiddlewareMixin.__call__django/utils/deprecation.py:38011 ms9.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5611 ms9.0%
MiddlewareMixin.__call__django/utils/deprecation.py:38011 ms9.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5611 ms9.0%
MiddlewareMixin.__call__django/utils/deprecation.py:38011 ms9.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5611 ms9.0%
BaseHandler._get_responsedjango/core/handlers/base.py:19911 ms9.0%
loginaccounts/views.py:280 return render(request, "login.html")11 ms9.0%
renderdjango/shortcuts.py:2711 ms9.0%
render_to_stringdjango/template/loader.py:6211 ms9.0%
Template.renderdjango/template/backends/django.py:10711 ms9.0%
Template.renderdjango/template/base.py:17511 ms9.0%
instrumented_test_renderdjango/test/utils.py:11311 ms9.0%
NodeList.renderdjango/template/base.py:110811 ms9.0%
Node.render_annotateddjango/template/base.py:106911 ms9.0%
ExtendsNode.renderdjango/template/loader_tags.py:16011 ms9.0%
instrumented_test_renderdjango/test/utils.py:11311 ms9.0%
NodeList.renderdjango/template/base.py:110811 ms9.0%
Node.render_annotateddjango/template/base.py:106911 ms9.0%
InclusionNode.renderdjango/template/library.py:3814 ms3.0%
tailwind_csstailwind/templatetags/tailwind_tags.py:204 ms3.0%
get_configtailwind/__init__.py:284 ms3.0%
LazySettings.__getattr__django/conf/__init__.py:1244 ms3.0%
IfNode.renderdjango/template/defaulttags.py:3263 ms2.0%
infix.<locals>.Operator.evaldjango/template/smartif.py:613 ms2.0%
<lambda>django/template/smartif.py:1063 ms2.0%
TemplateLiteral.evaldjango/template/defaulttags.py:9183 ms2.0%
FilterExpression.resolvedjango/template/base.py:8063 ms2.0%
Variable.resolvedjango/template/base.py:9453 ms2.0%
Variable._resolve_lookupdjango/template/base.py:10433 ms2.0%
BlockNode.renderdjango/template/loader_tags.py:663 ms2.0%
NodeList.renderdjango/template/base.py:11083 ms2.0%
Node.render_annotateddjango/template/base.py:10693 ms2.0%
WithNode.renderdjango/template/defaulttags.py:5813 ms2.0%
NodeList.renderdjango/template/base.py:11083 ms2.0%
Node.render_annotateddjango/template/base.py:10693 ms2.0%
IncludeNode.renderdjango/template/loader_tags.py:2113 ms2.0%
Template.renderdjango/template/base.py:1773 ms2.0%
instrumented_test_renderdjango/test/utils.py:1133 ms2.0%
NodeList.renderdjango/template/base.py:11083 ms2.0%
Node.render_annotateddjango/template/base.py:10693 ms2.0%
SimpleNode.renderdjango/template/library.py:3433 ms2.0%
instances_datalistaccounts/templatetags/account_extras.py:36 for instance in instances:3 ms2.0%
QuerySet.__iter__django/db/models/query.py:4393 ms2.0%
QuerySet._fetch_alldjango/db/models/query.py:22623 ms2.0%
FlatValuesListIterable.__iter__django/db/models/query.py:3023 ms2.0%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15743 ms2.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16253 ms2.0%
CursorWrapper.executedjango/db/backends/utils.py:793 ms2.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms2.0%
CursorWrapper._executedjango/db/backends/utils.py:1053 ms2.0%
Cursor.executepsycopg/cursor.py:1133 ms2.0%
Connection.waitpsycopg/connection.py:4953 ms2.0%
BaseCursor._execute_genpsycopg/_cursor_base.py:2063 ms2.0%
IfNode.renderdjango/template/defaulttags.py:3333 ms2.0%
NodeList.renderdjango/template/base.py:11083 ms2.0%
Node.render_annotateddjango/template/base.py:10693 ms2.0%
IncludeNode.renderdjango/template/loader_tags.py:2113 ms2.0%
Template.renderdjango/template/base.py:1773 ms2.0%
instrumented_test_renderdjango/test/utils.py:1133 ms2.0%
NodeList.renderdjango/template/base.py:11083 ms2.0%
Node.render_annotateddjango/template/base.py:10693 ms2.0%
SimpleNode.renderdjango/template/library.py:3433 ms2.0%
instances_datalistaccounts/templatetags/account_extras.py:36 for instance in instances:3 ms2.0%
QuerySet.__iter__django/db/models/query.py:4393 ms2.0%
QuerySet._fetch_alldjango/db/models/query.py:22623 ms2.0%
FlatValuesListIterable.__iter__django/db/models/query.py:3023 ms2.0%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15743 ms2.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16253 ms2.0%
CursorWrapper.executedjango/db/backends/utils.py:793 ms2.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms2.0%
CursorWrapper._executedjango/db/backends/utils.py:1053 ms2.0%
Cursor.executepsycopg/cursor.py:1133 ms2.0%
Connection.waitpsycopg/connection.py:4953 ms2.0%
TransactionTestCase._post_teardowndjango/test/testcases.py:1243 self._fixture_teardown()6 ms5.0%
TestCase._fixture_teardowndjango/test/testcases.py:14973 ms2.0%
TestCase._should_check_constraintsdjango/test/testcases.py:15063 ms2.0%
DatabaseWrapper.is_usabledjango/db/backends/postgresql/base.py:5043 ms2.0%
Cursor.executepsycopg/cursor.py:1133 ms2.0%
Connection.waitpsycopg/connection.py:4953 ms2.0%
TestCase._fixture_teardowndjango/test/testcases.py:15003 ms2.0%
TestCase._rollback_atomicsdjango/test/testcases.py:14083 ms2.0%
Atomic.__exit__django/db/transaction.py:2951 ms1.0%
Atomic.__exit__django/db/transaction.py:2981 ms1.0%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:261 ms1.0%
BaseDatabaseWrapper.savepoint_commitdjango/db/backends/base/base.py:4311 ms1.0%
BaseDatabaseWrapper._savepoint_commitdjango/db/backends/base/base.py:3751 ms1.0%
CursorWrapper.executedjango/db/backends/utils.py:791 ms1.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms1.0%
CursorWrapper._executedjango/db/backends/utils.py:1031 ms1.0%
Cursor.executepsycopg/cursor.py:1131 ms1.0%
Connection.waitpsycopg/connection.py:4951 ms1.0%
BaseCursor._execute_genpsycopg/_cursor_base.py:2061 ms1.0%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2861 ms1.0%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:781 ms1.0%
TestCase._fixture_teardowndjango/test/testcases.py:14981 ms1.0%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4951 ms1.0%
CursorWrapper.executedjango/db/backends/utils.py:791 ms1.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms1.0%
CursorWrapper._executedjango/db/backends/utils.py:1031 ms1.0%
Cursor.executepsycopg/cursor.py:1131 ms1.0%
Connection.waitpsycopg/connection.py:4951 ms1.0%
TestAnonymousCacheAndCsrf.test_anonymous_html_is_publicly_cacheable_without_csrf_cookiefedidevs/tests.py:59 self.assertContains(response, 'data-csrf-url="/csrf/"')3 ms2.0%
SimpleTestCase.assertContainsdjango/test/testcases.py:6063 ms2.0%
SimpleTestCase._assert_containsdjango/test/testcases.py:5933 ms2.0%
Estimated from 100 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

fedidevs/tests.py:52
response = self.client.get("/login/")
TestAnonymousCacheAndCsrf.test_anonymous_html_is_publicly_cacheable_without_csrf_cookie · Libraries
103 ms
accounts/views.py:280
return render(request, "login.html")
login · Templates
6 ms
accounts/templatetags/account_extras.py:36
for instance in instances:
instances_datalist · Database
5 ms
fedidevs/tests.py:59
self.assertContains(response, 'data-csrf-url="/csrf/"')
TestAnonymousCacheAndCsrf.test_anonymous_html_is_publicly_cacheable_without_csrf_cookie · Libraries
3 ms

Fixtures

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

Database

7 queries · 7 ms
No repeated queries.

Biggest pieces of work

call test body
fedidevs/tests.py:52
117 ms
call _post_teardown
django/test/testcases.py:1243
6 ms
call pytest internals 1 ms
setup pytest internals 0.92 ms
setup __init__
__init__:-1
0.92 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 127 ms c28a326 main Profile
16 hours ago CI github-actions:test passed 80 ms 9b8826a main Profile
22 hours ago CI github-actions:test passed 94 ms 4f01055 main Profile
1 week, 5 days ago CI github-actions:test passed 110 ms 8ab642e main Profile
2 weeks, 2 days ago CI github-actions:test passed 62 ms 9b75244 main Profile
2 weeks, 2 days ago CI github-actions:test passed 335 ms 9603516 main Profile
2 weeks, 4 days ago CI github-actions:test passed 131 ms 615a272 main Profile
3 weeks ago CI github-actions:test passed 195 ms d923a46 main Profile
3 weeks ago CI github-actions:test passed 138 ms 82997f8 main Profile
3 weeks ago CI github-actions:test passed 220 ms 623aa3e main Profile
3 weeks ago CI github-actions:test passed 161 ms ab6465a main Profile
3 weeks ago CI github-actions:test passed 48 ms 0c23747 main Run