Tests / starter_packs/tests.py
TestToggleStarterPackAccount::test_add_account
First seen 1 year, 11 months ago in fd2a55f
CI
github-actions:test
13 runs
Average
216 ms
median 215 ms
max 339 ms
max 339 ms
Phases
Setup 40 ms
Call 175 ms
Teardown 0.40 ms
Categories
Database 105 ms
Factories 3 ms
Test code 0.13 ms
App code 0.08 ms
Other (Libraries, pytest, Deep copies, Unsampled, ...) 107 ms
42 database queries per run
Needs 57 KB of memory (max 560 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 2 weeks ago ·
open run
setup39 ms23.3%
TestCase.setUpClassdjango/test/testcases.py:1442 cls.setUpTestData()27 ms16.2%
TestToggleStarterPackAccount.setUpTestDatastarter_packs/tests.py:358 baker.make("mastodon_auth.AccountAccess", user=cls.user)13 ms7.8%
makemodel_bakery/baker.py:17513 ms7.8%
Baker.makemodel_bakery/baker.py:45413 ms7.8%
Baker._makemodel_bakery/baker.py:52911 ms6.5%
Baker.generate_valuemodel_bakery/baker.py:101911 ms6.5%
gen_relatedmodel_bakery/random_gen.py:45411 ms6.5%
makemodel_bakery/baker.py:17511 ms6.5%
Baker.makemodel_bakery/baker.py:45411 ms6.5%
Baker._makemodel_bakery/baker.py:5429 ms5.2%
Baker.instancemodel_bakery/baker.py:6599 ms5.2%
Model.savedjango/db/models/base.py:9049 ms5.2%
Model.save_basedjango/db/models/base.py:9969 ms5.2%
Model._save_tabledjango/db/models/base.py:11999 ms5.2%
Model._do_insertdjango/db/models/base.py:12519 ms5.2%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:879 ms5.2%
QuerySet._insertdjango/db/models/query.py:21419 ms5.2%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19369 ms5.2%
CursorWrapper.executedjango/db/backends/utils.py:799 ms5.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:929 ms5.2%
CursorWrapper._executedjango/db/backends/utils.py:1059 ms5.2%
Cursor.executepsycopg/cursor.py:1139 ms5.2%
Connection.waitpsycopg/connection.py:4959 ms5.2%
BaseCursor._execute_genpsycopg/_cursor_base.py:2051 ms0.6%
BaseCursor._convert_querypsycopg/_cursor_base.py:4651 ms0.6%
PostgresClientQuery.convertpsycopg/_queries.py:2891 ms0.6%
PostgresClientQuery.dumppsycopg/_queries.py:2991 ms0.6%
PostgresClientQuery.dump.<locals>.<genexpr>psycopg/_queries.py:3001 ms0.6%
Baker._makemodel_bakery/baker.py:5291 ms0.6%
Baker.generate_valuemodel_bakery/baker.py:10191 ms0.6%
gen_stringmodel_bakery/random_gen.py:2701 ms0.6%
gen_string.<locals>.<genexpr>model_bakery/random_gen.py:2701 ms0.6%
Baker._makemodel_bakery/baker.py:5011 ms0.6%
Baker._skip_fieldmodel_bakery/baker.py:7521 ms0.6%
Baker._makemodel_bakery/baker.py:5422 ms1.3%
Baker.instancemodel_bakery/baker.py:6592 ms1.3%
Model.savedjango/db/models/base.py:9042 ms1.3%
Model.save_basedjango/db/models/base.py:9962 ms1.3%
Model._save_tabledjango/db/models/base.py:11992 ms1.3%
Model._do_insertdjango/db/models/base.py:12512 ms1.3%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms1.3%
QuerySet._insertdjango/db/models/query.py:21412 ms1.3%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19362 ms1.3%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.3%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.3%
Cursor.executepsycopg/cursor.py:1132 ms1.3%
Connection.waitpsycopg/connection.py:4952 ms1.3%
TestToggleStarterPackAccount.setUpTestDatastarter_packs/tests.py:357 cls.user = baker.make("auth.User")8 ms4.5%
makemodel_bakery/baker.py:1758 ms4.5%
Baker.makemodel_bakery/baker.py:4548 ms4.5%
Baker._makemodel_bakery/baker.py:5428 ms4.5%
Baker.instancemodel_bakery/baker.py:6598 ms4.5%
AbstractBaseUser.savedjango/contrib/auth/base_user.py:628 ms4.5%
Model.savedjango/db/models/base.py:9048 ms4.5%
Model.save_basedjango/db/models/base.py:9968 ms4.5%
Model._save_tabledjango/db/models/base.py:11998 ms4.5%
Model._do_insertdjango/db/models/base.py:12518 ms4.5%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:878 ms4.5%
QuerySet._insertdjango/db/models/query.py:21418 ms4.5%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19368 ms4.5%
CursorWrapper.executedjango/db/backends/utils.py:798 ms4.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:928 ms4.5%
CursorWrapper._executedjango/db/backends/utils.py:1058 ms4.5%
Cursor.executepsycopg/cursor.py:1138 ms4.5%
Connection.waitpsycopg/connection.py:4958 ms4.5%
TestToggleStarterPackAccount.setUpTestDatastarter_packs/tests.py:359 cls.starter_pack = baker.make("starter_packs.StarterPack", created_by=cls.user)3 ms1.9%
makemodel_bakery/baker.py:1753 ms1.9%
Baker.makemodel_bakery/baker.py:4543 ms1.9%
Baker._makemodel_bakery/baker.py:5423 ms1.9%
Baker.instancemodel_bakery/baker.py:6593 ms1.9%
Model.savedjango/db/models/base.py:9043 ms1.9%
Model.save_basedjango/db/models/base.py:9963 ms1.9%
Model._save_tabledjango/db/models/base.py:11993 ms1.9%
Model._do_insertdjango/db/models/base.py:12513 ms1.9%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:873 ms1.9%
QuerySet._insertdjango/db/models/query.py:21413 ms1.9%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19363 ms1.9%
CursorWrapper.executedjango/db/backends/utils.py:793 ms1.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms1.9%
CursorWrapper._executedjango/db/backends/utils.py:1053 ms1.9%
Cursor.executepsycopg/cursor.py:1133 ms1.9%
Connection.waitpsycopg/connection.py:4953 ms1.9%
TestToggleStarterPackAccount.setUpTestDatastarter_packs/tests.py:360 cls.starter_pack.owners.add(cls.user)3 ms1.9%
create_forward_many_to_many_manager.<locals>.ManyRelatedManager.adddjango/db/models/fields/related_descriptors.py:13243 ms1.9%
create_forward_many_to_many_manager.<locals>.ManyRelatedManager._add_basedjango/db/models/fields/related_descriptors.py:13013 ms1.9%
create_forward_many_to_many_manager.<locals>.ManyRelatedManager._add_itemsdjango/db/models/fields/related_descriptors.py:16033 ms1.9%
QuerySet.bulk_createdjango/db/models/query.py:9003 ms1.9%
QuerySet._batched_insertdjango/db/models/query.py:21793 ms1.9%
QuerySet._insertdjango/db/models/query.py:21413 ms1.9%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19363 ms1.9%
CursorWrapper.executedjango/db/backends/utils.py:793 ms1.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms1.9%
CursorWrapper._executedjango/db/backends/utils.py:1053 ms1.9%
Cursor.executepsycopg/cursor.py:1133 ms1.9%
Connection.waitpsycopg/connection.py:4953 ms1.9%
TestCase.setUpClassdjango/test/testcases.py:1426 cls.cls_atomics = cls._enter_atomics()11 ms6.5%
TestCase._enter_atomicsdjango/test/testcases.py:139911 ms6.5%
Atomic.__enter__django/db/transaction.py:21011 ms6.5%
BaseDatabaseWrapper.get_autocommitdjango/db/backends/base/base.py:45411 ms6.5%
SimpleTestCase.ensure_connection_patch_method.<locals>.patched_ensure_connectiondjango/test/testcases.py:30411 ms6.5%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2611 ms6.5%
BaseDatabaseWrapper.ensure_connectiondjango/db/backends/base/base.py:27911 ms6.5%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2611 ms6.5%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:25611 ms6.5%
DatabaseWrapper.get_new_connectionfedidevs/db/postgresql/base.py:39 return super().get_new_connection(conn_params)11 ms6.5%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2611 ms6.5%
DatabaseWrapper.get_new_connectiondjango/db/backends/postgresql/base.py:34511 ms6.5%
Connection.connectpsycopg/connection.py:10910 ms5.8%
wait_connpsycopg/waiting.py:1416 ms3.9%
EpollSelector.select<stdlib>/selectors.py:4526 ms3.9%
wait_connpsycopg/waiting.py:1453 ms1.9%
BaseConnection._connect_genpsycopg/_connection_base.py:4393 ms1.9%
Connection.connectpsycopg/connection.py:1071 ms0.6%
make_conninfopsycopg/conninfo.py:591 ms0.6%
make_conninfo.<locals>.<genexpr>psycopg/conninfo.py:591 ms0.6%
_param_escapepsycopg/conninfo.py:1171 ms0.6%
__init____init__:-11 ms0.6%
call127 ms76.5%
TestToggleStarterPackAccount.test_add_accountstarter_packs/tests.py:365 response = self.client.post(89 ms53.7%
Client.postdjango/test/client.py:116289 ms53.7%
RequestFactory.postdjango/test/client.py:49989 ms53.7%
RequestFactory.genericdjango/test/client.py:67189 ms53.7%
Client.requestdjango/test/client.py:109189 ms53.7%
ClientHandler.__call__django/test/client.py:18656 ms33.8%
BaseHandler.get_responsedjango/core/handlers/base.py:14256 ms33.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5656 ms33.8%
MiddlewareMixin.__call__django/utils/deprecation.py:38056 ms33.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5656 ms33.8%
MiddlewareMixin.__call__django/utils/deprecation.py:38056 ms33.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5656 ms33.8%
MiddlewareMixin.__call__django/utils/deprecation.py:38056 ms33.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5656 ms33.8%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12356 ms33.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5656 ms33.8%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:14556 ms33.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5656 ms33.8%
MiddlewareMixin.__call__django/utils/deprecation.py:38056 ms33.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5656 ms33.8%
MiddlewareMixin.__call__django/utils/deprecation.py:38056 ms33.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5656 ms33.8%
MiddlewareMixin.__call__django/utils/deprecation.py:38056 ms33.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5656 ms33.8%
MiddlewareMixin.__call__django/utils/deprecation.py:38056 ms33.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5656 ms33.8%
MiddlewareMixin.__call__django/utils/deprecation.py:38056 ms33.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5656 ms33.8%
MiddlewareMixin.__call__django/utils/deprecation.py:38056 ms33.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5656 ms33.8%
MiddlewareMixin.__call__django/utils/deprecation.py:38056 ms33.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5656 ms33.8%
BaseHandler._get_responsedjango/core/handlers/base.py:19956 ms33.8%
user_passes_test.<locals>.decorator.<locals>._view_wrapperdjango/contrib/auth/decorators.py:6254 ms32.4%
toggle_account_to_starter_packstarter_packs/views.py:657 ).count()33 ms19.9%
QuerySet.countdjango/db/models/query.py:67733 ms19.9%
Query.get_countdjango/db/models/sql/query.py:65733 ms19.9%
Query.get_aggregationdjango/db/models/sql/query.py:63933 ms19.9%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:162533 ms19.9%
CursorWrapper.executedjango/db/backends/utils.py:7933 ms19.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9233 ms19.9%
CursorWrapper._executedjango/db/backends/utils.py:10533 ms19.9%
Cursor.executepsycopg/cursor.py:11333 ms19.9%
Connection.waitpsycopg/connection.py:49533 ms19.9%
BaseCursor._execute_genpsycopg/_cursor_base.py:20632 ms19.1%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:28632 ms19.1%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:7832 ms19.1%
toggle_account_to_starter_packstarter_packs/views.py:66012 ms7.4%
get_splash_image_signaturestarter_packs/splash_images.py:8812 ms7.4%
get_splash_image_accountsstarter_packs/splash_images.py:77 return list(accounts)12 ms7.4%
QuerySet.__iter__django/db/models/query.py:43912 ms7.4%
QuerySet._fetch_alldjango/db/models/query.py:226212 ms7.4%
ModelIterable.__iter__django/db/models/query.py:10312 ms7.4%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16257 ms4.4%
CursorWrapper.executedjango/db/backends/utils.py:797 ms4.4%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:927 ms4.4%
CursorWrapper._executedjango/db/backends/utils.py:1057 ms4.4%
Cursor.executepsycopg/cursor.py:1137 ms4.4%
Connection.waitpsycopg/connection.py:4957 ms4.4%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16125 ms2.9%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7685 ms2.9%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:965 ms2.9%
toggle_account_to_starter_packstarter_packs/views.py:658 starter_pack.save(update_fields=["num_accounts"])5 ms2.9%
Model.savedjango/db/models/base.py:9045 ms2.9%
Model.save_basedjango/db/models/base.py:9965 ms2.9%
Model._save_tabledjango/db/models/base.py:11405 ms2.9%
Model._do_updatedjango/db/models/base.py:12445 ms2.9%
QuerySet._updatedjango/db/models/query.py:14485 ms2.9%
SQLUpdateCompiler.execute_returning_sqldjango/db/models/sql/compiler.py:21505 ms2.9%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21215 ms2.9%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16255 ms2.9%
CursorWrapper.executedjango/db/backends/utils.py:795 ms2.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:925 ms2.9%
CursorWrapper._executedjango/db/backends/utils.py:1055 ms2.9%
Cursor.executepsycopg/cursor.py:1135 ms2.9%
Connection.waitpsycopg/connection.py:4955 ms2.9%
toggle_account_to_starter_packstarter_packs/views.py:674 "num_accounts": StarterPackAccount.objects.filter(starter_pack=starter_pack).count(),2 ms1.5%
QuerySet.countdjango/db/models/query.py:6772 ms1.5%
Query.get_countdjango/db/models/sql/query.py:6572 ms1.5%
Query.get_aggregationdjango/db/models/sql/query.py:6392 ms1.5%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16252 ms1.5%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.5%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.5%
Cursor.executepsycopg/cursor.py:1132 ms1.5%
Connection.waitpsycopg/connection.py:4952 ms1.5%
BaseCursor._execute_genpsycopg/_cursor_base.py:2061 ms0.7%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2861 ms0.7%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:781 ms0.7%
toggle_account_to_starter_packstarter_packs/views.py:673 "review": request.POST.get("review"),1 ms0.7%
WSGIRequest._get_postdjango/core/handlers/wsgi.py:931 ms0.7%
HttpRequest._load_post_and_filesdjango/http/request.py:4691 ms0.7%
HttpRequest.parse_file_uploaddjango/http/request.py:3971 ms0.7%
MultiPartParser.parsedjango/http/multipartparser.py:1251 ms0.7%
MultiPartParser._parsedjango/http/multipartparser.py:1881 ms0.7%
Parser.__iter__django/http/multipartparser.py:7591 ms0.7%
parse_boundary_streamdjango/http/multipartparser.py:7031 ms0.7%
LazyStream.readdjango/http/multipartparser.py:4731 ms0.7%
LazyStream.read.<locals>.partsdjango/http/multipartparser.py:4641 ms0.7%
LazyStream.__next__django/http/multipartparser.py:4861 ms0.7%
BoundaryIter.__next__django/http/multipartparser.py:6231 ms0.7%
LazyStream.__next__django/http/multipartparser.py:4861 ms0.7%
ChunkIter.__next__django/http/multipartparser.py:5591 ms0.7%
Atomic.__exit__django/db/transaction.py:2592 ms1.5%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms1.5%
BaseDatabaseWrapper.savepoint_commitdjango/db/backends/base/base.py:4312 ms1.5%
BaseDatabaseWrapper._savepoint_commitdjango/db/backends/base/base.py:3752 ms1.5%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.5%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms1.5%
Cursor.executepsycopg/cursor.py:1132 ms1.5%
Connection.waitpsycopg/connection.py:4952 ms1.5%
ClientHandler.__call__django/test/client.py:17333 ms19.9%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6332 ms19.1%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10432 ms19.1%
WhiteNoise.add_fileswhitenoise/base.py:10832 ms19.1%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12019 ms11.8%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13119 ms11.8%
WhiteNoise.get_static_filewhitenoise/base.py:21713 ms8.1%
StaticFile.__init__whitenoise/responders.py:766 ms3.7%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1896 ms3.7%
Headers.__getitem__<stdlib>/wsgiref/headers.py:836 ms3.7%
Headers.get<stdlib>/wsgiref/headers.py:1054 ms2.2%
Headers.get<stdlib>/wsgiref/headers.py:1042 ms1.5%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:501 ms0.7%
StaticFile.__init__whitenoise/responders.py:736 ms3.7%
StaticFile.get_headerswhitenoise/responders.py:1814 ms2.2%
Headers.__setitem__<stdlib>/wsgiref/headers.py:624 ms2.2%
Headers.__delitem__<stdlib>/wsgiref/headers.py:724 ms2.2%
StaticFile.get_headerswhitenoise/responders.py:1762 ms1.5%
WhiteNoise.get_static_filewhitenoise/base.py:2126 ms3.7%
WhiteNoise.add_cache_headerswhitenoise/base.py:2336 ms3.7%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1765 ms2.9%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1975 ms2.9%
URLMixin.urldebug_toolbar/panels/staticfiles.py:215 ms2.9%
<GC>~5 ms2.9%
WhiteNoise.update_files_dictionarywhitenoise/base.py:11512 ms7.4%
scantreewhitenoise/base.py:27112 ms7.4%
scantreewhitenoise/base.py:27112 ms7.4%
scantreewhitenoise/base.py:27311 ms6.6%
scantreewhitenoise/base.py:2711 ms0.7%
scantreewhitenoise/base.py:2711 ms0.7%
scantreewhitenoise/base.py:2711 ms0.7%
scantreewhitenoise/base.py:2731 ms0.7%
BaseHandler.load_middlewaredjango/core/handlers/base.py:821 ms0.7%
TestToggleStarterPackAccount.test_add_accountstarter_packs/tests.py:364 self.client.force_login(self.user)23 ms14.0%
ClientMixin.force_logindjango/test/client.py:85823 ms14.0%
ClientMixin._logindjango/test/client.py:88911 ms6.6%
logindjango/contrib/auth/__init__.py:1897 ms4.4%
SessionBase.cycle_keydjango/contrib/sessions/backends/base.py:4374 ms2.2%
SessionStore.createdjango/contrib/sessions/backends/db.py:702 ms1.5%
SessionBase._get_new_session_keydjango/contrib/sessions/backends/base.py:2012 ms1.5%
SessionStore.existsdjango/contrib/sessions/backends/db.py:632 ms1.5%
QuerySet.existsdjango/db/models/query.py:14582 ms1.5%
Query.has_resultsdjango/db/models/sql/query.py:6851 ms0.7%
Query.existsdjango/db/models/sql/query.py:6811 ms0.7%
Query.add_annotationdjango/db/models/sql/query.py:12431 ms0.7%
Value.resolve_expressiondjango/db/models/expressions.py:12081 ms0.7%
BaseExpression.resolve_expressiondjango/db/models/expressions.py:2971 ms0.7%
BaseExpression.copydjango/db/models/expressions.py:4441 ms0.7%
copy<stdlib>/copy.py:1001 ms0.7%
Query.has_resultsdjango/db/models/sql/query.py:6871 ms0.7%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15931 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16251 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:791 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms0.7%
Cursor.executepsycopg/cursor.py:1131 ms0.7%
Connection.waitpsycopg/connection.py:4951 ms0.7%
BaseCursor._execute_genpsycopg/_cursor_base.py:2061 ms0.7%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2861 ms0.7%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:781 ms0.7%
SessionStore.createdjango/contrib/sessions/backends/db.py:741 ms0.7%
SessionStore.savedjango/contrib/sessions/backends/db.py:1271 ms0.7%
Model.savedjango/db/models/base.py:9041 ms0.7%
Model.save_basedjango/db/models/base.py:9961 ms0.7%
Model._save_tabledjango/db/models/base.py:11991 ms0.7%
Model._do_insertdjango/db/models/base.py:12511 ms0.7%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:871 ms0.7%
QuerySet._insertdjango/db/models/query.py:21411 ms0.7%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19361 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:791 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms0.7%
Cursor.executepsycopg/cursor.py:1131 ms0.7%
Connection.waitpsycopg/connection.py:4951 ms0.7%
BaseCursor._execute_genpsycopg/_cursor_base.py:2061 ms0.7%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2861 ms0.7%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:781 ms0.7%
SessionBase.cycle_keydjango/contrib/sessions/backends/base.py:4404 ms2.2%
SessionStore.deletedjango/contrib/sessions/backends/db.py:1754 ms2.2%
Model.deletedjango/db/models/base.py:13312 ms1.5%
Collector.deletedjango/db/models/deletion.py:4832 ms1.5%
DeleteQuery.delete_batchdjango/db/models/sql/subqueries.py:432 ms1.5%
DeleteQuery.do_querydjango/db/models/sql/subqueries.py:252 ms1.5%
Query.get_compilerdjango/db/models/sql/query.py:3751 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16251 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:791 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms0.7%
Cursor.executepsycopg/cursor.py:1131 ms0.7%
Connection.waitpsycopg/connection.py:4951 ms0.7%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:871 ms0.7%
QuerySet.getdjango/db/models/query.py:7021 ms0.7%
QuerySet.__len__django/db/models/query.py:4211 ms0.7%
QuerySet._fetch_alldjango/db/models/query.py:22621 ms0.7%
ModelIterable.__iter__django/db/models/query.py:1031 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16121 ms0.7%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7681 ms0.7%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:911 ms0.7%
WhereNode.split_having_qualifydjango/db/models/sql/where.py:471 ms0.7%
logindjango/contrib/auth/__init__.py:1982 ms1.5%
Signal.senddjango/dispatch/dispatcher.py:2492 ms1.5%
update_last_logindjango/contrib/auth/models.py:242 ms1.5%
AbstractBaseUser.savedjango/contrib/auth/base_user.py:622 ms1.5%
Model.savedjango/db/models/base.py:9042 ms1.5%
Model.save_basedjango/db/models/base.py:9962 ms1.5%
Model._save_tabledjango/db/models/base.py:11402 ms1.5%
Model._do_updatedjango/db/models/base.py:12442 ms1.5%
QuerySet._updatedjango/db/models/query.py:14482 ms1.5%
SQLUpdateCompiler.execute_returning_sqldjango/db/models/sql/compiler.py:21502 ms1.5%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21212 ms1.5%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16252 ms1.5%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.5%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.5%
Cursor.executepsycopg/cursor.py:1132 ms1.5%
Connection.waitpsycopg/connection.py:4952 ms1.5%
logindjango/contrib/auth/__init__.py:1771 ms0.7%
SessionBase.__contains__django/contrib/sessions/backends/base.py:521 ms0.7%
SessionBase._get_sessiondjango/contrib/sessions/backends/base.py:2541 ms0.7%
SessionStore.loaddjango/contrib/sessions/backends/db.py:551 ms0.7%
SessionStore._get_session_from_dbdjango/contrib/sessions/backends/db.py:341 ms0.7%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:871 ms0.7%
QuerySet.getdjango/db/models/query.py:7021 ms0.7%
QuerySet.__len__django/db/models/query.py:4211 ms0.7%
QuerySet._fetch_alldjango/db/models/query.py:22621 ms0.7%
ModelIterable.__iter__django/db/models/query.py:1031 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16251 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:791 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms0.7%
Cursor.executepsycopg/cursor.py:1131 ms0.7%
Connection.waitpsycopg/connection.py:4951 ms0.7%
BaseCursor._execute_genpsycopg/_cursor_base.py:2061 ms0.7%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2861 ms0.7%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:781 ms0.7%
ClientMixin._logindjango/test/client.py:88410 ms5.9%
ClientMixin.sessiondjango/test/client.py:81510 ms5.9%
SessionStore.savedjango/contrib/sessions/backends/db.py:12110 ms5.9%
SessionStore.createdjango/contrib/sessions/backends/db.py:709 ms5.1%
SessionBase._get_new_session_keydjango/contrib/sessions/backends/base.py:2019 ms5.1%
SessionStore.existsdjango/contrib/sessions/backends/db.py:639 ms5.1%
QuerySet.existsdjango/db/models/query.py:14589 ms5.1%
Query.has_resultsdjango/db/models/sql/query.py:6879 ms5.1%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15939 ms5.1%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16259 ms5.1%
CursorWrapper.executedjango/db/backends/utils.py:799 ms5.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:929 ms5.1%
CursorWrapper._executedjango/db/backends/utils.py:1059 ms5.1%
Cursor.executepsycopg/cursor.py:1139 ms5.1%
Connection.waitpsycopg/connection.py:4959 ms5.1%
BaseCursor._execute_genpsycopg/_cursor_base.py:2061 ms0.7%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2861 ms0.7%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:781 ms0.7%
SessionStore.createdjango/contrib/sessions/backends/db.py:741 ms0.7%
SessionStore.savedjango/contrib/sessions/backends/db.py:1271 ms0.7%
Model.savedjango/db/models/base.py:9041 ms0.7%
Model.save_basedjango/db/models/base.py:9961 ms0.7%
Model._save_tabledjango/db/models/base.py:11991 ms0.7%
Model._do_insertdjango/db/models/base.py:12511 ms0.7%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:871 ms0.7%
QuerySet._insertdjango/db/models/query.py:21411 ms0.7%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19361 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:791 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms0.7%
Cursor.executepsycopg/cursor.py:1131 ms0.7%
Connection.waitpsycopg/connection.py:4951 ms0.7%
BaseCursor._execute_genpsycopg/_cursor_base.py:2061 ms0.7%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2861 ms0.7%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:781 ms0.7%
ClientMixin._logindjango/test/client.py:8912 ms1.5%
SessionStore.savedjango/contrib/sessions/backends/db.py:1231 ms0.7%
SessionStore.create_model_instancedjango/contrib/sessions/backends/db.py:1021 ms0.7%
SessionStore.savedjango/contrib/sessions/backends/db.py:1271 ms0.7%
Model.savedjango/db/models/base.py:9041 ms0.7%
Model.save_basedjango/db/models/base.py:9961 ms0.7%
Model._save_tabledjango/db/models/base.py:11401 ms0.7%
Model._do_updatedjango/db/models/base.py:12441 ms0.7%
QuerySet._updatedjango/db/models/query.py:14481 ms0.7%
SQLUpdateCompiler.execute_returning_sqldjango/db/models/sql/compiler.py:21501 ms0.7%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21211 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16251 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:791 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms0.7%
Cursor.executepsycopg/cursor.py:1131 ms0.7%
Connection.waitpsycopg/connection.py:4951 ms0.7%
TestToggleStarterPackAccount.test_add_accountstarter_packs/tests.py:363 account = baker.make("accounts.Account", discoverable=True)5 ms2.9%
makemodel_bakery/baker.py:1755 ms2.9%
Baker.makemodel_bakery/baker.py:4545 ms2.9%
Baker._makemodel_bakery/baker.py:5424 ms2.2%
Baker.instancemodel_bakery/baker.py:6594 ms2.2%
Model.savedjango/db/models/base.py:9044 ms2.2%
Model.save_basedjango/db/models/base.py:9964 ms2.2%
Model._save_tabledjango/db/models/base.py:11994 ms2.2%
Model._do_insertdjango/db/models/base.py:12514 ms2.2%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:874 ms2.2%
QuerySet._insertdjango/db/models/query.py:21414 ms2.2%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19362 ms1.5%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.5%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms0.7%
Cursor.executepsycopg/cursor.py:1131 ms0.7%
Connection.waitpsycopg/connection.py:4951 ms0.7%
BaseCursor._execute_genpsycopg/_cursor_base.py:2061 ms0.7%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2861 ms0.7%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:781 ms0.7%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19351 ms0.7%
SQLInsertCompiler.as_sqldjango/db/models/sql/compiler.py:-11 ms0.7%
Baker._makemodel_bakery/baker.py:5291 ms0.7%
Baker.generate_valuemodel_bakery/baker.py:10191 ms0.7%
gen_stringmodel_bakery/random_gen.py:2701 ms0.7%
gen_string.<locals>.<genexpr>model_bakery/random_gen.py:2701 ms0.7%
TransactionTestCase._post_teardowndjango/test/testcases.py:1243 self._fixture_teardown()4 ms2.2%
TestCase._fixture_teardowndjango/test/testcases.py:14982 ms1.5%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4952 ms1.5%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.5%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms1.5%
Cursor.executepsycopg/cursor.py:1132 ms1.5%
Connection.waitpsycopg/connection.py:4952 ms1.5%
TestCase._fixture_teardowndjango/test/testcases.py:14971 ms0.7%
TestCase._should_check_constraintsdjango/test/testcases.py:15061 ms0.7%
DatabaseWrapper.is_usabledjango/db/backends/postgresql/base.py:5041 ms0.7%
Cursor.executepsycopg/cursor.py:1131 ms0.7%
Connection.waitpsycopg/connection.py:4951 ms0.7%
TransactionTestCase._pre_setupdjango/test/testcases.py:1167 cls._fixture_setup()2 ms1.5%
TestCase._fixture_setupdjango/test/testcases.py:14812 ms1.5%
TestCase._enter_atomicsdjango/test/testcases.py:13992 ms1.5%
Atomic.__enter__django/db/transaction.py:2232 ms1.5%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms1.5%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4002 ms1.5%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3672 ms1.5%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.5%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms1.5%
Cursor.executepsycopg/cursor.py:1132 ms1.5%
Connection.waitpsycopg/connection.py:4952 ms1.5%
TestToggleStarterPackAccount.test_add_accountstarter_packs/tests.py:375 ).exists()1 ms0.7%
QuerySet.existsdjango/db/models/query.py:14581 ms0.7%
Query.has_resultsdjango/db/models/sql/query.py:6871 ms0.7%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15931 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16251 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:791 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms0.7%
Cursor.executepsycopg/cursor.py:1131 ms0.7%
Connection.waitpsycopg/connection.py:4951 ms0.7%
TestToggleStarterPackAccount.test_add_accountstarter_packs/tests.py:372 self.assertTrue(1 ms0.7%
TransactionTestCase._post_teardowndjango/test/testcases.py:12451 ms0.7%
Estimated from 140 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
starter_packs/tests.py:365
response = self.client.post(
TestToggleStarterPackAccount.test_add_account
· Libraries
|
35 ms |
|
starter_packs/views.py:657
).count()
toggle_account_to_starter_pack
· Database
|
33 ms |
|
starter_packs/tests.py:364
self.client.force_login(self.user)
TestToggleStarterPackAccount.test_add_account
· Database
|
23 ms |
|
starter_packs/tests.py:358
baker.make("mastodon_auth.AccountAccess", user=cls.user)
TestToggleStarterPackAccount.setUpTestData
· Database
|
13 ms |
|
starter_packs/splash_images.py:77
return list(accounts)
get_splash_image_accounts
· Database
|
12 ms |
|
fedidevs/db/postgresql/base.py:39
return super().get_new_connection(conn_params)
DatabaseWrapper.get_new_connection
· Database
|
11 ms |
|
starter_packs/tests.py:357
cls.user = baker.make("auth.User")
TestToggleStarterPackAccount.setUpTestData
· Database
|
8 ms |
|
starter_packs/views.py:658
starter_pack.save(update_fields=["num_accounts"])
toggle_account_to_starter_pack
· Database
|
5 ms |
|
starter_packs/tests.py:363
account = baker.make("accounts.Account", discoverable=True)
TestToggleStarterPackAccount.test_add_account
· Database
|
5 ms |
|
starter_packs/tests.py:359
cls.starter_pack = baker.make("starter_packs.StarterPack", created_by=cls.user)
TestToggleStarterPackAccount.setUpTestData
· Database
|
3 ms |
Fixtures
Exact setup time| _unittest_setUpClass_fixture_TestToggleStarterPackAccount class | 37 ms |
| _django_setup_unittest class | 0.46 ms |
| _dj_autoclear_mailbox function | 0.05 ms |
| _django_db_marker function | 0.04 ms |
| _template_string_if_invalid_marker function | 0.04 ms |
| _django_isolate_apps function | 0.03 ms |
| _live_server_helper function | 0.03 ms |
| _django_set_urlconf function | 0.03 ms |
| _django_clear_site_cache function | 0.02 ms |
| monkeypatch function | 0.02 ms |
Database
42 queries · 66 msNo repeated queries.
Biggest pieces of work
|
call test body
starter_packs/tests.py:365
|
119 ms |
|
setup setUpClass
django/test/testcases.py:1442
|
38 ms |
|
call _post_teardown
django/test/testcases.py:1243
|
5 ms |
|
call _pre_setup
django/test/testcases.py:1167
|
2 ms |
|
setup __init__
__init__:-1
|
1 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 | 165 ms | Profile |
| 2 weeks, 5 days ago | CI github-actions:test | passed | 236 ms | Profile |
| 2 weeks, 6 days ago | CI github-actions:test | passed | 240 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 107 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 277 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 215 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 139 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 198 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 172 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 119 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 339 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 311 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 288 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 114 ms | Run |