Tests / fedidevs/tests.py
TestAnonymousCacheAndCsrf::test_anonymous_post_without_csrf_is_rejected
First seen 3 weeks ago in 0c23747
CI
github-actions:test
11 runs
Average
138 ms
median 122 ms
max 269 ms
max 269 ms
Phases
Setup 10 ms
Call 128 ms
Teardown 0.38 ms
Categories
Database 18 ms
Other (Libraries, Templates, pytest, Imports, ...) 120 ms
7 database queries per run
Needs 92 KB of memory (max 972 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 7 hours ago ·
open run
setup2 ms1.8%
call120 ms98.0%
TestAnonymousCacheAndCsrf.test_anonymous_post_without_csrf_is_rejectedfedidevs/tests.py:81 client.get("/login/")111 ms90.7%
Client.getdjango/test/client.py:1133111 ms90.7%
RequestFactory.getdjango/test/client.py:475111 ms90.7%
RequestFactory.genericdjango/test/client.py:671111 ms90.7%
Client.requestdjango/test/client.py:1091111 ms90.7%
ClientHandler.__call__django/test/client.py:173111 ms90.7%
BaseHandler.load_middlewaredjango/core/handlers/base.py:63111 ms90.7%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:104111 ms90.7%
WhiteNoise.add_fileswhitenoise/base.py:108111 ms90.7%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12062 ms50.8%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13162 ms50.8%
WhiteNoise.get_static_filewhitenoise/base.py:21758 ms47.2%
StaticFile.__init__whitenoise/responders.py:7731 ms25.4%
StaticFile.get_alternativeswhitenoise/responders.py:20131 ms25.4%
Headers.__setitem__<stdlib>/wsgiref/headers.py:6231 ms25.4%
Headers.__delitem__<stdlib>/wsgiref/headers.py:7231 ms25.4%
<GC>~4 ms3.6%
StaticFile.__init__whitenoise/responders.py:7318 ms14.5%
StaticFile.get_headerswhitenoise/responders.py:1769 ms7.3%
formatdate<stdlib>/email/utils.py:2669 ms7.3%
format_datetime<stdlib>/email/utils.py:2849 ms7.3%
_format_timetuple_and_zone<stdlib>/email/utils.py:2319 ms7.3%
StaticFile.get_headerswhitenoise/responders.py:1714 ms3.6%
StaticFile.get_headerswhitenoise/responders.py:1784 ms3.6%
parsedate<stdlib>/email/_parseaddr.py:1854 ms3.6%
StaticFile.__init__whitenoise/responders.py:769 ms7.3%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1889 ms7.3%
Headers.__contains__<stdlib>/wsgiref/headers.py:854 ms3.6%
WhiteNoise.update_files_dictionarywhitenoise/base.py:11549 ms39.9%
scantreewhitenoise/base.py:27131 ms25.4%
scantreewhitenoise/base.py:27131 ms25.4%
scantreewhitenoise/base.py:27118 ms14.5%
scantreewhitenoise/base.py:27118 ms14.5%
scantreewhitenoise/base.py:27313 ms10.9%
scantreewhitenoise/base.py:2694 ms3.6%
scantreewhitenoise/base.py:2739 ms7.3%
scantreewhitenoise/base.py:2694 ms3.6%
scantreewhitenoise/base.py:2694 ms3.6%
scantreewhitenoise/base.py:2734 ms3.6%
Estimated from 28 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
fedidevs/tests.py:81
client.get("/login/")
TestAnonymousCacheAndCsrf.test_anonymous_post_without_csrf_is_rejected
· Libraries
|
111 ms |
Fixtures
Exact setup time| _django_isolate_apps function | 0.08 ms |
| _template_string_if_invalid_marker function | 0.06 ms |
| _dj_autoclear_mailbox function | 0.05 ms |
| _django_db_marker function | 0.05 ms |
| _django_set_urlconf function | 0.04 ms |
| _live_server_helper function | 0.04 ms |
| _django_clear_site_cache function | 0.03 ms |
| monkeypatch function | 0.02 ms |
Database
7 queries · 3 msNo repeated queries.
Biggest pieces of work
|
call test body
fedidevs/tests.py:81
|
111 ms |
| call pytest internals | 9 ms |
| setup pytest internals | 2 ms |
Reliability
12 results · 0 CI failures · 0 local failuresThis test hasn't failed recently.
History
Latest 12 results, oldest first in the strip| When | Environment | Outcome | Duration | |
|---|---|---|---|---|
| 7 hours ago | CI github-actions:test | passed | 122 ms | Profile |
| 16 hours ago | CI github-actions:test | passed | 81 ms | Profile |
| 22 hours ago | CI github-actions:test | passed | 102 ms | Profile |
| 1 week, 5 days ago | CI github-actions:test | passed | 87 ms | Profile |
| 2 weeks, 2 days ago | CI github-actions:test | passed | 65 ms | Profile |
| 2 weeks, 2 days ago | CI github-actions:test | passed | 141 ms | Profile |
| 2 weeks, 4 days ago | CI github-actions:test | passed | 124 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 85 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 252 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 186 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 269 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 140 ms | Run |