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

TestAnonymousCacheAndCsrf::test_anonymous_html_is_publicly_cacheable_without_csrf_cookie

First seen 12 hours ago in 0c23747
CI github-actions:test 4 runs
Average
179 ms
median 178 ms
max 220 ms
Phases
Setup 1 ms Call 140 ms Teardown 37 ms
Categories
Database 12 ms Test code 0.28 ms Other (Libraries, pytest, DB schema, Templates, ...) 167 ms

8 database queries per run

Needs 626 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
call193 ms99.1%
TestAnonymousCacheAndCsrf.test_anonymous_html_is_publicly_cacheable_without_csrf_cookiefedidevs/tests.py:51 response = self.client.get("/login/")59 ms30.5%
Client.getdjango/test/client.py:113359 ms30.5%
RequestFactory.getdjango/test/client.py:47559 ms30.5%
RequestFactory.genericdjango/test/client.py:67159 ms30.5%
Client.requestdjango/test/client.py:109159 ms30.5%
ClientHandler.__call__django/test/client.py:17357 ms29.4%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6357 ms29.4%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10457 ms29.4%
WhiteNoise.add_fileswhitenoise/base.py:10857 ms29.4%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12048 ms24.5%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13147 ms24.0%
WhiteNoise.get_static_filewhitenoise/base.py:21735 ms18.0%
StaticFile.__init__whitenoise/responders.py:7216 ms8.2%
StaticFile.get_file_statswhitenoise/responders.py:16312 ms6.0%
<GC>~12 ms6.0%
StaticFile.get_file_statswhitenoise/responders.py:1613 ms1.6%
__init____init__:-13 ms1.6%
FileEntry.__init__whitenoise/responders.py:2632 ms1.1%
FileEntry.stat_regular_filewhitenoise/responders.py:2751 ms0.5%
FileEntry.stat_regular_filewhitenoise/responders.py:2761 ms0.5%
<GC>~1 ms0.5%
FileEntry.__init__whitenoise/responders.py:2601 ms0.5%
<GC>~1 ms0.5%
StaticFile.__init__whitenoise/responders.py:7711 ms5.4%
StaticFile.get_alternativeswhitenoise/responders.py:2004 ms2.2%
__init____init__:-13 ms1.6%
Headers.__init__<stdlib>/wsgiref/headers.py:432 ms1.1%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:501 ms0.5%
Headers.__init__<stdlib>/wsgiref/headers.py:441 ms0.5%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:501 ms0.5%
StaticFile.get_alternativeswhitenoise/responders.py:1982 ms1.1%
StaticFile.get_alternativeswhitenoise/responders.py:2012 ms1.1%
Headers.__setitem__<stdlib>/wsgiref/headers.py:641 ms0.5%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:461 ms0.5%
Headers.__setitem__<stdlib>/wsgiref/headers.py:621 ms0.5%
Headers.__delitem__<stdlib>/wsgiref/headers.py:711 ms0.5%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:481 ms0.5%
StaticFile.get_alternativeswhitenoise/responders.py:2071 ms0.5%
Headers.items<stdlib>/wsgiref/headers.py:1311 ms0.5%
StaticFile.get_alternativeswhitenoise/responders.py:2031 ms0.5%
StaticFile.__init__whitenoise/responders.py:735 ms2.7%
StaticFile.get_headerswhitenoise/responders.py:1811 ms0.5%
Headers.__setitem__<stdlib>/wsgiref/headers.py:641 ms0.5%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:501 ms0.5%
StaticFile.get_headerswhitenoise/responders.py:1781 ms0.5%
parsedate<stdlib>/email/_parseaddr.py:1851 ms0.5%
parsedate_tz<stdlib>/email/_parseaddr.py:501 ms0.5%
_parsedate_tz<stdlib>/email/_parseaddr.py:1101 ms0.5%
StaticFile.get_headerswhitenoise/responders.py:1771 ms0.5%
Headers.__contains__<stdlib>/wsgiref/headers.py:871 ms0.5%
StaticFile.get_headerswhitenoise/responders.py:1761 ms0.5%
formatdate<stdlib>/email/utils.py:2661 ms0.5%
format_datetime<stdlib>/email/utils.py:2751 ms0.5%
StaticFile.get_headerswhitenoise/responders.py:1671 ms0.5%
StaticFile.__init__whitenoise/responders.py:762 ms1.1%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1882 ms1.1%
Headers.__contains__<stdlib>/wsgiref/headers.py:872 ms1.1%
Headers.get<stdlib>/wsgiref/headers.py:1041 ms0.5%
WhiteNoise.get_static_filewhitenoise/base.py:2128 ms4.4%
WhiteNoise.add_cache_headerswhitenoise/base.py:2337 ms3.8%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1766 ms3.3%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1976 ms3.3%
URLMixin.urldebug_toolbar/panels/staticfiles.py:203 ms1.6%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:2353 ms1.6%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:2162 ms1.1%
FileSystemStorage.urldjango/core/files/storage/filesystem.py:2072 ms1.1%
urljoin<stdlib>/urllib/parse.py:7071 ms0.5%
_urlsplit<stdlib>/urllib/parse.py:5981 ms0.5%
urljoin<stdlib>/urllib/parse.py:7091 ms0.5%
_urlsplit<stdlib>/urllib/parse.py:5981 ms0.5%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:2081 ms0.5%
URLMixin.urldebug_toolbar/panels/staticfiles.py:261 ms0.5%
new_method_proxy.<locals>.innerdjango/utils/functional.py:2501 ms0.5%
LazyObject.__getattribute__django/utils/functional.py:2791 ms0.5%
new_method_proxy.<locals>.innerdjango/utils/functional.py:2531 ms0.5%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1731 ms0.5%
WhiteNoiseMiddleware.get_name_without_hashwhitenoise/middleware.py:1921 ms0.5%
WhiteNoise.add_cache_headerswhitenoise/base.py:2341 ms0.5%
Headers.__setitem__<stdlib>/wsgiref/headers.py:641 ms0.5%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:501 ms0.5%
WhiteNoise.get_static_filewhitenoise/base.py:2112 ms1.1%
WhiteNoise.add_mime_headerswhitenoise/base.py:2301 ms0.5%
Headers.add_header<stdlib>/wsgiref/headers.py:1911 ms0.5%
_formatparam<stdlib>/wsgiref/headers.py:251 ms0.5%
WhiteNoise.add_mime_headerswhitenoise/base.py:2251 ms0.5%
MediaTypes.get_typewhitenoise/media_types.py:161 ms0.5%
WhiteNoise.get_static_filewhitenoise/base.py:2191 ms0.5%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:1251 ms0.5%
WhiteNoise.update_files_dictionarywhitenoise/base.py:11510 ms4.9%
scantreewhitenoise/base.py:27110 ms4.9%
scantreewhitenoise/base.py:2718 ms4.4%
scantreewhitenoise/base.py:2715 ms2.7%
scantreewhitenoise/base.py:2715 ms2.7%
scantreewhitenoise/base.py:2714 ms2.2%
scantreewhitenoise/base.py:2734 ms2.2%
scantreewhitenoise/base.py:2731 ms0.5%
scantreewhitenoise/base.py:2733 ms1.6%
scantreewhitenoise/base.py:2731 ms0.5%
ClientHandler.__call__django/test/client.py:1862 ms1.1%
BaseHandler.get_responsedjango/core/handlers/base.py:1422 ms1.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:562 ms1.1%
MiddlewareMixin.__call__django/utils/deprecation.py:3802 ms1.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:561 ms0.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3801 ms0.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:561 ms0.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3801 ms0.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:561 ms0.5%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:1231 ms0.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:561 ms0.5%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1451 ms0.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:561 ms0.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3801 ms0.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:561 ms0.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3801 ms0.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:561 ms0.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3801 ms0.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:561 ms0.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3801 ms0.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:561 ms0.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3801 ms0.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:561 ms0.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3801 ms0.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:561 ms0.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3801 ms0.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:561 ms0.5%
BaseHandler._get_responsedjango/core/handlers/base.py:1991 ms0.5%
loginaccounts/views.py:280 return render(request, "login.html")1 ms0.5%
renderdjango/shortcuts.py:271 ms0.5%
render_to_stringdjango/template/loader.py:621 ms0.5%
Template.renderdjango/template/backends/django.py:1071 ms0.5%
Template.renderdjango/template/base.py:1751 ms0.5%
instrumented_test_renderdjango/test/utils.py:1131 ms0.5%
NodeList.renderdjango/template/base.py:11081 ms0.5%
Node.render_annotateddjango/template/base.py:10691 ms0.5%
ExtendsNode.renderdjango/template/loader_tags.py:1601 ms0.5%
instrumented_test_renderdjango/test/utils.py:1131 ms0.5%
NodeList.renderdjango/template/base.py:11081 ms0.5%
Node.render_annotateddjango/template/base.py:10691 ms0.5%
IfNode.renderdjango/template/defaulttags.py:3331 ms0.5%
NodeList.renderdjango/template/base.py:11081 ms0.5%
Node.render_annotateddjango/template/base.py:10691 ms0.5%
IncludeNode.renderdjango/template/loader_tags.py:2111 ms0.5%
Template.renderdjango/template/base.py:1771 ms0.5%
instrumented_test_renderdjango/test/utils.py:1131 ms0.5%
NodeList.renderdjango/template/base.py:11081 ms0.5%
Node.render_annotateddjango/template/base.py:10691 ms0.5%
SimpleNode.renderdjango/template/library.py:3431 ms0.5%
instances_datalistaccounts/templatetags/account_extras.py:36 for instance in instances:1 ms0.5%
QuerySet.__iter__django/db/models/query.py:4391 ms0.5%
QuerySet._fetch_alldjango/db/models/query.py:22621 ms0.5%
FlatValuesListIterable.__iter__django/db/models/query.py:3021 ms0.5%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15741 ms0.5%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16121 ms0.5%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7681 ms0.5%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:891 ms0.5%
TestAnonymousCacheAndCsrf.test_anonymous_html_is_publicly_cacheable_without_csrf_cookiefedidevs/tests.py:551 ms0.5%
_vary_tokensfedidevs/tests.py:6 def _vary_tokens(response) -> set[str]:1 ms0.5%
teardown0.93 ms0.5%
Estimated from 183 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

fedidevs/tests.py:51
response = self.client.get("/login/")
TestAnonymousCacheAndCsrf.test_anonymous_html_is_publicly_cacheable_without_csrf_cookie · Libraries
58 ms
accounts/templatetags/account_extras.py:36
for instance in instances:
instances_datalist · Database
1 ms
fedidevs/tests.py:6
def _vary_tokens(response) -> set[str]:
_vary_tokens · Test code
1 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
_live_server_helper function 0.03 ms
_django_set_urlconf function 0.02 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 pytest internals 133 ms
call test body
fedidevs/tests.py:51
60 ms
teardown tearDownClass
django/test/testcases.py:1456
0.93 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
7 hours ago CI github-actions:test passed 195 ms d923a46 main Profile
7 hours ago CI github-actions:test passed 138 ms 82997f8 main Profile
7 hours ago CI github-actions:test passed 220 ms 623aa3e main Profile
12 hours ago CI github-actions:test passed 161 ms ab6465a main Profile
12 hours ago CI github-actions:test passed 48 ms 0c23747 main Run