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

MastodonAuthCallbackTests::test_missing_code_state_is_logged_at_error

First seen 5 months ago in 8fac7b5
CI github-actions:test 13 runs
Average
103 ms
median 107 ms
max 164 ms
Phases
Setup 1 ms Call 101 ms Teardown 0.32 ms
Categories
Database 3 ms Test code 0.08 ms Other (Libraries, pytest, Unsampled, Logging, ...) 100 ms

5 database queries per run

Needs 95 KB of memory (max 332 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 2 weeks ago · open run
Show pytest frames
call54 ms97.9%
MastodonAuthCallbackTests.test_missing_code_state_is_logged_at_errormastodon_auth/tests.py:696 response = self.client.get("/mastodon_auth/")52 ms93.4%
Client.getdjango/test/client.py:113352 ms93.4%
RequestFactory.getdjango/test/client.py:47552 ms93.4%
RequestFactory.genericdjango/test/client.py:67152 ms93.4%
Client.requestdjango/test/client.py:109152 ms93.4%
ClientHandler.__call__django/test/client.py:17351 ms91.2%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6351 ms91.2%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10451 ms91.2%
WhiteNoise.add_fileswhitenoise/base.py:10851 ms91.2%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12045 ms80.1%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13145 ms80.1%
WhiteNoise.get_static_filewhitenoise/base.py:21743 ms77.8%
StaticFile.__init__whitenoise/responders.py:7636 ms64.5%
StaticFile.get_not_modified_responsewhitenoise/responders.py:18832 ms57.8%
Headers.__contains__<stdlib>/wsgiref/headers.py:8732 ms57.8%
Headers.get<stdlib>/wsgiref/headers.py:10531 ms55.6%
Headers.get<stdlib>/wsgiref/headers.py:1041 ms2.2%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:501 ms2.2%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1902 ms4.4%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1891 ms2.2%
StaticFile.__init__whitenoise/responders.py:775 ms8.9%
StaticFile.get_alternativeswhitenoise/responders.py:2005 ms8.9%
__init____init__:-15 ms8.9%
Headers.__init__<stdlib>/wsgiref/headers.py:365 ms8.9%
<GC>~5 ms8.9%
StaticFile.__init__whitenoise/responders.py:731 ms2.2%
StaticFile.get_headerswhitenoise/responders.py:1771 ms2.2%
Headers.__contains__<stdlib>/wsgiref/headers.py:871 ms2.2%
Headers.get<stdlib>/wsgiref/headers.py:1041 ms2.2%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:501 ms2.2%
StaticFile.__init__whitenoise/responders.py:721 ms2.2%
StaticFile.get_file_statswhitenoise/responders.py:1591 ms2.2%
WhiteNoise.get_static_filewhitenoise/base.py:2121 ms2.2%
WhiteNoise.add_cache_headerswhitenoise/base.py:2331 ms2.2%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1761 ms2.2%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1971 ms2.2%
LazyObject.__getattribute__django/utils/functional.py:2801 ms2.2%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1155 ms8.9%
scantreewhitenoise/base.py:2715 ms8.9%
scantreewhitenoise/base.py:2714 ms6.7%
scantreewhitenoise/base.py:2734 ms6.7%
scantreewhitenoise/base.py:2691 ms2.2%
ClientHandler.__call__django/test/client.py:1861 ms2.2%
BaseHandler.get_responsedjango/core/handlers/base.py:1421 ms2.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:561 ms2.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3801 ms2.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:561 ms2.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3801 ms2.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:561 ms2.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3801 ms2.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:561 ms2.2%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:1231 ms2.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:561 ms2.2%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1451 ms2.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:561 ms2.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3801 ms2.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:561 ms2.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3801 ms2.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:561 ms2.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3791 ms2.2%
CommonMiddleware.process_requestdjango/middleware/common.py:481 ms2.2%
HttpRequest.get_hostdjango/http/request.py:1991 ms2.2%
split_domain_portdjango/http/request.py:8591 ms2.2%
TransactionTestCase._post_teardowndjango/test/testcases.py:1243 self._fixture_teardown()2 ms4.4%
TestCase._fixture_teardowndjango/test/testcases.py:14971 ms2.2%
TestCase._should_check_constraintsdjango/test/testcases.py:15061 ms2.2%
DatabaseWrapper.is_usabledjango/db/backends/postgresql/base.py:5041 ms2.2%
Cursor.executepsycopg/cursor.py:1131 ms2.2%
Connection.waitpsycopg/connection.py:4951 ms2.2%
BaseCursor._execute_genpsycopg/_cursor_base.py:2061 ms2.2%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2861 ms2.2%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:781 ms2.2%
TestCase._fixture_teardowndjango/test/testcases.py:15001 ms2.2%
TestCase._rollback_atomicsdjango/test/testcases.py:14081 ms2.2%
Atomic.__exit__django/db/transaction.py:2951 ms2.2%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:261 ms2.2%
BaseDatabaseWrapper.savepoint_rollbackdjango/db/backends/base/base.py:4131 ms2.2%
BaseDatabaseWrapper._savepoint_rollbackdjango/db/backends/base/base.py:3711 ms2.2%
CursorWrapper.executedjango/db/backends/utils.py:791 ms2.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms2.2%
CursorWrapper._executedjango/db/backends/utils.py:1031 ms2.2%
Cursor.executepsycopg/cursor.py:1131 ms2.2%
Connection.waitpsycopg/connection.py:4951 ms2.2%
BaseCursor._execute_genpsycopg/_cursor_base.py:2061 ms2.2%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2861 ms2.2%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:781 ms2.2%
teardown0.42 ms0.8%
Estimated from 45 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

mastodon_auth/tests.py:696
response = self.client.get("/mastodon_auth/")
MastodonAuthCallbackTests.test_missing_code_state_is_logged_at_error · Libraries
52 ms

Fixtures

Exact setup time
_template_string_if_invalid_marker function 0.05 ms
_dj_autoclear_mailbox function 0.05 ms
_django_db_marker function 0.03 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

5 queries · 0.83 ms
No repeated queries.

Biggest pieces of work

call test body
mastodon_auth/tests.py:696
52 ms
call _post_teardown
django/test/testcases.py:1243
2 ms
teardown pytest internals 0.42 ms

Reliability

14 results · 0 CI failures · 0 local failures

This test hasn't failed recently.

History

Latest 14 results, oldest first in the strip
When Environment Outcome Duration Commit
2 weeks ago CI github-actions:test passed 56 ms 28600ed main Profile
2 weeks, 5 days ago CI github-actions:test passed 107 ms 600b717 main Profile
2 weeks, 6 days ago CI github-actions:test passed 150 ms c28a326 main Profile
3 weeks ago CI github-actions:test passed 38 ms 9b8826a main Profile
3 weeks ago CI github-actions:test passed 158 ms 4f01055 main Profile
1 month ago CI github-actions:test passed 79 ms 8ab642e main Profile
1 month ago CI github-actions:test passed 120 ms 9b75244 main Profile
1 month ago CI github-actions:test passed 74 ms 9603516 main Profile
1 month, 1 week ago CI github-actions:test passed 79 ms 615a272 main Profile
1 month, 1 week ago CI github-actions:test passed 42 ms d923a46 main Profile
1 month, 1 week ago CI github-actions:test passed 155 ms 82997f8 main Profile
1 month, 1 week ago CI github-actions:test passed 164 ms 623aa3e main Profile
1 month, 1 week ago CI github-actions:test passed 115 ms ab6465a main Profile
1 month, 1 week ago CI github-actions:test passed 64 ms 0c23747 main Run