Tests / mastodon_auth/tests.py
MastodonAuthCallbackTests::test_unknown_state_is_logged_as_warning_not_error
First seen 13 hours ago in 0c23747
CI
github-actions:test
4 runs
Average
141 ms
median 145 ms
max 223 ms
max 223 ms
Phases
Setup 4 ms
Call 136 ms
Teardown 2 ms
Categories
Database 11 ms
Other (Libraries, pytest, Unsampled) 130 ms
5 database queries per run
Needs 25 KB of memory (max 68 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 8 hours ago ·
open run
call49 ms92.9%
MastodonAuthCallbackTests.test_unknown_state_is_logged_as_warning_not_errormastodon_auth/tests.py:621 response = self.client.get("/mastodon_auth/", {"code": "abc", "state": "never-cached"})47 ms88.7%
Client.getdjango/test/client.py:113347 ms88.7%
RequestFactory.getdjango/test/client.py:47547 ms88.7%
RequestFactory.genericdjango/test/client.py:67147 ms88.7%
Client.requestdjango/test/client.py:109147 ms88.7%
ClientHandler.__call__django/test/client.py:17347 ms88.7%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6347 ms88.7%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10447 ms88.7%
WhiteNoise.add_fileswhitenoise/base.py:10847 ms88.7%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12036 ms67.6%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13136 ms67.6%
WhiteNoise.get_static_filewhitenoise/base.py:21727 ms50.7%
StaticFile.__init__whitenoise/responders.py:779 ms16.9%
StaticFile.get_alternativeswhitenoise/responders.py:2007 ms12.7%
__init____init__:-17 ms12.7%
Headers.__init__<stdlib>/wsgiref/headers.py:434 ms8.4%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:504 ms8.4%
Headers.__init__<stdlib>/wsgiref/headers.py:422 ms4.2%
StaticFile.get_alternativeswhitenoise/responders.py:2032 ms4.2%
StaticFile.__init__whitenoise/responders.py:737 ms12.7%
StaticFile.get_headerswhitenoise/responders.py:1784 ms8.4%
parsedate<stdlib>/email/_parseaddr.py:1852 ms4.2%
Headers.__getitem__<stdlib>/wsgiref/headers.py:832 ms4.2%
StaticFile.get_headerswhitenoise/responders.py:1762 ms4.2%
StaticFile.__init__whitenoise/responders.py:724 ms8.4%
StaticFile.__init__whitenoise/responders.py:764 ms8.4%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1902 ms4.2%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1892 ms4.2%
Headers.__getitem__<stdlib>/wsgiref/headers.py:832 ms4.2%
Headers.get<stdlib>/wsgiref/headers.py:1042 ms4.2%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:502 ms4.2%
WhiteNoise.get_static_filewhitenoise/base.py:2127 ms12.7%
WhiteNoise.add_cache_headerswhitenoise/base.py:2334 ms8.4%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1762 ms4.2%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1972 ms4.2%
URLMixin.urldebug_toolbar/panels/staticfiles.py:202 ms4.2%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:2352 ms4.2%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:2162 ms4.2%
FileSystemStorage.urldjango/core/files/storage/filesystem.py:2072 ms4.2%
urljoin<stdlib>/urllib/parse.py:7652 ms4.2%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1732 ms4.2%
WhiteNoiseMiddleware.get_name_without_hashwhitenoise/middleware.py:1912 ms4.2%
splitext<frozen posixpath>:1252 ms4.2%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1159 ms16.9%
scantreewhitenoise/base.py:2717 ms12.7%
scantreewhitenoise/base.py:2714 ms8.4%
scantreewhitenoise/base.py:2714 ms8.4%
scantreewhitenoise/base.py:2714 ms8.4%
scantreewhitenoise/base.py:2692 ms4.2%
scantreewhitenoise/base.py:2712 ms4.2%
scantreewhitenoise/base.py:2732 ms4.2%
scantreewhitenoise/base.py:2732 ms4.2%
scantreewhitenoise/base.py:2732 ms4.2%
TransactionTestCase._post_teardowndjango/test/testcases.py:1243 self._fixture_teardown()2 ms4.2%
TestCase._fixture_teardowndjango/test/testcases.py:14972 ms4.2%
TestCase._should_check_constraintsdjango/test/testcases.py:15062 ms4.2%
DatabaseWrapper.is_usabledjango/db/backends/postgresql/base.py:5042 ms4.2%
Cursor.executepsycopg/cursor.py:1132 ms4.2%
Connection.waitpsycopg/connection.py:4952 ms4.2%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms4.2%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms4.2%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms4.2%
teardown3 ms5.8%
TestCase.tearDownClassdjango/test/testcases.py:1458 conn.close()3 ms5.8%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:263 ms5.8%
BaseDatabaseWrapper.closedjango/db/backends/base/base.py:3553 ms5.8%
DatabaseWrapper._closedjango/db/backends/postgresql/base.py:4083 ms5.8%
Connection.closepsycopg/connection.py:2013 ms5.8%
Estimated from 26 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
mastodon_auth/tests.py:621
response = self.client.get("/mastodon_auth/", {"code": "abc", "state": "never-cached"})
MastodonAuthCallbackTests.test_unknown_state_is_logged_as_warning_not_error
· Libraries
|
47 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.03 ms |
| _django_isolate_apps function | 0.03 ms |
| _live_server_helper function | 0.03 ms |
| _django_clear_site_cache function | 0.02 ms |
| _django_set_urlconf function | 0.02 ms |
| monkeypatch function | 0.02 ms |
Database
5 queries · 1 msNo repeated queries.
Biggest pieces of work
|
call test body
mastodon_auth/tests.py:621
|
47 ms |
|
teardown tearDownClass
django/test/testcases.py:1458
|
3 ms |
|
call _post_teardown
django/test/testcases.py:1243
|
2 ms |
Reliability
5 results · 0 CI failures · 0 local failuresThis test hasn't failed recently.
History
Latest 5 results, oldest first in the strip| When | Environment | Outcome | Duration | |
|---|---|---|---|---|
| 8 hours ago | CI github-actions:test | passed | 53 ms | Profile |
| 8 hours ago | CI github-actions:test | passed | 118 ms | Profile |
| 8 hours ago | CI github-actions:test | passed | 223 ms | Profile |
| 13 hours ago | CI github-actions:test | passed | 171 ms | Profile |
| 13 hours ago | CI github-actions:test | passed | 72 ms | Run |