Tests / fedidevs/tests.py
TestAnonymousCacheAndCsrf::test_plain_pages_are_indexable
First seen 1 month, 1 week ago in 0c23747
CI
github-actions:test
13 runs
Average
115 ms
median 119 ms
max 265 ms
max 265 ms
Phases
Setup 2 ms
Call 113 ms
Teardown 0.33 ms
Categories
Database 13 ms
Other (Libraries, Templates, pytest, Unsampled, ...) 102 ms
7 database queries per run
Needs 93 KB of memory (max 496 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 2 weeks ago ·
open run
setup0.95 ms1.5%
call61 ms98.1%
TestAnonymousCacheAndCsrf.test_plain_pages_are_indexablefedidevs/tests.py:117 response = self.client.get("/login/")34 ms53.7%
Client.getdjango/test/client.py:113334 ms53.7%
RequestFactory.getdjango/test/client.py:47534 ms53.7%
RequestFactory.genericdjango/test/client.py:67134 ms53.7%
Client.requestdjango/test/client.py:109134 ms53.7%
ClientHandler.__call__django/test/client.py:17334 ms53.7%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6334 ms53.7%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10434 ms53.7%
WhiteNoise.add_fileswhitenoise/base.py:10832 ms51.8%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12027 ms42.6%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13127 ms42.6%
WhiteNoise.get_static_filewhitenoise/base.py:21717 ms27.8%
StaticFile.__init__whitenoise/responders.py:7310 ms16.7%
StaticFile.get_headerswhitenoise/responders.py:1767 ms11.1%
formatdate<stdlib>/email/utils.py:2665 ms7.4%
format_datetime<stdlib>/email/utils.py:2842 ms3.7%
_format_timetuple_and_zone<stdlib>/email/utils.py:2311 ms1.9%
_format_timetuple_and_zone<stdlib>/email/utils.py:2321 ms1.9%
format_datetime<stdlib>/email/utils.py:2751 ms1.9%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:501 ms1.9%
formatdate<stdlib>/email/utils.py:2592 ms3.7%
StaticFile.get_headerswhitenoise/responders.py:1782 ms3.7%
parsedate<stdlib>/email/_parseaddr.py:1852 ms3.7%
parsedate_tz<stdlib>/email/_parseaddr.py:502 ms3.7%
_parsedate_tz<stdlib>/email/_parseaddr.py:1011 ms1.9%
_parsedate_tz<stdlib>/email/_parseaddr.py:1171 ms1.9%
StaticFile.get_headerswhitenoise/responders.py:1771 ms1.9%
Headers.__contains__<stdlib>/wsgiref/headers.py:871 ms1.9%
Headers.get<stdlib>/wsgiref/headers.py:1041 ms1.9%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:501 ms1.9%
StaticFile.__init__whitenoise/responders.py:722 ms3.7%
StaticFile.get_file_statswhitenoise/responders.py:1612 ms3.7%
__init____init__:-12 ms3.7%
FileEntry.__init__whitenoise/responders.py:2631 ms1.9%
FileEntry.stat_regular_filewhitenoise/responders.py:2761 ms1.9%
<GC>~1 ms1.9%
StaticFile.__init__whitenoise/responders.py:772 ms3.7%
StaticFile.get_alternativeswhitenoise/responders.py:1981 ms1.9%
StaticFile.get_alternatives.<locals>.<lambda>whitenoise/responders.py:1981 ms1.9%
<GC>~1 ms1.9%
StaticFile.get_alternativeswhitenoise/responders.py:2011 ms1.9%
Headers.__setitem__<stdlib>/wsgiref/headers.py:621 ms1.9%
Headers.__delitem__<stdlib>/wsgiref/headers.py:721 ms1.9%
StaticFile.__init__whitenoise/responders.py:741 ms1.9%
Headers.__getitem__<stdlib>/wsgiref/headers.py:831 ms1.9%
StaticFile.__init__whitenoise/responders.py:761 ms1.9%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1881 ms1.9%
Headers.__contains__<stdlib>/wsgiref/headers.py:871 ms1.9%
Headers.get<stdlib>/wsgiref/headers.py:1041 ms1.9%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:501 ms1.9%
WhiteNoise.get_static_filewhitenoise/base.py:2129 ms14.8%
WhiteNoise.add_cache_headerswhitenoise/base.py:2339 ms14.8%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1769 ms14.8%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1979 ms14.8%
URLMixin.urldebug_toolbar/panels/staticfiles.py:209 ms14.8%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:2358 ms13.0%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:2142 ms3.7%
ManifestFilesMixin.stored_namedjango/contrib/staticfiles/storage.py:6111 ms1.9%
urlunsplit<stdlib>/urllib/parse.py:6811 ms1.9%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:2072 ms3.7%
urldefrag<stdlib>/urllib/parse.py:7761 ms1.9%
_coerce_args<stdlib>/urllib/parse.py:1291 ms1.9%
urldefrag<stdlib>/urllib/parse.py:7841 ms1.9%
<lambda><string>:11 ms1.9%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:2082 ms3.7%
urlsplit<stdlib>/urllib/parse.py:5821 ms1.9%
_urlsplit<stdlib>/urllib/parse.py:6201 ms1.9%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:2161 ms1.9%
FileSystemStorage.urldjango/core/files/storage/filesystem.py:2071 ms1.9%
urljoin<stdlib>/urllib/parse.py:7481 ms1.9%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1156 ms9.3%
scantreewhitenoise/base.py:2716 ms9.3%
scantreewhitenoise/base.py:2715 ms7.4%
scantreewhitenoise/base.py:2732 ms3.7%
scantreewhitenoise/base.py:2712 ms3.7%
scantreewhitenoise/base.py:2712 ms3.7%
scantreewhitenoise/base.py:2712 ms3.7%
scantreewhitenoise/base.py:2732 ms3.7%
scantreewhitenoise/base.py:2731 ms1.9%
WhiteNoise.add_fileswhitenoise/base.py:981 ms1.9%
TransactionTestCase._post_teardowndjango/test/testcases.py:1243 self._fixture_teardown()28 ms44.4%
TestCase._fixture_teardowndjango/test/testcases.py:149828 ms44.4%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:49528 ms44.4%
CursorWrapper.executedjango/db/backends/utils.py:7928 ms44.4%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9228 ms44.4%
CursorWrapper._executedjango/db/backends/utils.py:10328 ms44.4%
Cursor.executepsycopg/cursor.py:11328 ms44.4%
Connection.waitpsycopg/connection.py:49528 ms44.4%
Estimated from 54 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
fedidevs/tests.py:117
response = self.client.get("/login/")
TestAnonymousCacheAndCsrf.test_plain_pages_are_indexable
· Libraries
|
34 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.04 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 |
| monkeypatch function | 0.02 ms |
Database
7 queries · 3 msNo repeated queries.
Biggest pieces of work
|
call test body
fedidevs/tests.py:117
|
34 ms |
|
call _post_teardown
django/test/testcases.py:1243
|
28 ms |
| setup pytest internals | 0.95 ms |
Reliability
14 results · 0 CI failures · 0 local failuresThis test hasn't failed recently.
History
Latest 14 results, oldest first in the strip| When | Environment | Outcome | Duration | |
|---|---|---|---|---|
| 2 weeks ago | CI github-actions:test | passed | 63 ms | Profile |
| 2 weeks, 5 days ago | CI github-actions:test | passed | 127 ms | Profile |
| 2 weeks, 6 days ago | CI github-actions:test | passed | 119 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 54 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 128 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 119 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 55 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 77 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 93 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 51 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 265 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 176 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 168 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 83 ms | Run |