Tests / mastodon_auth/tests.py
MastodonAuthCallbackTests::test_unknown_state_is_logged_as_warning_not_error
First seen 1 month, 1 week ago in 0c23747
CI
github-actions:test
13 runs
Average
95 ms
median 78 ms
max 223 ms
max 223 ms
Phases
Setup 2 ms
Call 90 ms
Teardown 3 ms
Categories
Database 8 ms
Test code 2 ms
Other (Libraries, Unsampled, pytest, Logging) 86 ms
5 database queries per run
Needs 310 KB of memory (max 724 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 2 weeks ago ·
open run
setup0.71 ms1.5%
__init____init__:-10.71 ms1.5%
signature<stdlib>/inspect.py:33430.71 ms1.5%
Signature.from_callable<stdlib>/inspect.py:30580.71 ms1.5%
_signature_from_callable<stdlib>/inspect.py:25280.71 ms1.5%
call43 ms94.2%
MastodonAuthCallbackTests.test_unknown_state_is_logged_as_warning_not_errormastodon_auth/tests.py:707 response = self.client.get("/mastodon_auth/", {"code": "abc", "state": "never-cached"})43 ms94.2%
Client.getdjango/test/client.py:113343 ms94.2%
RequestFactory.getdjango/test/client.py:47543 ms94.2%
RequestFactory.genericdjango/test/client.py:67143 ms94.2%
Client.requestdjango/test/client.py:109143 ms94.2%
ClientHandler.__call__django/test/client.py:17343 ms94.2%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6343 ms94.2%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10443 ms94.2%
WhiteNoise.add_fileswhitenoise/base.py:10843 ms94.2%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12033 ms70.6%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13133 ms70.6%
WhiteNoise.get_static_filewhitenoise/base.py:21225 ms54.9%
WhiteNoise.add_cache_headerswhitenoise/base.py:23325 ms54.9%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:17625 ms54.9%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:19722 ms47.1%
URLMixin.urldebug_toolbar/panels/staticfiles.py:2022 ms47.1%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:23522 ms47.1%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:20822 ms47.1%
urlsplit<stdlib>/urllib/parse.py:58222 ms47.1%
_urlsplit<stdlib>/urllib/parse.py:59822 ms47.1%
WhiteNoise.get_static_filewhitenoise/base.py:2177 ms15.7%
StaticFile.__init__whitenoise/responders.py:774 ms7.8%
WhiteNoise.update_files_dictionarywhitenoise/base.py:11511 ms23.5%
scantreewhitenoise/base.py:27111 ms23.5%
scantreewhitenoise/base.py:2717 ms15.7%
scantreewhitenoise/base.py:2734 ms7.8%
scantreewhitenoise/base.py:2714 ms7.8%
scantreewhitenoise/base.py:2714 ms7.8%
scantreewhitenoise/base.py:2714 ms7.8%
scantreewhitenoise/base.py:2734 ms7.8%
scantreewhitenoise/base.py:2734 ms7.8%
Estimated from 13 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
mastodon_auth/tests.py:707
response = self.client.get("/mastodon_auth/", {"code": "abc", "state": "never-cached"})
MastodonAuthCallbackTests.test_unknown_state_is_logged_as_warning_not_error
· Libraries
|
43 ms |
Fixtures
Exact setup time| _dj_autoclear_mailbox function | 0.11 ms |
| _template_string_if_invalid_marker function | 0.03 ms |
| _django_db_marker function | 0.03 ms |
| _django_isolate_apps function | 0.03 ms |
| _django_set_urlconf function | 0.02 ms |
| _live_server_helper function | 0.02 ms |
| _django_clear_site_cache function | 0.02 ms |
| monkeypatch function | 0.02 ms |
Database
5 queries · 0.52 msNo repeated queries.
Biggest pieces of work
|
call test body
mastodon_auth/tests.py:707
|
43 ms |
|
setup __init__
__init__:-1
|
0.71 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 | 46 ms | Profile |
| 2 weeks, 5 days ago | CI github-actions:test | passed | 71 ms | Profile |
| 2 weeks, 6 days ago | CI github-actions:test | passed | 90 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 52 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 118 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 78 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 60 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 87 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 73 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 53 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 118 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 223 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 171 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 72 ms | Run |