Tests / mastodon_auth/tests.py
MastodonLoginViewTests::test_pleroma_login_forces_consent_flow
First seen 5 months ago in 8fac7b5
CI
github-actions:test
13 runs
Average
106 ms
median 88 ms
max 204 ms
max 204 ms
Phases
Setup 1 ms
Call 102 ms
Teardown 3 ms
Categories
Database 17 ms
Other (Mocking, Unsampled, pytest, Cache, ...) 89 ms
9 database queries per run
Needs 358 KB of memory (max 756 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 2 weeks ago ·
open run
call68 ms92.5%
MastodonLoginViewTests.test_pleroma_login_forces_consent_flowmastodon_auth/tests.py:180 pleroma = self.client.post("/mastodon_login/", {"instance": "pleroma.example"})59 ms80.5%
Client.postdjango/test/client.py:116259 ms80.5%
RequestFactory.postdjango/test/client.py:49959 ms80.5%
RequestFactory.genericdjango/test/client.py:67159 ms80.5%
Client.requestdjango/test/client.py:109159 ms80.5%
ClientHandler.__call__django/test/client.py:17357 ms77.8%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6357 ms77.8%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10456 ms76.4%
WhiteNoise.add_fileswhitenoise/base.py:10856 ms76.4%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12051 ms69.7%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13149 ms67.1%
WhiteNoise.get_static_filewhitenoise/base.py:21733 ms44.3%
StaticFile.__init__whitenoise/responders.py:7318 ms24.1%
StaticFile.get_headerswhitenoise/responders.py:1766 ms8.0%
formatdate<stdlib>/email/utils.py:2664 ms5.4%
format_datetime<stdlib>/email/utils.py:2752 ms2.7%
format_datetime<stdlib>/email/utils.py:2842 ms2.7%
_format_timetuple_and_zone<stdlib>/email/utils.py:2312 ms2.7%
Headers.__setitem__<stdlib>/wsgiref/headers.py:620.99 ms1.3%
Headers.__delitem__<stdlib>/wsgiref/headers.py:720.99 ms1.3%
StaticFile.get_headerswhitenoise/responders.py:1676 ms8.0%
__init____init__:-15 ms6.7%
Headers.__init__<stdlib>/wsgiref/headers.py:445 ms6.7%
StaticFile.get_headerswhitenoise/responders.py:1812 ms2.7%
Headers.__setitem__<stdlib>/wsgiref/headers.py:622 ms2.7%
Headers.__delitem__<stdlib>/wsgiref/headers.py:722 ms2.7%
StaticFile.get_headerswhitenoise/responders.py:1702 ms2.7%
Headers.__setitem__<stdlib>/wsgiref/headers.py:642 ms2.7%
StaticFile.get_headerswhitenoise/responders.py:1782 ms2.7%
parsedate<stdlib>/email/_parseaddr.py:1852 ms2.7%
parsedate_tz<stdlib>/email/_parseaddr.py:502 ms2.7%
_parsedate_tz<stdlib>/email/_parseaddr.py:1170.99 ms1.3%
_parsedate_tz<stdlib>/email/_parseaddr.py:1130.99 ms1.3%
StaticFile.__init__whitenoise/responders.py:726 ms8.0%
StaticFile.get_file_statswhitenoise/responders.py:1573 ms4.0%
__init____init__:-13 ms4.0%
FileEntry.__init__whitenoise/responders.py:2633 ms4.0%
FileEntry.stat_regular_filewhitenoise/responders.py:2823 ms4.0%
StaticFile.get_file_statswhitenoise/responders.py:1612 ms2.7%
__init____init__:-10.99 ms1.3%
FileEntry.__init__whitenoise/responders.py:2630.99 ms1.3%
FileEntry.stat_regular_filewhitenoise/responders.py:2740.99 ms1.3%
StaticFile.get_file_statswhitenoise/responders.py:1590.99 ms1.3%
StaticFile.__init__whitenoise/responders.py:774 ms5.4%
StaticFile.get_alternativeswhitenoise/responders.py:2003 ms4.0%
__init____init__:-13 ms4.0%
Headers.__init__<stdlib>/wsgiref/headers.py:443 ms4.0%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:500.99 ms1.3%
StaticFile.get_alternativeswhitenoise/responders.py:2060.99 ms1.3%
compile<stdlib>/re/__init__.py:2910.99 ms1.3%
_compile<stdlib>/re/__init__.py:3370.99 ms1.3%
StaticFile.__init__whitenoise/responders.py:764 ms5.4%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1892 ms2.7%
Headers.__getitem__<stdlib>/wsgiref/headers.py:832 ms2.7%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1882 ms2.7%
Headers.__contains__<stdlib>/wsgiref/headers.py:872 ms2.7%
Headers.get<stdlib>/wsgiref/headers.py:1042 ms2.7%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:500.99 ms1.3%
WhiteNoise.get_static_filewhitenoise/base.py:2129 ms12.1%
WhiteNoise.add_cache_headerswhitenoise/base.py:2337 ms9.4%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1766 ms8.0%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1976 ms8.0%
URLMixin.urldebug_toolbar/panels/staticfiles.py:205 ms6.7%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:2355 ms6.7%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:2082 ms2.7%
urlsplit<stdlib>/urllib/parse.py:5820.99 ms1.3%
_urlsplit<stdlib>/urllib/parse.py:6060.99 ms1.3%
urlsplit<stdlib>/urllib/parse.py:5880.99 ms1.3%
<lambda><string>:10.99 ms1.3%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:2140.99 ms1.3%
ManifestFilesMixin.stored_namedjango/contrib/staticfiles/storage.py:6050.99 ms1.3%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:2070.99 ms1.3%
urldefrag<stdlib>/urllib/parse.py:7760.99 ms1.3%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:2160.99 ms1.3%
FileSystemStorage.urldjango/core/files/storage/filesystem.py:2070.99 ms1.3%
urljoin<stdlib>/urllib/parse.py:7470.99 ms1.3%
new_method_proxy.<locals>.innerdjango/utils/functional.py:2500.99 ms1.3%
LazyObject.__getattribute__django/utils/functional.py:2790.99 ms1.3%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1730.99 ms1.3%
WhiteNoiseMiddleware.get_name_without_hashwhitenoise/middleware.py:1910.99 ms1.3%
splitext<frozen posixpath>:1260.99 ms1.3%
_splitext<frozen genericpath>:1850.99 ms1.3%
WhiteNoise.add_cache_headerswhitenoise/base.py:2362 ms2.7%
Headers.__setitem__<stdlib>/wsgiref/headers.py:640.99 ms1.3%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:480.99 ms1.3%
Headers.__setitem__<stdlib>/wsgiref/headers.py:620.99 ms1.3%
Headers.__delitem__<stdlib>/wsgiref/headers.py:710.99 ms1.3%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:500.99 ms1.3%
WhiteNoise.get_static_filewhitenoise/base.py:2116 ms8.0%
WhiteNoise.add_mime_headerswhitenoise/base.py:2253 ms4.0%
MediaTypes.get_typewhitenoise/media_types.py:192 ms2.7%
splitext<frozen posixpath>:1202 ms2.7%
MediaTypes.get_typewhitenoise/media_types.py:150.99 ms1.3%
WhiteNoise.add_mime_headerswhitenoise/base.py:2303 ms4.0%
Headers.add_header<stdlib>/wsgiref/headers.py:1860.99 ms1.3%
Headers.add_header<stdlib>/wsgiref/headers.py:1920.99 ms1.3%
Headers.add_header<stdlib>/wsgiref/headers.py:1830.99 ms1.3%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:480.99 ms1.3%
WhiteNoise.get_static_filewhitenoise/base.py:2142 ms2.7%
Headers.__setitem__<stdlib>/wsgiref/headers.py:622 ms2.7%
Headers.__delitem__<stdlib>/wsgiref/headers.py:712 ms2.7%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:502 ms2.7%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:1232 ms2.7%
WhiteNoise.is_compressed_variantwhitenoise/base.py:1960.99 ms1.3%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1155 ms6.7%
scantreewhitenoise/base.py:2714 ms5.4%
scantreewhitenoise/base.py:2714 ms5.4%
scantreewhitenoise/base.py:2714 ms5.4%
scantreewhitenoise/base.py:2714 ms5.4%
scantreewhitenoise/base.py:2714 ms5.4%
scantreewhitenoise/base.py:2734 ms5.4%
scantreewhitenoise/base.py:2730.99 ms1.3%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:1110.99 ms1.3%
WhiteNoise.add_fileswhitenoise/base.py:1080.99 ms1.3%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1150.99 ms1.3%
scantreewhitenoise/base.py:2690.99 ms1.3%
ClientHandler.__call__django/test/client.py:1862 ms2.7%
BaseHandler.get_responsedjango/core/handlers/base.py:1422 ms2.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:562 ms2.7%
MiddlewareMixin.__call__django/utils/deprecation.py:3802 ms2.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:562 ms2.7%
MiddlewareMixin.__call__django/utils/deprecation.py:3802 ms2.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:562 ms2.7%
MiddlewareMixin.__call__django/utils/deprecation.py:3802 ms2.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:562 ms2.7%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:1232 ms2.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:562 ms2.7%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1452 ms2.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:562 ms2.7%
MiddlewareMixin.__call__django/utils/deprecation.py:3802 ms2.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:562 ms2.7%
MiddlewareMixin.__call__django/utils/deprecation.py:3802 ms2.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:562 ms2.7%
MiddlewareMixin.__call__django/utils/deprecation.py:3802 ms2.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:562 ms2.7%
MiddlewareMixin.__call__django/utils/deprecation.py:3802 ms2.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:562 ms2.7%
MiddlewareMixin.__call__django/utils/deprecation.py:3802 ms2.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:562 ms2.7%
MiddlewareMixin.__call__django/utils/deprecation.py:3790.99 ms1.3%
MessageMiddleware.process_requestdjango/contrib/messages/middleware.py:120.99 ms1.3%
default_storagedjango/contrib/messages/storage/__init__.py:120.99 ms1.3%
FallbackStorage.__init__django/contrib/messages/storage/fallback.py:190.99 ms1.3%
MiddlewareMixin.__call__django/utils/deprecation.py:3800.99 ms1.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:560.99 ms1.3%
MiddlewareMixin.__call__django/utils/deprecation.py:3800.99 ms1.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:560.99 ms1.3%
BaseHandler._get_responsedjango/core/handlers/base.py:1990.99 ms1.3%
require_http_methods.<locals>.decorator.<locals>.innerdjango/views/decorators/http.py:630.99 ms1.3%
loginmastodon_auth/views.py:82 instance = Instance.objects.filter(url=api_base_url).first()0.99 ms1.3%
QuerySet.firstdjango/db/models/query.py:12120.99 ms1.3%
QuerySet.__iter__django/db/models/query.py:4390.99 ms1.3%
QuerySet._fetch_alldjango/db/models/query.py:22620.99 ms1.3%
ModelIterable.__iter__django/db/models/query.py:1030.99 ms1.3%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16120.99 ms1.3%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7680.99 ms1.3%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:900.99 ms1.3%
SQLCompiler.get_order_bydjango/db/models/sql/compiler.py:4920.99 ms1.3%
BaseExpression.resolve_expressiondjango/db/models/expressions.py:3050.99 ms1.3%
MastodonLoginViewTests.test_pleroma_login_forces_consent_flowmastodon_auth/tests.py:181 mastodon = self.client.post("/mastodon_login/", {"instance": "mastodon.example"})4 ms5.4%
Client.postdjango/test/client.py:11624 ms5.4%
RequestFactory.postdjango/test/client.py:4994 ms5.4%
RequestFactory.genericdjango/test/client.py:6714 ms5.4%
Client.requestdjango/test/client.py:10914 ms5.4%
ClientHandler.__call__django/test/client.py:1864 ms5.4%
BaseHandler.get_responsedjango/core/handlers/base.py:1424 ms5.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:564 ms5.4%
MiddlewareMixin.__call__django/utils/deprecation.py:3804 ms5.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:564 ms5.4%
MiddlewareMixin.__call__django/utils/deprecation.py:3804 ms5.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:564 ms5.4%
MiddlewareMixin.__call__django/utils/deprecation.py:3804 ms5.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:564 ms5.4%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:1234 ms5.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:564 ms5.4%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1454 ms5.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:564 ms5.4%
MiddlewareMixin.__call__django/utils/deprecation.py:3804 ms5.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:564 ms5.4%
MiddlewareMixin.__call__django/utils/deprecation.py:3804 ms5.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:564 ms5.4%
MiddlewareMixin.__call__django/utils/deprecation.py:3803 ms4.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:563 ms4.0%
MiddlewareMixin.__call__django/utils/deprecation.py:3803 ms4.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:563 ms4.0%
MiddlewareMixin.__call__django/utils/deprecation.py:3803 ms4.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:563 ms4.0%
MiddlewareMixin.__call__django/utils/deprecation.py:3803 ms4.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:563 ms4.0%
MiddlewareMixin.__call__django/utils/deprecation.py:3803 ms4.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:563 ms4.0%
BaseHandler._get_responsedjango/core/handlers/base.py:1993 ms4.0%
require_http_methods.<locals>.decorator.<locals>.innerdjango/views/decorators/http.py:633 ms4.0%
loginmastodon_auth/views.py:82 instance = Instance.objects.filter(url=api_base_url).first()3 ms4.0%
QuerySet.firstdjango/db/models/query.py:12123 ms4.0%
QuerySet.__iter__django/db/models/query.py:4393 ms4.0%
QuerySet._fetch_alldjango/db/models/query.py:22623 ms4.0%
ModelIterable.__iter__django/db/models/query.py:1033 ms4.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16253 ms4.0%
CursorWrapper.executedjango/db/backends/utils.py:793 ms4.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms4.0%
CursorWrapper._executedjango/db/backends/utils.py:1053 ms4.0%
Cursor.executepsycopg/cursor.py:1133 ms4.0%
Connection.waitpsycopg/connection.py:4953 ms4.0%
BaseCursor._execute_genpsycopg/_cursor_base.py:2063 ms4.0%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2863 ms4.0%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:783 ms4.0%
TransactionTestCase._pre_setupdjango/test/testcases.py:1167 cls._fixture_setup()0.99 ms1.3%
TestCase._fixture_setupdjango/test/testcases.py:14810.99 ms1.3%
TestCase._enter_atomicsdjango/test/testcases.py:13990.99 ms1.3%
Atomic.__enter__django/db/transaction.py:2230.99 ms1.3%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:260.99 ms1.3%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4000.99 ms1.3%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3670.99 ms1.3%
CursorWrapper.executedjango/db/backends/utils.py:790.99 ms1.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:920.99 ms1.3%
CursorWrapper._executedjango/db/backends/utils.py:1030.99 ms1.3%
Cursor.executepsycopg/cursor.py:1130.99 ms1.3%
Connection.waitpsycopg/connection.py:4950.99 ms1.3%
_patch.decoration_helper<stdlib>/unittest/mock.py:1418 arg = exit_stack.enter_context(patching)0.99 ms1.3%
_BaseExitStack.enter_context<stdlib>/contextlib.py:5940.99 ms1.3%
_patch.__enter__<stdlib>/unittest/mock.py:15100.99 ms1.3%
_patch.get_original<stdlib>/unittest/mock.py:14630.99 ms1.3%
resolve_name<stdlib>/pkgutil.py:4810.99 ms1.3%
import_module<stdlib>/importlib/__init__.py:880.99 ms1.3%
_gcd_import<frozen importlib._bootstrap>:13890.99 ms1.3%
_find_and_load<frozen importlib._bootstrap>:13530.99 ms1.3%
_find_and_load_unlocked<frozen importlib._bootstrap>:12240.99 ms1.3%
MastodonLoginViewTests.test_pleroma_login_forces_consent_flowmastodon_auth/tests.py:165 Instance.objects.create(0.99 ms1.3%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:870.99 ms1.3%
QuerySet.createdjango/db/models/query.py:7360.99 ms1.3%
Model.savedjango/db/models/base.py:9040.99 ms1.3%
Model.save_basedjango/db/models/base.py:9960.99 ms1.3%
Model._save_tabledjango/db/models/base.py:11990.99 ms1.3%
Model._do_insertdjango/db/models/base.py:12510.99 ms1.3%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:870.99 ms1.3%
QuerySet._insertdjango/db/models/query.py:21410.99 ms1.3%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19360.99 ms1.3%
CursorWrapper.executedjango/db/backends/utils.py:790.99 ms1.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:920.99 ms1.3%
CursorWrapper._executedjango/db/backends/utils.py:1050.99 ms1.3%
Cursor.executepsycopg/cursor.py:1130.99 ms1.3%
Connection.waitpsycopg/connection.py:4950.99 ms1.3%
MastodonLoginViewTests.test_pleroma_login_forces_consent_flowmastodon_auth/tests.py:172 Instance.objects.create(0.99 ms1.3%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:870.99 ms1.3%
QuerySet.createdjango/db/models/query.py:7360.99 ms1.3%
Model.savedjango/db/models/base.py:9040.99 ms1.3%
Model.save_basedjango/db/models/base.py:9960.99 ms1.3%
Model._save_tabledjango/db/models/base.py:11990.99 ms1.3%
Model._do_insertdjango/db/models/base.py:12510.99 ms1.3%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:870.99 ms1.3%
QuerySet._insertdjango/db/models/query.py:21410.99 ms1.3%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19350.99 ms1.3%
SQLInsertCompiler.as_sqldjango/db/models/sql/compiler.py:18800.99 ms1.3%
SQLInsertCompiler.assemble_as_sqldjango/db/backends/postgresql/compiler.py:550.99 ms1.3%
SQLInsertCompiler.assemble_as_sqldjango/db/models/sql/compiler.py:17940.99 ms1.3%
SQLInsertCompiler.assemble_as_sql.<locals>.<genexpr>django/db/models/sql/compiler.py:17900.99 ms1.3%
SQLInsertCompiler.assemble_as_sql.<locals>.<genexpr>django/db/models/sql/compiler.py:17790.99 ms1.3%
SQLInsertCompiler.assemble_as_sql.<locals>.<genexpr>.<genexpr>django/db/models/sql/compiler.py:17790.99 ms1.3%
TransactionTestCase._post_teardowndjango/test/testcases.py:1243 self._fixture_teardown()0.99 ms1.3%
TestCase._fixture_teardowndjango/test/testcases.py:15000.99 ms1.3%
TestCase._rollback_atomicsdjango/test/testcases.py:14080.99 ms1.3%
Atomic.__exit__django/db/transaction.py:2950.99 ms1.3%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:260.99 ms1.3%
BaseDatabaseWrapper.savepoint_rollbackdjango/db/backends/base/base.py:4130.99 ms1.3%
BaseDatabaseWrapper._savepoint_rollbackdjango/db/backends/base/base.py:3710.99 ms1.3%
CursorWrapper.executedjango/db/backends/utils.py:790.99 ms1.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:920.99 ms1.3%
CursorWrapper._executedjango/db/backends/utils.py:1030.99 ms1.3%
Cursor.executepsycopg/cursor.py:1130.99 ms1.3%
Connection.waitpsycopg/connection.py:4950.99 ms1.3%
BaseCursor._execute_genpsycopg/_cursor_base.py:2060.99 ms1.3%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2860.99 ms1.3%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:780.99 ms1.3%
teardown5 ms6.3%
TestCase.tearDownClassdjango/test/testcases.py:1458 conn.close()4 ms5.1%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:264 ms5.1%
BaseDatabaseWrapper.closedjango/db/backends/base/base.py:3554 ms5.1%
DatabaseWrapper._closedjango/db/backends/postgresql/base.py:4084 ms5.1%
Connection.closepsycopg/connection.py:2014 ms5.1%
Estimated from 74 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
mastodon_auth/tests.py:180
pleroma = self.client.post("/mastodon_login/", {"instance": "pleroma.example"})
MastodonLoginViewTests.test_pleroma_login_forces_consent_flow
· Mocking
|
58 ms |
|
mastodon_auth/views.py:82
instance = Instance.objects.filter(url=api_base_url).first()
login
· Database
|
4 ms |
|
mastodon_auth/tests.py:165
Instance.objects.create(
MastodonLoginViewTests.test_pleroma_login_forces_consent_flow
· Database
|
0.99 ms |
|
mastodon_auth/tests.py:172
Instance.objects.create(
MastodonLoginViewTests.test_pleroma_login_forces_consent_flow
· Database
|
0.99 ms |
|
mastodon_auth/tests.py:181
mastodon = self.client.post("/mastodon_login/", {"instance": "mastodon.example"})
MastodonLoginViewTests.test_pleroma_login_forces_consent_flow
· Mocking
|
0.99 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_set_urlconf function | 0.03 ms |
| _live_server_helper function | 0.03 ms |
| _django_isolate_apps function | 0.03 ms |
| _django_clear_site_cache function | 0.02 ms |
| monkeypatch function | 0.02 ms |
Database
9 queries · 3 msNo repeated queries.
Biggest pieces of work
|
call test body
mastodon_auth/tests.py:180
|
65 ms |
|
teardown tearDownClass
django/test/testcases.py:1458
|
4 ms |
|
call _pre_setup
django/test/testcases.py:1167
|
0.99 ms |
|
call decoration_helper
<stdlib>/unittest/mock.py:1418
|
0.99 ms |
|
call _post_teardown
django/test/testcases.py:1243
|
0.99 ms |
Reliability
14 results · 0 CI failures · 0 local failuresThis test hasn't failed recently.
History
Latest 14 results, oldest first in the strip| When | Environment | Outcome | Duration | |
|---|---|---|---|---|
| 2 weeks ago | CI github-actions:test | passed | 74 ms | Profile |
| 2 weeks, 5 days ago | CI github-actions:test | passed | 124 ms | Profile |
| 2 weeks, 6 days ago | CI github-actions:test | passed | 92 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 80 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 96 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 74 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 60 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 77 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 88 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 56 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 176 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 180 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 204 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 91 ms | Run |