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

MastodonAuthCallbackTests::test_pleroma_null_account_fields_are_coerced

First seen 3 months, 3 weeks ago in 5b9b309
CI github-actions:test 4 runs
Average
177 ms
median 205 ms
max 227 ms
Phases
Setup 2 ms Call 174 ms Teardown 0.32 ms
Categories
Database 30 ms Other (Mocking, Unsampled, Libraries, Cache, ...) 146 ms

33 database queries per run

Needs 209 KB of memory (max 300 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 8 hours ago · open run
Show pytest frames
setup0.87 ms1.3%
call68 ms98.4%
MastodonAuthCallbackTests.test_pleroma_null_account_fields_are_coercedmastodon_auth/tests.py:443 response = self.client.get("/mastodon_auth/", {"code": "abc", "state": state})59 ms86.4%
Client.getdjango/test/client.py:113359 ms86.4%
RequestFactory.getdjango/test/client.py:47559 ms86.4%
RequestFactory.genericdjango/test/client.py:67159 ms86.4%
Client.requestdjango/test/client.py:109159 ms86.4%
ClientHandler.__call__django/test/client.py:17341 ms60.0%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6341 ms60.0%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10440 ms57.6%
WhiteNoise.add_fileswhitenoise/base.py:10840 ms57.6%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12030 ms43.2%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13130 ms43.2%
WhiteNoise.get_static_filewhitenoise/base.py:21725 ms36.0%
StaticFile.__init__whitenoise/responders.py:7710 ms14.4%
StaticFile.get_alternativeswhitenoise/responders.py:2005 ms7.2%
__init____init__:-13 ms4.8%
Headers.__init__<stdlib>/wsgiref/headers.py:432 ms2.4%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:502 ms2.4%
Headers.__init__<stdlib>/wsgiref/headers.py:442 ms2.4%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:502 ms2.4%
StaticFile.get_alternativeswhitenoise/responders.py:2072 ms2.4%
Headers.items<stdlib>/wsgiref/headers.py:1392 ms2.4%
StaticFile.get_alternativeswhitenoise/responders.py:1982 ms2.4%
StaticFile.get_alternatives.<locals>.<lambda>whitenoise/responders.py:1982 ms2.4%
<GC>~2 ms2.4%
StaticFile.get_alternativeswhitenoise/responders.py:2012 ms2.4%
StaticFile.__init__whitenoise/responders.py:737 ms9.6%
StaticFile.get_headerswhitenoise/responders.py:1703 ms4.8%
Headers.__setitem__<stdlib>/wsgiref/headers.py:622 ms2.4%
Headers.__delitem__<stdlib>/wsgiref/headers.py:722 ms2.4%
StaticFile.get_headerswhitenoise/responders.py:1673 ms4.8%
__init____init__:-13 ms4.8%
Headers.__init__<stdlib>/wsgiref/headers.py:442 ms2.4%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:502 ms2.4%
Headers.__init__<stdlib>/wsgiref/headers.py:432 ms2.4%
StaticFile.__init__whitenoise/responders.py:765 ms7.2%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1883 ms4.8%
Headers.__contains__<stdlib>/wsgiref/headers.py:873 ms4.8%
Headers.get<stdlib>/wsgiref/headers.py:1042 ms2.4%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:482 ms2.4%
Headers.get<stdlib>/wsgiref/headers.py:1052 ms2.4%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1892 ms2.4%
Headers.__getitem__<stdlib>/wsgiref/headers.py:832 ms2.4%
Headers.get<stdlib>/wsgiref/headers.py:1062 ms2.4%
StaticFile.__init__whitenoise/responders.py:723 ms4.8%
StaticFile.get_file_statswhitenoise/responders.py:1613 ms4.8%
__init____init__:-13 ms4.8%
FileEntry.__init__whitenoise/responders.py:2633 ms4.8%
FileEntry.stat_regular_filewhitenoise/responders.py:2742 ms2.4%
FileEntry.stat_regular_filewhitenoise/responders.py:2672 ms2.4%
WhiteNoise.get_static_filewhitenoise/base.py:2125 ms7.2%
WhiteNoise.add_cache_headerswhitenoise/base.py:2335 ms7.2%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1763 ms4.8%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1973 ms4.8%
URLMixin.urldebug_toolbar/panels/staticfiles.py:203 ms4.8%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:2353 ms4.8%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:2142 ms2.4%
ManifestFilesMixin.stored_namedjango/contrib/staticfiles/storage.py:5982 ms2.4%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:2082 ms2.4%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1158 ms12.0%
scantreewhitenoise/base.py:2717 ms9.6%
scantreewhitenoise/base.py:2717 ms9.6%
scantreewhitenoise/base.py:2713 ms4.8%
scantreewhitenoise/base.py:2713 ms4.8%
scantreewhitenoise/base.py:2713 ms4.8%
scantreewhitenoise/base.py:2692 ms2.4%
scantreewhitenoise/base.py:2732 ms2.4%
<GC>~2 ms2.4%
scantreewhitenoise/base.py:2692 ms2.4%
scantreewhitenoise/base.py:2732 ms2.4%
scantreewhitenoise/base.py:2732 ms2.4%
SecurityMiddleware.__init__django/middleware/security.py:102 ms2.4%
MiddlewareMixin.__init__django/utils/deprecation.py:3562 ms2.4%
ClientHandler.__call__django/test/client.py:18618 ms26.4%
BaseHandler.get_responsedjango/core/handlers/base.py:14218 ms26.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5618 ms26.4%
MiddlewareMixin.__call__django/utils/deprecation.py:38018 ms26.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5618 ms26.4%
MiddlewareMixin.__call__django/utils/deprecation.py:38018 ms26.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5618 ms26.4%
MiddlewareMixin.__call__django/utils/deprecation.py:38018 ms26.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5618 ms26.4%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12318 ms26.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5618 ms26.4%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:14518 ms26.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5618 ms26.4%
MiddlewareMixin.__call__django/utils/deprecation.py:38016 ms24.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5616 ms24.0%
MiddlewareMixin.__call__django/utils/deprecation.py:38016 ms24.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5616 ms24.0%
MiddlewareMixin.__call__django/utils/deprecation.py:38016 ms24.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5616 ms24.0%
MiddlewareMixin.__call__django/utils/deprecation.py:38016 ms24.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5616 ms24.0%
MiddlewareMixin.__call__django/utils/deprecation.py:38016 ms24.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5616 ms24.0%
MiddlewareMixin.__call__django/utils/deprecation.py:38016 ms24.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5616 ms24.0%
MiddlewareMixin.__call__django/utils/deprecation.py:38016 ms24.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5616 ms24.0%
BaseHandler._get_responsedjango/core/handlers/base.py:19916 ms24.0%
authmastodon_auth/views.py:370 AccountAccess.objects.update_or_create(5 ms7.2%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:875 ms7.2%
QuerySet.update_or_createdjango/db/models/query.py:10963 ms4.8%
QuerySet.get_or_createdjango/db/models/query.py:10542 ms2.4%
QuerySet.getdjango/db/models/query.py:7022 ms2.4%
QuerySet.__len__django/db/models/query.py:4212 ms2.4%
QuerySet._fetch_alldjango/db/models/query.py:22622 ms2.4%
ModelIterable.__iter__django/db/models/query.py:1032 ms2.4%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16252 ms2.4%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.4%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.4%
QuerySet.get_or_createdjango/db/models/query.py:10592 ms2.4%
Atomic.__exit__django/db/transaction.py:2592 ms2.4%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms2.4%
BaseDatabaseWrapper.savepoint_commitdjango/db/backends/base/base.py:4312 ms2.4%
BaseDatabaseWrapper._savepoint_commitdjango/db/backends/base/base.py:3752 ms2.4%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.4%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.4%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms2.4%
Cursor.executepsycopg/cursor.py:1132 ms2.4%
Connection.waitpsycopg/connection.py:4952 ms2.4%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms2.4%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms2.4%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms2.4%
QuerySet.update_or_createdjango/db/models/query.py:10932 ms2.4%
Atomic.__enter__django/db/transaction.py:2232 ms2.4%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms2.4%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4002 ms2.4%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3672 ms2.4%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.4%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.4%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms2.4%
Cursor.executepsycopg/cursor.py:1132 ms2.4%
Connection.waitpsycopg/connection.py:4952 ms2.4%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms2.4%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms2.4%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms2.4%
authmastodon_auth/views.py:334 account, __ = Account.objects.update_or_create(3 ms4.8%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:873 ms4.8%
QuerySet.update_or_createdjango/db/models/query.py:10963 ms4.8%
QuerySet.get_or_createdjango/db/models/query.py:10542 ms2.4%
QuerySet.getdjango/db/models/query.py:7022 ms2.4%
QuerySet.__len__django/db/models/query.py:4212 ms2.4%
QuerySet._fetch_alldjango/db/models/query.py:22622 ms2.4%
ModelIterable.__iter__django/db/models/query.py:1032 ms2.4%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16232 ms2.4%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms2.4%
BaseDatabaseWrapper.cursordjango/db/backends/base/base.py:3202 ms2.4%
BaseDatabaseWrapper._cursordjango/db/backends/base/base.py:2982 ms2.4%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms2.4%
QuerySet.get_or_createdjango/db/models/query.py:10612 ms2.4%
QuerySet.createdjango/db/models/query.py:7362 ms2.4%
Model.savedjango/db/models/base.py:9042 ms2.4%
Model.save_basedjango/db/models/base.py:9962 ms2.4%
Model._save_tabledjango/db/models/base.py:11992 ms2.4%
Model._do_insertdjango/db/models/base.py:12512 ms2.4%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms2.4%
QuerySet._insertdjango/db/models/query.py:21412 ms2.4%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19362 ms2.4%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.4%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.4%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms2.4%
Cursor.executepsycopg/cursor.py:1132 ms2.4%
Connection.waitpsycopg/connection.py:4952 ms2.4%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms2.4%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms2.4%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms2.4%
authmastodon_auth/views.py:368 user, __ = User.objects.get_or_create(username=account.username_at_instance)3 ms4.8%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:873 ms4.8%
QuerySet.get_or_createdjango/db/models/query.py:10542 ms2.4%
QuerySet.getdjango/db/models/query.py:6922 ms2.4%
QuerySet.filterdjango/db/models/query.py:16762 ms2.4%
QuerySet._filter_or_excludedjango/db/models/query.py:16942 ms2.4%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:17042 ms2.4%
Query.add_qdjango/db/models/sql/query.py:16812 ms2.4%
Query._add_qdjango/db/models/sql/query.py:17092 ms2.4%
__init____init__:-12 ms2.4%
JoinPromoter.__init__django/db/models/sql/query.py:28282 ms2.4%
Counter.__init__<stdlib>/collections/__init__.py:6052 ms2.4%
QuerySet.get_or_createdjango/db/models/query.py:10592 ms2.4%
Atomic.__enter__django/db/transaction.py:2232 ms2.4%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms2.4%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4002 ms2.4%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3672 ms2.4%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.4%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.4%
authmastodon_auth/views.py:379 auth_login(request, user, backend=settings.AUTHENTICATION_BACKENDS[0])3 ms4.8%
logindjango/contrib/auth/__init__.py:1893 ms4.8%
SessionBase.cycle_keydjango/contrib/sessions/backends/base.py:4373 ms4.8%
SessionStore.createdjango/contrib/sessions/backends/db.py:702 ms2.4%
SessionBase._get_new_session_keydjango/contrib/sessions/backends/base.py:2012 ms2.4%
SessionStore.existsdjango/contrib/sessions/backends/db.py:632 ms2.4%
QuerySet.existsdjango/db/models/query.py:14582 ms2.4%
Query.has_resultsdjango/db/models/sql/query.py:6872 ms2.4%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15932 ms2.4%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16252 ms2.4%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.4%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.4%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms2.4%
Cursor.executepsycopg/cursor.py:1132 ms2.4%
Connection.waitpsycopg/connection.py:4952 ms2.4%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms2.4%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms2.4%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms2.4%
SessionStore.createdjango/contrib/sessions/backends/db.py:742 ms2.4%
SessionStore.savedjango/contrib/sessions/backends/db.py:1262 ms2.4%
Atomic.__exit__django/db/transaction.py:2592 ms2.4%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms2.4%
BaseDatabaseWrapper.savepoint_commitdjango/db/backends/base/base.py:4312 ms2.4%
BaseDatabaseWrapper._savepoint_commitdjango/db/backends/base/base.py:3752 ms2.4%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.4%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.4%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms2.4%
Cursor.executepsycopg/cursor.py:1132 ms2.4%
Connection.waitpsycopg/connection.py:4952 ms2.4%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms2.4%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms2.4%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms2.4%
authmastodon_auth/views.py:261 mastodon = Mastodon(2 ms2.4%
MiddlewareMixin.__call__django/utils/deprecation.py:3822 ms2.4%
SessionMiddleware.process_responsedjango/contrib/sessions/middleware.py:602 ms2.4%
SessionStore.savedjango/contrib/sessions/backends/db.py:1272 ms2.4%
Model.savedjango/db/models/base.py:9042 ms2.4%
Model.save_basedjango/db/models/base.py:9962 ms2.4%
Model._save_tabledjango/db/models/base.py:11402 ms2.4%
Model._do_updatedjango/db/models/base.py:12442 ms2.4%
QuerySet._updatedjango/db/models/query.py:14482 ms2.4%
SQLUpdateCompiler.execute_returning_sqldjango/db/models/sql/compiler.py:21502 ms2.4%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21212 ms2.4%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16252 ms2.4%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.4%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.4%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms2.4%
Cursor.executepsycopg/cursor.py:1132 ms2.4%
Connection.waitpsycopg/connection.py:4952 ms2.4%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms2.4%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms2.4%
MastodonAuthCallbackTests.test_pleroma_null_account_fields_are_coercedmastodon_auth/tests.py:414 instance = Instance.objects.create(2 ms2.4%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms2.4%
QuerySet.createdjango/db/models/query.py:7362 ms2.4%
Model.savedjango/db/models/base.py:9042 ms2.4%
Model.save_basedjango/db/models/base.py:9962 ms2.4%
Model._save_tabledjango/db/models/base.py:11992 ms2.4%
Model._do_insertdjango/db/models/base.py:12512 ms2.4%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms2.4%
QuerySet._insertdjango/db/models/query.py:21412 ms2.4%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19362 ms2.4%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.4%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.4%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms2.4%
Cursor.executepsycopg/cursor.py:1132 ms2.4%
Connection.waitpsycopg/connection.py:4952 ms2.4%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms2.4%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms2.4%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms2.4%
MastodonAuthCallbackTests.test_pleroma_null_account_fields_are_coercedmastodon_auth/tests.py:423 mastodon = MagicMock()2 ms2.4%
MagicMixin.__init__<stdlib>/unittest/mock.py:21822 ms2.4%
MagicMixin._mock_set_magics<stdlib>/unittest/mock.py:22052 ms2.4%
MastodonAuthCallbackTests.test_pleroma_null_account_fields_are_coercedmastodon_auth/tests.py:4422 ms2.4%
TestCase.captureOnCommitCallbacksdjango/test/testcases.py:15362 ms2.4%
auth.<locals>.<lambda>mastodon_auth/views.py:381 transaction.on_commit(lambda: sync_following.delay(user.id))2 ms2.4%
NonCallableMock.__getattr__<stdlib>/unittest/mock.py:7172 ms2.4%
NonCallableMock._get_child_mock<stdlib>/unittest/mock.py:10972 ms2.4%
NonCallableMock.__new__<stdlib>/unittest/mock.py:4602 ms2.4%
MastodonAuthCallbackTests.test_pleroma_null_account_fields_are_coercedmastodon_auth/tests.py:446 account = Account.objects.get(account_id="1")2 ms2.4%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms2.4%
QuerySet.getdjango/db/models/query.py:7022 ms2.4%
QuerySet.__len__django/db/models/query.py:4212 ms2.4%
QuerySet._fetch_alldjango/db/models/query.py:22622 ms2.4%
ModelIterable.__iter__django/db/models/query.py:1032 ms2.4%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16252 ms2.4%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.4%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.4%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms2.4%
Cursor.executepsycopg/cursor.py:1132 ms2.4%
Connection.waitpsycopg/connection.py:4952 ms2.4%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms2.4%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms2.4%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms2.4%
MastodonAuthCallbackTests.test_pleroma_null_account_fields_are_coercedmastodon_auth/tests.py:457 self.assertEqual(AccountAccess.objects.get().access_token, "the-token")2 ms2.4%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms2.4%
QuerySet.getdjango/db/models/query.py:7022 ms2.4%
QuerySet.__len__django/db/models/query.py:4212 ms2.4%
QuerySet._fetch_alldjango/db/models/query.py:22622 ms2.4%
ModelIterable.__iter__django/db/models/query.py:1032 ms2.4%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16252 ms2.4%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.4%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.4%
Estimated from 42 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

mastodon_auth/tests.py:443
response = self.client.get("/mastodon_auth/", {"code": "abc", "state": state})
MastodonAuthCallbackTests.test_pleroma_null_account_fields_are_coerced · Mocking
43 ms
mastodon_auth/views.py:370
AccountAccess.objects.update_or_create(
auth · Database
5 ms
mastodon_auth/views.py:334
account, __ = Account.objects.update_or_create(
auth · Database
3 ms
mastodon_auth/views.py:368
user, __ = User.objects.get_or_create(username=account.username_at_instance)
auth · Database
3 ms
mastodon_auth/views.py:379
auth_login(request, user, backend=settings.AUTHENTICATION_BACKENDS[0])
auth · Database
3 ms
mastodon_auth/tests.py:414
instance = Instance.objects.create(
MastodonAuthCallbackTests.test_pleroma_null_account_fields_are_coerced · Database
2 ms
mastodon_auth/tests.py:423
mastodon = MagicMock()
MastodonAuthCallbackTests.test_pleroma_null_account_fields_are_coerced · Mocking
2 ms
mastodon_auth/views.py:261
mastodon = Mastodon(
auth · Mocking
2 ms
mastodon_auth/views.py:381
transaction.on_commit(lambda: sync_following.delay(user.id))
auth.<locals>.<lambda> · Mocking
2 ms
mastodon_auth/tests.py:446
account = Account.objects.get(account_id="1")
MastodonAuthCallbackTests.test_pleroma_null_account_fields_are_coerced · Database
2 ms

Fixtures

Exact setup time
_dj_autoclear_mailbox function 0.05 ms
_template_string_if_invalid_marker function 0.04 ms
monkeypatch function 0.03 ms
_django_db_marker function 0.03 ms
_django_isolate_apps function 0.03 ms
_live_server_helper function 0.03 ms
_django_set_urlconf function 0.02 ms
_django_clear_site_cache function 0.02 ms

Database

33 queries · 9 ms
No repeated queries.

Biggest pieces of work

call test body
mastodon_auth/tests.py:414
68 ms
setup pytest internals 0.87 ms

Reliability

5 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
8 hours ago CI github-actions:test passed 69 ms d923a46 main Profile
8 hours ago CI github-actions:test passed 196 ms 82997f8 main Profile
9 hours ago CI github-actions:test passed 214 ms 623aa3e main Profile
13 hours ago CI github-actions:test passed 227 ms ab6465a main Profile
14 hours ago CI github-actions:test passed 94 ms 0c23747 main Run
3 months, 3 weeks ago CI github-actions passed 59 ms 69d78ea HEAD Run
3 months, 3 weeks ago CI github-actions passed 83 ms 8fac7b5 main Run
3 months, 3 weeks ago CI github-actions passed 83 ms 36b9579 main Run
3 months, 3 weeks ago CI github-actions passed 129 ms 553d048 main Run
3 months, 3 weeks ago CI github-actions passed 200 ms 8eb0f44 HEAD Run
3 months, 3 weeks ago CI github-actions passed 195 ms e0fb3ac HEAD Run
3 months, 3 weeks ago CI github-actions passed 186 ms a849b58 HEAD Run
3 months, 3 weeks ago CI github-actions passed 199 ms 6418e05 HEAD Run
3 months, 3 weeks ago CI github-actions passed 231 ms 5b9b309 main Run