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

MastodonAuthCallbackTests::test_pleroma_null_account_fields_are_coerced

First seen 5 months, 1 week ago in 5b9b309
CI github-actions:test 13 runs
Average
123 ms
median 103 ms
max 227 ms
Phases
Setup 1 ms Call 121 ms Teardown 0.33 ms
Categories
Database 28 ms Other (Mocking, Cache, Unsampled, pytest, ...) 95 ms

33 database queries per run

Needs 357 KB of memory (max 776 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 2 weeks ago · open run
Show pytest frames
setup0.80 ms1.1%
call68 ms98.5%
MastodonAuthCallbackTests.test_pleroma_null_account_fields_are_coercedmastodon_auth/tests.py:529 response = self.client.get("/mastodon_auth/", {"code": "abc", "state": state})62 ms89.8%
Client.getdjango/test/client.py:113362 ms89.8%
RequestFactory.getdjango/test/client.py:47562 ms89.8%
RequestFactory.genericdjango/test/client.py:67162 ms89.8%
Client.requestdjango/test/client.py:109162 ms89.8%
ClientHandler.__call__django/test/client.py:17346 ms66.6%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6346 ms66.6%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10445 ms65.2%
WhiteNoise.add_fileswhitenoise/base.py:10845 ms65.2%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12040 ms58.0%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13140 ms58.0%
WhiteNoise.get_static_filewhitenoise/base.py:21734 ms49.3%
StaticFile.__init__whitenoise/responders.py:7314 ms20.3%
StaticFile.get_headerswhitenoise/responders.py:1764 ms5.8%
formatdate<stdlib>/email/utils.py:2664 ms5.8%
format_datetime<stdlib>/email/utils.py:2753 ms4.3%
format_datetime<stdlib>/email/utils.py:2841 ms1.4%
_format_timetuple_and_zone<stdlib>/email/utils.py:2341 ms1.4%
StaticFile.get_headerswhitenoise/responders.py:1783 ms4.3%
parsedate<stdlib>/email/_parseaddr.py:1853 ms4.3%
parsedate_tz<stdlib>/email/_parseaddr.py:503 ms4.3%
_parsedate_tz<stdlib>/email/_parseaddr.py:1802 ms2.9%
_parsedate_tz<stdlib>/email/_parseaddr.py:1051 ms1.4%
StaticFile.get_headerswhitenoise/responders.py:1813 ms4.3%
Headers.__setitem__<stdlib>/wsgiref/headers.py:642 ms2.9%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:481 ms1.4%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:501 ms1.4%
Headers.__setitem__<stdlib>/wsgiref/headers.py:621 ms1.4%
Headers.__delitem__<stdlib>/wsgiref/headers.py:721 ms1.4%
StaticFile.get_headerswhitenoise/responders.py:1672 ms2.9%
__init____init__:-12 ms2.9%
Headers.__init__<stdlib>/wsgiref/headers.py:432 ms2.9%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:502 ms2.9%
StaticFile.get_headerswhitenoise/responders.py:1701 ms1.4%
Headers.__setitem__<stdlib>/wsgiref/headers.py:641 ms1.4%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:501 ms1.4%
StaticFile.get_headerswhitenoise/responders.py:1711 ms1.4%
Headers.__contains__<stdlib>/wsgiref/headers.py:871 ms1.4%
Headers.get<stdlib>/wsgiref/headers.py:1041 ms1.4%
StaticFile.__init__whitenoise/responders.py:779 ms13.0%
StaticFile.get_alternativeswhitenoise/responders.py:2003 ms4.3%
__init____init__:-13 ms4.3%
Headers.__init__<stdlib>/wsgiref/headers.py:442 ms2.9%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:502 ms2.9%
Headers.__init__<stdlib>/wsgiref/headers.py:431 ms1.4%
StaticFile.get_alternativeswhitenoise/responders.py:2013 ms4.3%
Headers.__setitem__<stdlib>/wsgiref/headers.py:621 ms1.4%
Headers.__delitem__<stdlib>/wsgiref/headers.py:721 ms1.4%
StaticFile.get_alternativeswhitenoise/responders.py:2071 ms1.4%
StaticFile.get_alternativeswhitenoise/responders.py:2031 ms1.4%
Headers.__setitem__<stdlib>/wsgiref/headers.py:641 ms1.4%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:501 ms1.4%
StaticFile.get_alternativeswhitenoise/responders.py:1981 ms1.4%
StaticFile.__init__whitenoise/responders.py:724 ms5.8%
StaticFile.get_file_statswhitenoise/responders.py:1614 ms5.8%
__init____init__:-13 ms4.3%
FileEntry.__init__whitenoise/responders.py:2632 ms2.9%
FileEntry.__init__whitenoise/responders.py:2601 ms1.4%
<GC>~1 ms1.4%
StaticFile.__init__whitenoise/responders.py:764 ms5.8%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1892 ms2.9%
Headers.__getitem__<stdlib>/wsgiref/headers.py:832 ms2.9%
Headers.get<stdlib>/wsgiref/headers.py:1062 ms2.9%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1882 ms2.9%
Headers.__contains__<stdlib>/wsgiref/headers.py:872 ms2.9%
Headers.get<stdlib>/wsgiref/headers.py:1062 ms2.9%
StaticFile.__init__whitenoise/responders.py:742 ms2.9%
parsedate<stdlib>/email/_parseaddr.py:1851 ms1.4%
parsedate_tz<stdlib>/email/_parseaddr.py:501 ms1.4%
_parsedate_tz<stdlib>/email/_parseaddr.py:1211 ms1.4%
parsedate<stdlib>/email/_parseaddr.py:1871 ms1.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:1765 ms7.2%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1975 ms7.2%
URLMixin.urldebug_toolbar/panels/staticfiles.py:204 ms5.8%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:2354 ms5.8%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:2072 ms2.9%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:2081 ms1.4%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:2041 ms1.4%
LazyObject.__getattribute__django/utils/functional.py:2801 ms1.4%
URLMixin.urldebug_toolbar/panels/staticfiles.py:211 ms1.4%
WhiteNoise.get_static_filewhitenoise/base.py:2111 ms1.4%
WhiteNoise.add_mime_headerswhitenoise/base.py:2301 ms1.4%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1155 ms7.2%
scantreewhitenoise/base.py:2715 ms7.2%
scantreewhitenoise/base.py:2714 ms5.8%
scantreewhitenoise/base.py:2732 ms2.9%
scantreewhitenoise/base.py:2712 ms2.9%
scantreewhitenoise/base.py:2711 ms1.4%
scantreewhitenoise/base.py:2711 ms1.4%
scantreewhitenoise/base.py:2731 ms1.4%
scantreewhitenoise/base.py:2691 ms1.4%
scantreewhitenoise/base.py:2731 ms1.4%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:631 ms1.4%
ClientHandler.__call__django/test/client.py:18616 ms23.2%
BaseHandler.get_responsedjango/core/handlers/base.py:14216 ms23.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5616 ms23.2%
MiddlewareMixin.__call__django/utils/deprecation.py:38016 ms23.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5616 ms23.2%
MiddlewareMixin.__call__django/utils/deprecation.py:38016 ms23.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5616 ms23.2%
MiddlewareMixin.__call__django/utils/deprecation.py:38016 ms23.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5616 ms23.2%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12316 ms23.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5616 ms23.2%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:14516 ms23.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5616 ms23.2%
MiddlewareMixin.__call__django/utils/deprecation.py:38015 ms21.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5615 ms21.7%
MiddlewareMixin.__call__django/utils/deprecation.py:38015 ms21.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5615 ms21.7%
MiddlewareMixin.__call__django/utils/deprecation.py:38015 ms21.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5615 ms21.7%
MiddlewareMixin.__call__django/utils/deprecation.py:38015 ms21.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5615 ms21.7%
MiddlewareMixin.__call__django/utils/deprecation.py:38015 ms21.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5615 ms21.7%
MiddlewareMixin.__call__django/utils/deprecation.py:38015 ms21.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5615 ms21.7%
MiddlewareMixin.__call__django/utils/deprecation.py:38015 ms21.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5615 ms21.7%
BaseHandler._get_responsedjango/core/handlers/base.py:19913 ms18.8%
authmastodon_auth/views.py:333 account, __ = Account.objects.update_or_create(4 ms5.8%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:874 ms5.8%
QuerySet.update_or_createdjango/db/models/query.py:10964 ms5.8%
QuerySet.get_or_createdjango/db/models/query.py:10542 ms2.9%
QuerySet.getdjango/db/models/query.py:6921 ms1.4%
QuerySet.filterdjango/db/models/query.py:16761 ms1.4%
QuerySet._filter_or_excludedjango/db/models/query.py:16941 ms1.4%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:17041 ms1.4%
Query.add_qdjango/db/models/sql/query.py:16811 ms1.4%
Query._add_qdjango/db/models/sql/query.py:17241 ms1.4%
JoinPromoter.add_votesdjango/db/models/sql/query.py:28411 ms1.4%
Counter.update<stdlib>/collections/__init__.py:-11 ms1.4%
QuerySet.getdjango/db/models/query.py:7021 ms1.4%
QuerySet.__len__django/db/models/query.py:4211 ms1.4%
QuerySet._fetch_alldjango/db/models/query.py:22621 ms1.4%
ModelIterable.__iter__django/db/models/query.py:1031 ms1.4%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16251 ms1.4%
CursorWrapper.executedjango/db/backends/utils.py:791 ms1.4%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms1.4%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms1.4%
Cursor.executepsycopg/cursor.py:1131 ms1.4%
Connection.waitpsycopg/connection.py:4951 ms1.4%
BaseCursor._execute_genpsycopg/_cursor_base.py:2061 ms1.4%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:3121 ms1.4%
QuerySet.get_or_createdjango/db/models/query.py:10612 ms2.9%
QuerySet.createdjango/db/models/query.py:7362 ms2.9%
Model.savedjango/db/models/base.py:9042 ms2.9%
Model.save_basedjango/db/models/base.py:9962 ms2.9%
Model._save_tabledjango/db/models/base.py:11992 ms2.9%
Model._do_insertdjango/db/models/base.py:12512 ms2.9%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms2.9%
QuerySet._insertdjango/db/models/query.py:21412 ms2.9%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19351 ms1.4%
SQLInsertCompiler.as_sqldjango/db/models/sql/compiler.py:18601 ms1.4%
SQLInsertCompiler.as_sql.<locals>.<genexpr>django/db/models/sql/compiler.py:18601 ms1.4%
SQLCompiler.quote_namedjango/db/models/sql/compiler.py:5581 ms1.4%
DatabaseOperations.quote_namedjango/db/backends/postgresql/operations.py:1921 ms1.4%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19361 ms1.4%
CursorWrapper.executedjango/db/backends/utils.py:791 ms1.4%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms1.4%
authmastodon_auth/views.py:369 AccountAccess.objects.update_or_create(3 ms4.3%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:873 ms4.3%
QuerySet.update_or_createdjango/db/models/query.py:10963 ms4.3%
QuerySet.get_or_createdjango/db/models/query.py:10541 ms1.4%
QuerySet.getdjango/db/models/query.py:7021 ms1.4%
QuerySet.__len__django/db/models/query.py:4211 ms1.4%
QuerySet._fetch_alldjango/db/models/query.py:22621 ms1.4%
ModelIterable.__iter__django/db/models/query.py:1031 ms1.4%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16251 ms1.4%
CursorWrapper.executedjango/db/backends/utils.py:791 ms1.4%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms1.4%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms1.4%
Cursor.executepsycopg/cursor.py:1131 ms1.4%
Connection.waitpsycopg/connection.py:4951 ms1.4%
BaseCursor._execute_genpsycopg/_cursor_base.py:2061 ms1.4%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2861 ms1.4%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:781 ms1.4%
QuerySet.get_or_createdjango/db/models/query.py:10611 ms1.4%
QuerySet.createdjango/db/models/query.py:7341 ms1.4%
Model.__init__django/db/models/base.py:5861 ms1.4%
ForwardOneToOneDescriptor.__set__django/db/models/fields/related_descriptors.py:4121 ms1.4%
ForwardManyToOneDescriptor.__set__django/db/models/fields/related_descriptors.py:3571 ms1.4%
ForeignKeyDeferredAttribute.__set__django/db/models/fields/related_descriptors.py:891 ms1.4%
QuerySet.get_or_createdjango/db/models/query.py:10591 ms1.4%
Atomic.__exit__django/db/transaction.py:2591 ms1.4%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:261 ms1.4%
BaseDatabaseWrapper.savepoint_commitdjango/db/backends/base/base.py:4311 ms1.4%
BaseDatabaseWrapper._savepoint_commitdjango/db/backends/base/base.py:3751 ms1.4%
CursorWrapper.executedjango/db/backends/utils.py:791 ms1.4%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms1.4%
CursorWrapper._executedjango/db/backends/utils.py:1031 ms1.4%
Cursor.executepsycopg/cursor.py:1131 ms1.4%
Connection.waitpsycopg/connection.py:4951 ms1.4%
authmastodon_auth/views.py:378 auth_login(request, user, backend=settings.AUTHENTICATION_BACKENDS[0])3 ms4.3%
logindjango/contrib/auth/__init__.py:1892 ms2.9%
SessionBase.cycle_keydjango/contrib/sessions/backends/base.py:4372 ms2.9%
SessionStore.createdjango/contrib/sessions/backends/db.py:742 ms2.9%
SessionStore.savedjango/contrib/sessions/backends/db.py:1231 ms1.4%
SessionStore.create_model_instancedjango/contrib/sessions/backends/db.py:1021 ms1.4%
SessionBase.encodedjango/contrib/sessions/backends/base.py:1291 ms1.4%
dumpsdjango/core/signing.py:1911 ms1.4%
Signer.__init__django/core/signing.py:2221 ms1.4%
SessionStore.savedjango/contrib/sessions/backends/db.py:1261 ms1.4%
Atomic.__exit__django/db/transaction.py:2591 ms1.4%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:261 ms1.4%
BaseDatabaseWrapper.savepoint_commitdjango/db/backends/base/base.py:4311 ms1.4%
BaseDatabaseWrapper._savepoint_commitdjango/db/backends/base/base.py:3741 ms1.4%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:261 ms1.4%
BaseDatabaseWrapper.cursordjango/db/backends/base/base.py:3201 ms1.4%
BaseDatabaseWrapper._cursordjango/db/backends/base/base.py:2981 ms1.4%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:261 ms1.4%
DatabaseWrapper.create_cursordjango/db/backends/postgresql/base.py:4421 ms1.4%
Connection.cursorpsycopg/connection.py:2591 ms1.4%
logindjango/contrib/auth/__init__.py:1981 ms1.4%
Signal.senddjango/dispatch/dispatcher.py:2491 ms1.4%
update_last_logindjango/contrib/auth/models.py:241 ms1.4%
AbstractBaseUser.savedjango/contrib/auth/base_user.py:621 ms1.4%
Model.savedjango/db/models/base.py:9041 ms1.4%
Model.save_basedjango/db/models/base.py:9961 ms1.4%
Model._save_tabledjango/db/models/base.py:11401 ms1.4%
Model._do_updatedjango/db/models/base.py:12441 ms1.4%
QuerySet._updatedjango/db/models/query.py:14481 ms1.4%
SQLUpdateCompiler.execute_returning_sqldjango/db/models/sql/compiler.py:21501 ms1.4%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21211 ms1.4%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16251 ms1.4%
CursorWrapper.executedjango/db/backends/utils.py:791 ms1.4%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms1.4%
authmastodon_auth/views.py:367 user, __ = User.objects.get_or_create(username=account.username_at_instance)2 ms2.9%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms2.9%
QuerySet.get_or_createdjango/db/models/query.py:10541 ms1.4%
QuerySet.getdjango/db/models/query.py:7021 ms1.4%
QuerySet.__len__django/db/models/query.py:4211 ms1.4%
QuerySet._fetch_alldjango/db/models/query.py:22621 ms1.4%
ModelIterable.__iter__django/db/models/query.py:1031 ms1.4%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16421 ms1.4%
QuerySet.get_or_createdjango/db/models/query.py:10611 ms1.4%
QuerySet.createdjango/db/models/query.py:7361 ms1.4%
AbstractBaseUser.savedjango/contrib/auth/base_user.py:621 ms1.4%
Model.savedjango/db/models/base.py:9041 ms1.4%
Model.save_basedjango/db/models/base.py:9961 ms1.4%
Model._save_tabledjango/db/models/base.py:11991 ms1.4%
Model._do_insertdjango/db/models/base.py:12511 ms1.4%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:871 ms1.4%
QuerySet._insertdjango/db/models/query.py:21411 ms1.4%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19491 ms1.4%
authmastodon_auth/views.py:258 instance = Instance.objects.get(id=instance_id)1 ms1.4%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:871 ms1.4%
QuerySet.getdjango/db/models/query.py:7021 ms1.4%
QuerySet.__len__django/db/models/query.py:4211 ms1.4%
QuerySet._fetch_alldjango/db/models/query.py:22621 ms1.4%
ModelIterable.__iter__django/db/models/query.py:1031 ms1.4%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16251 ms1.4%
CursorWrapper.executedjango/db/backends/utils.py:791 ms1.4%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms1.4%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms1.4%
Cursor.executepsycopg/cursor.py:1131 ms1.4%
Connection.waitpsycopg/connection.py:4951 ms1.4%
BaseCursor._execute_genpsycopg/_cursor_base.py:2061 ms1.4%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2861 ms1.4%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:781 ms1.4%
BaseHandler._get_responsedjango/core/handlers/base.py:1832 ms2.9%
BaseHandler.resolve_requestdjango/core/handlers/base.py:3152 ms2.9%
URLResolver.resolvedjango/urls/resolvers.py:6802 ms2.9%
MiddlewareMixin.__call__django/utils/deprecation.py:3821 ms1.4%
SessionMiddleware.process_responsedjango/contrib/sessions/middleware.py:601 ms1.4%
SessionStore.savedjango/contrib/sessions/backends/db.py:1271 ms1.4%
Model.savedjango/db/models/base.py:9041 ms1.4%
Model.save_basedjango/db/models/base.py:9961 ms1.4%
Model._save_tabledjango/db/models/base.py:11401 ms1.4%
Model._do_updatedjango/db/models/base.py:12441 ms1.4%
QuerySet._updatedjango/db/models/query.py:14481 ms1.4%
SQLUpdateCompiler.execute_returning_sqldjango/db/models/sql/compiler.py:21501 ms1.4%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21211 ms1.4%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16251 ms1.4%
CursorWrapper.executedjango/db/backends/utils.py:791 ms1.4%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms1.4%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms1.4%
Cursor.executepsycopg/cursor.py:1131 ms1.4%
Connection.waitpsycopg/connection.py:4951 ms1.4%
BaseCursor._execute_genpsycopg/_cursor_base.py:2061 ms1.4%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2861 ms1.4%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:781 ms1.4%
MastodonAuthCallbackTests.test_pleroma_null_account_fields_are_coercedmastodon_auth/tests.py:532 account = Account.objects.get(account_id="1")2 ms2.9%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms2.9%
QuerySet.getdjango/db/models/query.py:7022 ms2.9%
QuerySet.__len__django/db/models/query.py:4212 ms2.9%
QuerySet._fetch_alldjango/db/models/query.py:22622 ms2.9%
ModelIterable.__iter__django/db/models/query.py:1032 ms2.9%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16252 ms2.9%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.9%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms2.9%
Cursor.executepsycopg/cursor.py:1132 ms2.9%
Connection.waitpsycopg/connection.py:4952 ms2.9%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms2.9%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms2.9%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms2.9%
MastodonAuthCallbackTests.test_pleroma_null_account_fields_are_coercedmastodon_auth/tests.py:494 @patch("mastodon_auth.views.sync_following")1 ms1.4%
SysMonitor.sysmon_py_startcoverage/sysmon.py:3871 ms1.4%
MastodonAuthCallbackTests.test_pleroma_null_account_fields_are_coercedmastodon_auth/tests.py:507 cache.set(f"oauth:{state}", instance.id)1 ms1.4%
FileBasedCache.setdjango/core/cache/backends/filebased.py:521 ms1.4%
mkstemp<stdlib>/tempfile.py:4081 ms1.4%
MastodonAuthCallbackTests.test_pleroma_null_account_fields_are_coercedmastodon_auth/tests.py:5281 ms1.4%
TestCase.captureOnCommitCallbacksdjango/test/testcases.py:15361 ms1.4%
auth.<locals>.<lambda>mastodon_auth/views.py:380 transaction.on_commit(lambda: sync_following.delay(user.id))1 ms1.4%
NonCallableMock.__getattr__<stdlib>/unittest/mock.py:7171 ms1.4%
NonCallableMock._get_child_mock<stdlib>/unittest/mock.py:10971 ms1.4%
MagicMixin.__init__<stdlib>/unittest/mock.py:21861 ms1.4%
MagicMixin._mock_set_magics<stdlib>/unittest/mock.py:22091 ms1.4%
TransactionTestCase._post_teardowndjango/test/testcases.py:1243 self._fixture_teardown()1 ms1.4%
TestCase._fixture_teardowndjango/test/testcases.py:14981 ms1.4%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4961 ms1.4%
CursorWrapper.executedjango/db/backends/utils.py:791 ms1.4%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms1.4%
CursorWrapper._executedjango/db/backends/utils.py:1031 ms1.4%
Cursor.executepsycopg/cursor.py:1131 ms1.4%
Connection.waitpsycopg/connection.py:4951 ms1.4%
BaseCursor._execute_genpsycopg/_cursor_base.py:2061 ms1.4%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2861 ms1.4%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:781 ms1.4%
Estimated from 70 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

mastodon_auth/tests.py:529
response = self.client.get("/mastodon_auth/", {"code": "abc", "state": state})
MastodonAuthCallbackTests.test_pleroma_null_account_fields_are_coerced · Mocking
49 ms
mastodon_auth/views.py:333
account, __ = Account.objects.update_or_create(
auth · Database
4 ms
mastodon_auth/views.py:369
AccountAccess.objects.update_or_create(
auth · Database
3 ms
mastodon_auth/views.py:378
auth_login(request, user, backend=settings.AUTHENTICATION_BACKENDS[0])
auth · Database
3 ms
mastodon_auth/tests.py:532
account = Account.objects.get(account_id="1")
MastodonAuthCallbackTests.test_pleroma_null_account_fields_are_coerced · Database
2 ms
mastodon_auth/views.py:367
user, __ = User.objects.get_or_create(username=account.username_at_instance)
auth · Database
2 ms
mastodon_auth/tests.py:494
@patch("mastodon_auth.views.sync_following")
MastodonAuthCallbackTests.test_pleroma_null_account_fields_are_coerced · Mocking
1 ms
mastodon_auth/tests.py:507
cache.set(f"oauth:{state}", instance.id)
MastodonAuthCallbackTests.test_pleroma_null_account_fields_are_coerced · Cache
1 ms
mastodon_auth/views.py:258
instance = Instance.objects.get(id=instance_id)
auth · Database
1 ms
mastodon_auth/views.py:380
transaction.on_commit(lambda: sync_following.delay(user.id))
auth.<locals>.<lambda> · Mocking
1 ms

Fixtures

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

Database

33 queries · 10 ms
No repeated queries.

Biggest pieces of work

call test body
mastodon_auth/tests.py:529
67 ms
call _post_teardown
django/test/testcases.py:1243
1 ms
setup pytest internals 0.80 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 70 ms 28600ed main Profile
2 weeks, 5 days ago CI github-actions:test passed 141 ms 600b717 main Profile
2 weeks, 6 days ago CI github-actions:test passed 137 ms c28a326 main Profile
3 weeks ago CI github-actions:test passed 53 ms 9b8826a main Profile
3 weeks ago CI github-actions:test passed 103 ms 4f01055 main Profile
1 month ago CI github-actions:test passed 100 ms 8ab642e main Profile
1 month ago CI github-actions:test passed 91 ms 9b75244 main Profile
1 month ago CI github-actions:test passed 109 ms 9603516 main Profile
1 month, 1 week ago CI github-actions:test passed 87 ms 615a272 main Profile
1 month, 1 week ago CI github-actions:test passed 69 ms d923a46 main Profile
1 month, 1 week ago CI github-actions:test passed 196 ms 82997f8 main Profile
1 month, 1 week ago CI github-actions:test passed 214 ms 623aa3e main Profile
1 month, 1 week ago CI github-actions:test passed 227 ms ab6465a main Profile
1 month, 1 week ago CI github-actions:test passed 94 ms 0c23747 main Run