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

MastodonAuthCallbackTests::test_pleroma_granular_scope_mismatch_still_logs_in

First seen 5 months, 1 week ago in fcb1b79
CI github-actions:test 13 runs
Average
131 ms
median 129 ms
max 242 ms
Phases
Setup 2 ms Call 129 ms Teardown 0.36 ms
Categories
Database 27 ms Other (Mocking, Cache, pytest, Unsampled, ...) 105 ms

32 database queries per run

Needs 200 KB of memory (max 740 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 2 weeks ago · open run
Show pytest frames
call65 ms98.7%
MastodonAuthCallbackTests.test_pleroma_granular_scope_mismatch_still_logs_inmastodon_auth/tests.py:411 response = self.client.get("/mastodon_auth/", {"code": "abc", "state": state})59 ms89.7%
Client.getdjango/test/client.py:113359 ms89.7%
RequestFactory.getdjango/test/client.py:47559 ms89.7%
RequestFactory.genericdjango/test/client.py:67159 ms89.7%
Client.requestdjango/test/client.py:109159 ms89.7%
ClientHandler.__call__django/test/client.py:17342 ms64.3%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6342 ms64.3%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10442 ms64.3%
WhiteNoise.add_fileswhitenoise/base.py:10842 ms64.3%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12034 ms52.3%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13134 ms52.3%
WhiteNoise.get_static_filewhitenoise/base.py:21722 ms32.9%
StaticFile.__init__whitenoise/responders.py:739 ms13.5%
StaticFile.get_headerswhitenoise/responders.py:1813 ms4.5%
Headers.__setitem__<stdlib>/wsgiref/headers.py:642 ms3.0%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:492 ms3.0%
Headers.__setitem__<stdlib>/wsgiref/headers.py:620.99 ms1.5%
Headers.__delitem__<stdlib>/wsgiref/headers.py:720.99 ms1.5%
StaticFile.get_headerswhitenoise/responders.py:1762 ms3.0%
formatdate<stdlib>/email/utils.py:2662 ms3.0%
format_datetime<stdlib>/email/utils.py:2752 ms3.0%
StaticFile.get_headerswhitenoise/responders.py:1782 ms3.0%
parsedate<stdlib>/email/_parseaddr.py:1852 ms3.0%
parsedate_tz<stdlib>/email/_parseaddr.py:530.99 ms1.5%
parsedate_tz<stdlib>/email/_parseaddr.py:500.99 ms1.5%
_parsedate_tz<stdlib>/email/_parseaddr.py:1010.99 ms1.5%
StaticFile.get_headerswhitenoise/responders.py:1770.99 ms1.5%
Headers.__contains__<stdlib>/wsgiref/headers.py:870.99 ms1.5%
Headers.get<stdlib>/wsgiref/headers.py:1060.99 ms1.5%
StaticFile.get_headerswhitenoise/responders.py:1700.99 ms1.5%
Headers.__setitem__<stdlib>/wsgiref/headers.py:620.99 ms1.5%
Headers.__delitem__<stdlib>/wsgiref/headers.py:720.99 ms1.5%
StaticFile.__init__whitenoise/responders.py:777 ms10.5%
StaticFile.get_alternativeswhitenoise/responders.py:2003 ms4.5%
__init____init__:-13 ms4.5%
Headers.__init__<stdlib>/wsgiref/headers.py:443 ms4.5%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:503 ms4.5%
StaticFile.get_alternativeswhitenoise/responders.py:2030.99 ms1.5%
Headers.__setitem__<stdlib>/wsgiref/headers.py:620.99 ms1.5%
Headers.__delitem__<stdlib>/wsgiref/headers.py:720.99 ms1.5%
StaticFile.get_alternativeswhitenoise/responders.py:2060.99 ms1.5%
StaticFile.get_alternativeswhitenoise/responders.py:2010.99 ms1.5%
Headers.__setitem__<stdlib>/wsgiref/headers.py:620.99 ms1.5%
Headers.__delitem__<stdlib>/wsgiref/headers.py:710.99 ms1.5%
StaticFile.get_alternativeswhitenoise/responders.py:1980.99 ms1.5%
StaticFile.__init__whitenoise/responders.py:725 ms7.5%
StaticFile.get_file_statswhitenoise/responders.py:1615 ms7.5%
__init____init__:-15 ms7.5%
FileEntry.__init__whitenoise/responders.py:2635 ms7.5%
FileEntry.stat_regular_filewhitenoise/responders.py:2762 ms3.0%
<GC>~0.99 ms1.5%
FileEntry.stat_regular_filewhitenoise/responders.py:2750.99 ms1.5%
FileEntry.stat_regular_filewhitenoise/responders.py:2740.99 ms1.5%
StaticFile.__init__whitenoise/responders.py:740.99 ms1.5%
parsedate<stdlib>/email/_parseaddr.py:1850.99 ms1.5%
parsedate_tz<stdlib>/email/_parseaddr.py:500.99 ms1.5%
_parsedate_tz<stdlib>/email/_parseaddr.py:690.99 ms1.5%
WhiteNoise.get_static_filewhitenoise/base.py:21210 ms15.0%
WhiteNoise.add_cache_headerswhitenoise/base.py:2337 ms10.5%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1767 ms10.5%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1977 ms10.5%
URLMixin.urldebug_toolbar/panels/staticfiles.py:204 ms6.0%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:2354 ms6.0%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:2162 ms3.0%
FileSystemStorage.urldjango/core/files/storage/filesystem.py:2072 ms3.0%
urljoin<stdlib>/urllib/parse.py:7652 ms3.0%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:2140.99 ms1.5%
ManifestFilesMixin.stored_namedjango/contrib/staticfiles/storage.py:5950.99 ms1.5%
unquote<stdlib>/urllib/parse.py:8500.99 ms1.5%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:2070.99 ms1.5%
URLMixin.urldebug_toolbar/panels/staticfiles.py:260.99 ms1.5%
LazyObject.__getattribute__django/utils/functional.py:-10.99 ms1.5%
WhiteNoise.add_cache_headerswhitenoise/base.py:2362 ms3.0%
Headers.__setitem__<stdlib>/wsgiref/headers.py:622 ms3.0%
Headers.__delitem__<stdlib>/wsgiref/headers.py:710.99 ms1.5%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:500.99 ms1.5%
WhiteNoise.add_cache_headerswhitenoise/base.py:2340.99 ms1.5%
WhiteNoise.get_static_filewhitenoise/base.py:2113 ms4.5%
WhiteNoise.add_mime_headerswhitenoise/base.py:2303 ms4.5%
Headers.add_header<stdlib>/wsgiref/headers.py:1923 ms4.5%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1156 ms9.0%
scantreewhitenoise/base.py:2715 ms7.5%
scantreewhitenoise/base.py:2715 ms7.5%
scantreewhitenoise/base.py:2733 ms4.5%
scantreewhitenoise/base.py:2690.99 ms1.5%
scantreewhitenoise/base.py:2710.99 ms1.5%
scantreewhitenoise/base.py:2710.99 ms1.5%
scantreewhitenoise/base.py:2710.99 ms1.5%
scantreewhitenoise/base.py:2730.99 ms1.5%
scantreewhitenoise/base.py:2730.99 ms1.5%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1190.99 ms1.5%
ClientHandler.__call__django/test/client.py:18617 ms25.4%
BaseHandler.get_responsedjango/core/handlers/base.py:14217 ms25.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5617 ms25.4%
MiddlewareMixin.__call__django/utils/deprecation.py:38017 ms25.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5617 ms25.4%
MiddlewareMixin.__call__django/utils/deprecation.py:38017 ms25.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5617 ms25.4%
MiddlewareMixin.__call__django/utils/deprecation.py:38017 ms25.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5617 ms25.4%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12317 ms25.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5617 ms25.4%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:14517 ms25.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5617 ms25.4%
MiddlewareMixin.__call__django/utils/deprecation.py:38015 ms22.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5615 ms22.4%
MiddlewareMixin.__call__django/utils/deprecation.py:38015 ms22.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5615 ms22.4%
MiddlewareMixin.__call__django/utils/deprecation.py:38015 ms22.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5615 ms22.4%
MiddlewareMixin.__call__django/utils/deprecation.py:38015 ms22.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5615 ms22.4%
MiddlewareMixin.__call__django/utils/deprecation.py:38015 ms22.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5615 ms22.4%
MiddlewareMixin.__call__django/utils/deprecation.py:38015 ms22.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5615 ms22.4%
MiddlewareMixin.__call__django/utils/deprecation.py:38015 ms22.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5615 ms22.4%
BaseHandler._get_responsedjango/core/handlers/base.py:19915 ms22.4%
authmastodon_auth/views.py:333 account, __ = Account.objects.update_or_create(5 ms7.5%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:875 ms7.5%
QuerySet.update_or_createdjango/db/models/query.py:10963 ms4.5%
QuerySet.get_or_createdjango/db/models/query.py:10612 ms3.0%
QuerySet.createdjango/db/models/query.py:7362 ms3.0%
Model.savedjango/db/models/base.py:9042 ms3.0%
Model.save_basedjango/db/models/base.py:9962 ms3.0%
Model._save_tabledjango/db/models/base.py:10870.99 ms1.5%
Field.__eq__django/db/models/fields/__init__.py:7170.99 ms1.5%
Model._save_tabledjango/db/models/base.py:11990.99 ms1.5%
Model._do_insertdjango/db/models/base.py:12510.99 ms1.5%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:870.99 ms1.5%
QuerySet._insertdjango/db/models/query.py:21410.99 ms1.5%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19360.99 ms1.5%
CursorWrapper.executedjango/db/backends/utils.py:790.99 ms1.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:920.99 ms1.5%
CursorWrapper._executedjango/db/backends/utils.py:1050.99 ms1.5%
Cursor.executepsycopg/cursor.py:1130.99 ms1.5%
Connection.waitpsycopg/connection.py:4950.99 ms1.5%
BaseCursor._execute_genpsycopg/_cursor_base.py:2060.99 ms1.5%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2860.99 ms1.5%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:780.99 ms1.5%
QuerySet.get_or_createdjango/db/models/query.py:10540.99 ms1.5%
QuerySet.getdjango/db/models/query.py:7020.99 ms1.5%
QuerySet.__len__django/db/models/query.py:4210.99 ms1.5%
QuerySet._fetch_alldjango/db/models/query.py:22620.99 ms1.5%
ModelIterable.__iter__django/db/models/query.py:1030.99 ms1.5%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16250.99 ms1.5%
CursorWrapper.executedjango/db/backends/utils.py:790.99 ms1.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:920.99 ms1.5%
CursorWrapper._executedjango/db/backends/utils.py:1050.99 ms1.5%
Cursor.executepsycopg/cursor.py:1130.99 ms1.5%
Connection.waitpsycopg/connection.py:4950.99 ms1.5%
BaseCursor._execute_genpsycopg/_cursor_base.py:2060.99 ms1.5%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2860.99 ms1.5%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:780.99 ms1.5%
BaseManager.get_querysetdjango/db/models/manager.py:1550.99 ms1.5%
QuerySet.__init__django/db/models/query.py:3370.99 ms1.5%
__init____init__:-10.99 ms1.5%
Query.__init__django/db/models/sql/query.py:3310.99 ms1.5%
QuerySet.update_or_createdjango/db/models/query.py:10930.99 ms1.5%
Atomic.__exit__django/db/transaction.py:2590.99 ms1.5%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:260.99 ms1.5%
BaseDatabaseWrapper.savepoint_commitdjango/db/backends/base/base.py:4310.99 ms1.5%
BaseDatabaseWrapper._savepoint_commitdjango/db/backends/base/base.py:3740.99 ms1.5%
CursorWrapper.__exit__django/db/backends/utils.py:490.99 ms1.5%
authmastodon_auth/views.py:369 AccountAccess.objects.update_or_create(3 ms4.5%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:873 ms4.5%
QuerySet.update_or_createdjango/db/models/query.py:10963 ms4.5%
QuerySet.get_or_createdjango/db/models/query.py:10540.99 ms1.5%
QuerySet.getdjango/db/models/query.py:6920.99 ms1.5%
QuerySet.filterdjango/db/models/query.py:16760.99 ms1.5%
QuerySet._filter_or_excludedjango/db/models/query.py:16940.99 ms1.5%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:17040.99 ms1.5%
QuerySet.get_or_createdjango/db/models/query.py:10590.99 ms1.5%
Atomic.__enter__django/db/transaction.py:2230.99 ms1.5%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:260.99 ms1.5%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4000.99 ms1.5%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3670.99 ms1.5%
CursorWrapper.executedjango/db/backends/utils.py:790.99 ms1.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:920.99 ms1.5%
CursorWrapper._executedjango/db/backends/utils.py:1030.99 ms1.5%
Cursor.executepsycopg/cursor.py:1130.99 ms1.5%
Connection.waitpsycopg/connection.py:4950.99 ms1.5%
BaseCursor._execute_genpsycopg/_cursor_base.py:2060.99 ms1.5%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2860.99 ms1.5%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:780.99 ms1.5%
QuerySet.get_or_createdjango/db/models/query.py:10610.99 ms1.5%
QuerySet.createdjango/db/models/query.py:7360.99 ms1.5%
Model.savedjango/db/models/base.py:9040.99 ms1.5%
Model.save_basedjango/db/models/base.py:9960.99 ms1.5%
Model._save_tabledjango/db/models/base.py:11990.99 ms1.5%
Model._do_insertdjango/db/models/base.py:12510.99 ms1.5%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:870.99 ms1.5%
QuerySet._insertdjango/db/models/query.py:21410.99 ms1.5%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19360.99 ms1.5%
CursorWrapper.executedjango/db/backends/utils.py:790.99 ms1.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:920.99 ms1.5%
authmastodon_auth/views.py:258 instance = Instance.objects.get(id=instance_id)2 ms3.0%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms3.0%
QuerySet.getdjango/db/models/query.py:7022 ms3.0%
QuerySet.__len__django/db/models/query.py:4212 ms3.0%
QuerySet._fetch_alldjango/db/models/query.py:22622 ms3.0%
ModelIterable.__iter__django/db/models/query.py:1032 ms3.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16252 ms3.0%
CursorWrapper.executedjango/db/backends/utils.py:792 ms3.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.0%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms3.0%
Cursor.executepsycopg/cursor.py:1132 ms3.0%
Connection.waitpsycopg/connection.py:4952 ms3.0%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms3.0%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms3.0%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms3.0%
authmastodon_auth/views.py:367 user, __ = User.objects.get_or_create(username=account.username_at_instance)2 ms3.0%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms3.0%
QuerySet.get_or_createdjango/db/models/query.py:10540.99 ms1.5%
QuerySet.getdjango/db/models/query.py:7020.99 ms1.5%
QuerySet.__len__django/db/models/query.py:4210.99 ms1.5%
QuerySet._fetch_alldjango/db/models/query.py:22620.99 ms1.5%
ModelIterable.__iter__django/db/models/query.py:1030.99 ms1.5%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16250.99 ms1.5%
CursorWrapper.executedjango/db/backends/utils.py:790.99 ms1.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:920.99 ms1.5%
QuerySet.get_or_createdjango/db/models/query.py:10610.99 ms1.5%
QuerySet.createdjango/db/models/query.py:7360.99 ms1.5%
AbstractBaseUser.savedjango/contrib/auth/base_user.py:620.99 ms1.5%
Model.savedjango/db/models/base.py:9040.99 ms1.5%
Model.save_basedjango/db/models/base.py:9960.99 ms1.5%
Model._save_tabledjango/db/models/base.py:11990.99 ms1.5%
Model._do_insertdjango/db/models/base.py:12510.99 ms1.5%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:870.99 ms1.5%
QuerySet._insertdjango/db/models/query.py:21410.99 ms1.5%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19670.99 ms1.5%
SQLCompiler.get_convertersdjango/db/models/sql/compiler.py:15190.99 ms1.5%
authmastodon_auth/views.py:378 auth_login(request, user, backend=settings.AUTHENTICATION_BACKENDS[0])2 ms3.0%
logindjango/contrib/auth/__init__.py:1892 ms3.0%
SessionBase.cycle_keydjango/contrib/sessions/backends/base.py:4372 ms3.0%
SessionStore.createdjango/contrib/sessions/backends/db.py:700.99 ms1.5%
SessionBase._get_new_session_keydjango/contrib/sessions/backends/base.py:2010.99 ms1.5%
SessionStore.existsdjango/contrib/sessions/backends/db.py:630.99 ms1.5%
QuerySet.existsdjango/db/models/query.py:14580.99 ms1.5%
Query.has_resultsdjango/db/models/sql/query.py:6870.99 ms1.5%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15930.99 ms1.5%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16250.99 ms1.5%
CursorWrapper.executedjango/db/backends/utils.py:790.99 ms1.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:920.99 ms1.5%
CursorWrapper._executedjango/db/backends/utils.py:1050.99 ms1.5%
Cursor.executepsycopg/cursor.py:1130.99 ms1.5%
Connection.waitpsycopg/connection.py:4950.99 ms1.5%
BaseCursor._execute_genpsycopg/_cursor_base.py:2060.99 ms1.5%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2860.99 ms1.5%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:780.99 ms1.5%
SessionStore.createdjango/contrib/sessions/backends/db.py:740.99 ms1.5%
SessionStore.savedjango/contrib/sessions/backends/db.py:1270.99 ms1.5%
Model.savedjango/db/models/base.py:9040.99 ms1.5%
Model.save_basedjango/db/models/base.py:9960.99 ms1.5%
Model._save_tabledjango/db/models/base.py:11990.99 ms1.5%
Model._do_insertdjango/db/models/base.py:12510.99 ms1.5%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:870.99 ms1.5%
QuerySet._insertdjango/db/models/query.py:21410.99 ms1.5%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19360.99 ms1.5%
CursorWrapper.executedjango/db/backends/utils.py:790.99 ms1.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:920.99 ms1.5%
CursorWrapper._executedjango/db/backends/utils.py:1050.99 ms1.5%
Cursor.executepsycopg/cursor.py:1130.99 ms1.5%
Connection.waitpsycopg/connection.py:4950.99 ms1.5%
BaseCursor._execute_genpsycopg/_cursor_base.py:2060.99 ms1.5%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2860.99 ms1.5%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:780.99 ms1.5%
authmastodon_auth/views.py:380 transaction.on_commit(lambda: sync_following.delay(user.id))0.99 ms1.5%
on_commitdjango/db/transaction.py:1460.99 ms1.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3822 ms3.0%
SessionMiddleware.process_responsedjango/contrib/sessions/middleware.py:600.99 ms1.5%
SessionStore.savedjango/contrib/sessions/backends/db.py:1260.99 ms1.5%
Atomic.__enter__django/db/transaction.py:2230.99 ms1.5%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:260.99 ms1.5%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4000.99 ms1.5%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3670.99 ms1.5%
CursorWrapper.executedjango/db/backends/utils.py:790.99 ms1.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:920.99 ms1.5%
CursorWrapper._executedjango/db/backends/utils.py:1030.99 ms1.5%
Cursor.executepsycopg/cursor.py:1130.99 ms1.5%
Connection.waitpsycopg/connection.py:4950.99 ms1.5%
BaseCursor._execute_genpsycopg/_cursor_base.py:2060.99 ms1.5%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2860.99 ms1.5%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:780.99 ms1.5%
SessionMiddleware.process_responsedjango/contrib/sessions/middleware.py:670.99 ms1.5%
HttpResponseBase.set_cookiedjango/http/response.py:2830.99 ms1.5%
MastodonAuthCallbackTests.test_pleroma_granular_scope_mismatch_still_logs_inmastodon_auth/tests.py:378 cache.set(f"oauth:{state}", instance.id)3 ms4.5%
FileBasedCache.setdjango/core/cache/backends/filebased.py:573 ms4.5%
file_move_safedjango/core/files/move.py:423 ms4.5%
MastodonAuthCallbackTests.test_pleroma_granular_scope_mismatch_still_logs_inmastodon_auth/tests.py:382 mastodon.log_in.side_effect = MastodonAPIError(0.99 ms1.5%
NonCallableMock.__getattr__<stdlib>/unittest/mock.py:7170.99 ms1.5%
NonCallableMock._get_child_mock<stdlib>/unittest/mock.py:10970.99 ms1.5%
MagicMixin.__init__<stdlib>/unittest/mock.py:21860.99 ms1.5%
MagicMixin._mock_set_magics<stdlib>/unittest/mock.py:22090.99 ms1.5%
MastodonAuthCallbackTests.test_pleroma_granular_scope_mismatch_still_logs_inmastodon_auth/tests.py:414 access = AccountAccess.objects.get()0.99 ms1.5%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:870.99 ms1.5%
QuerySet.getdjango/db/models/query.py:7020.99 ms1.5%
QuerySet.__len__django/db/models/query.py:4210.99 ms1.5%
QuerySet._fetch_alldjango/db/models/query.py:22620.99 ms1.5%
ModelIterable.__iter__django/db/models/query.py:1030.99 ms1.5%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16660.99 ms1.5%
cursor_iterdjango/db/models/sql/compiler.py:22640.99 ms1.5%
cursor_iter.<locals>.<lambda>django/db/models/sql/compiler.py:22640.99 ms1.5%
TransactionTestCase._post_teardowndjango/test/testcases.py:1243 self._fixture_teardown()0.99 ms1.5%
TestCase._fixture_teardowndjango/test/testcases.py:14980.99 ms1.5%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4960.99 ms1.5%
CursorWrapper.executedjango/db/backends/utils.py:790.99 ms1.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:920.99 ms1.5%
CursorWrapper._executedjango/db/backends/utils.py:1030.99 ms1.5%
Cursor.executepsycopg/cursor.py:1130.99 ms1.5%
Connection.waitpsycopg/connection.py:4950.99 ms1.5%
BaseCursor._execute_genpsycopg/_cursor_base.py:2060.99 ms1.5%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2860.99 ms1.5%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:780.99 ms1.5%
Estimated from 66 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

mastodon_auth/tests.py:411
response = self.client.get("/mastodon_auth/", {"code": "abc", "state": state})
MastodonAuthCallbackTests.test_pleroma_granular_scope_mismatch_still_logs_in · Mocking
44 ms
mastodon_auth/views.py:333
account, __ = Account.objects.update_or_create(
auth · Database
5 ms
mastodon_auth/tests.py:378
cache.set(f"oauth:{state}", instance.id)
MastodonAuthCallbackTests.test_pleroma_granular_scope_mismatch_still_logs_in · Cache
3 ms
mastodon_auth/views.py:369
AccountAccess.objects.update_or_create(
auth · Database
3 ms
mastodon_auth/views.py:258
instance = Instance.objects.get(id=instance_id)
auth · 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/views.py:378
auth_login(request, user, backend=settings.AUTHENTICATION_BACKENDS[0])
auth · Database
2 ms
mastodon_auth/tests.py:382
mastodon.log_in.side_effect = MastodonAPIError(
MastodonAuthCallbackTests.test_pleroma_granular_scope_mismatch_still_logs_in · Mocking
0.99 ms
mastodon_auth/views.py:380
transaction.on_commit(lambda: sync_following.delay(user.id))
auth · Database
0.99 ms
mastodon_auth/tests.py:414
access = AccountAccess.objects.get()
MastodonAuthCallbackTests.test_pleroma_granular_scope_mismatch_still_logs_in · Database
0.99 ms

Fixtures

Exact setup time
_dj_autoclear_mailbox function 0.04 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

32 queries · 10 ms
No repeated queries.

Biggest pieces of work

call test body
mastodon_auth/tests.py:378
64 ms
call _post_teardown
django/test/testcases.py:1243
0.99 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 66 ms 28600ed main Profile
2 weeks, 5 days ago CI github-actions:test passed 129 ms 600b717 main Profile
2 weeks, 6 days ago CI github-actions:test passed 112 ms c28a326 main Profile
3 weeks ago CI github-actions:test passed 48 ms 9b8826a main Profile
3 weeks ago CI github-actions:test passed 143 ms 4f01055 main Profile
1 month ago CI github-actions:test passed 147 ms 8ab642e main Profile
1 month ago CI github-actions:test passed 140 ms 9b75244 main Profile
1 month ago CI github-actions:test passed 94 ms 9603516 main Profile
1 month, 1 week ago CI github-actions:test passed 92 ms 615a272 main Profile
1 month, 1 week ago CI github-actions:test passed 74 ms d923a46 main Profile
1 month, 1 week ago CI github-actions:test passed 204 ms 82997f8 main Profile
1 month, 1 week ago CI github-actions:test passed 216 ms 623aa3e main Profile
1 month, 1 week ago CI github-actions:test passed 242 ms ab6465a main Profile
1 month, 1 week ago CI github-actions:test passed 97 ms 0c23747 main Run