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

TestShareStarterPack::test_api_activitypub

First seen 1 year, 2 months ago in 1e2abb0
CI github-actions:test 4 runs
Average
304 ms
median 343 ms
max 416 ms
Phases
Setup 94 ms Call 210 ms Teardown 0.33 ms
Categories
Database 118 ms Factories 13 ms Other (Libraries, pytest, Cache, Unsampled) 173 ms

34 database queries per run

Needs 409 KB of memory (max 680 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 7 hours ago · open run
Show pytest frames
setup50 ms43.2%
TestCase.setUpClassdjango/test/testcases.py:1442 cls.setUpTestData()37 ms31.9%
TestShareStarterPack.setUpTestDatastarter_packs/tests.py:666 baker.make(16 ms14.1%
makemodel_bakery/baker.py:16616 ms14.1%
Baker.makemodel_bakery/baker.py:45416 ms14.1%
Baker._makemodel_bakery/baker.py:52912 ms10.3%
Baker.generate_valuemodel_bakery/baker.py:10199 ms7.5%
gen_relatedmodel_bakery/random_gen.py:4549 ms7.5%
makemodel_bakery/baker.py:1758 ms6.6%
Baker.makemodel_bakery/baker.py:4548 ms6.6%
Baker._makemodel_bakery/baker.py:5427 ms5.6%
Baker.instancemodel_bakery/baker.py:6597 ms5.6%
Model.savedjango/db/models/base.py:9045 ms4.7%
Model.save_basedjango/db/models/base.py:9964 ms3.8%
Model._save_tabledjango/db/models/base.py:11994 ms3.8%
Model._do_insertdjango/db/models/base.py:12514 ms3.8%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:874 ms3.8%
QuerySet._insertdjango/db/models/query.py:21414 ms3.8%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19363 ms2.8%
CursorWrapper.executedjango/db/backends/utils.py:793 ms2.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms2.8%
CursorWrapper._executedjango/db/backends/utils.py:1053 ms2.8%
Cursor.executepsycopg/cursor.py:1133 ms2.8%
Connection.waitpsycopg/connection.py:4953 ms2.8%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms1.9%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms1.9%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms1.9%
BaseCursor._execute_genpsycopg/_cursor_base.py:2051 ms0.9%
BaseCursor._convert_querypsycopg/_cursor_base.py:4651 ms0.9%
PostgresClientQuery.convertpsycopg/_queries.py:2891 ms0.9%
PostgresClientQuery.dumppsycopg/_queries.py:2991 ms0.9%
PostgresClientQuery.dump.<locals>.<genexpr>psycopg/_queries.py:3001 ms0.9%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19341 ms0.9%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:261 ms0.9%
BaseDatabaseWrapper.cursordjango/db/backends/base/base.py:3201 ms0.9%
BaseDatabaseWrapper._cursordjango/db/backends/base/base.py:2981 ms0.9%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:261 ms0.9%
DatabaseWrapper.create_cursordjango/db/backends/postgresql/base.py:4421 ms0.9%
Connection.cursorpsycopg/connection.py:2591 ms0.9%
QuerySet._insertdjango/db/models/query.py:21411 ms0.9%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19361 ms0.9%
CursorWrapper.executedjango/db/backends/utils.py:791 ms0.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms0.9%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms0.9%
Cursor.executepsycopg/cursor.py:1131 ms0.9%
Connection.waitpsycopg/connection.py:4951 ms0.9%
BaseCursor._execute_genpsycopg/_cursor_base.py:2061 ms0.9%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2861 ms0.9%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:781 ms0.9%
AbstractBaseUser.savedjango/contrib/auth/base_user.py:621 ms0.9%
Model.savedjango/db/models/base.py:9041 ms0.9%
Model.save_basedjango/db/models/base.py:9961 ms0.9%
Model._save_tabledjango/db/models/base.py:11991 ms0.9%
Model._do_insertdjango/db/models/base.py:12511 ms0.9%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:871 ms0.9%
QuerySet._insertdjango/db/models/query.py:21411 ms0.9%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19361 ms0.9%
CursorWrapper.executedjango/db/backends/utils.py:791 ms0.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms0.9%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms0.9%
Cursor.executepsycopg/cursor.py:1131 ms0.9%
Connection.waitpsycopg/connection.py:4951 ms0.9%
BaseCursor._execute_genpsycopg/_cursor_base.py:2061 ms0.9%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2861 ms0.9%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:781 ms0.9%
Baker._makemodel_bakery/baker.py:5011 ms0.9%
Baker._skip_fieldmodel_bakery/baker.py:7301 ms0.9%
makemodel_bakery/baker.py:1471 ms0.9%
Baker.generate_valuemodel_bakery/baker.py:10052 ms1.9%
Baker.generate_valuemodel_bakery/baker.py:10021 ms0.9%
Baker._makemodel_bakery/baker.py:5424 ms3.8%
Baker.instancemodel_bakery/baker.py:6594 ms3.8%
Model.savedjango/db/models/base.py:9044 ms3.8%
Model.save_basedjango/db/models/base.py:9964 ms3.8%
Model._save_tabledjango/db/models/base.py:11994 ms3.8%
Model._do_insertdjango/db/models/base.py:12514 ms3.8%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:874 ms3.8%
QuerySet._insertdjango/db/models/query.py:21414 ms3.8%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19363 ms2.8%
CursorWrapper.executedjango/db/backends/utils.py:793 ms2.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms2.8%
CursorWrapper._executedjango/db/backends/utils.py:1053 ms2.8%
Cursor.executepsycopg/cursor.py:1133 ms2.8%
Connection.waitpsycopg/connection.py:4953 ms2.8%
BaseCursor._execute_genpsycopg/_cursor_base.py:2063 ms2.8%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2863 ms2.8%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:783 ms2.8%
TestShareStarterPack.setUpTestDatastarter_packs/tests.py:658 baker.make(11 ms9.4%
makemodel_bakery/baker.py:17511 ms9.4%
Baker.makemodel_bakery/baker.py:45411 ms9.4%
Baker._makemodel_bakery/baker.py:52910 ms8.5%
Baker.generate_valuemodel_bakery/baker.py:101910 ms8.5%
gen_relatedmodel_bakery/random_gen.py:45410 ms8.5%
makemodel_bakery/baker.py:17510 ms8.5%
Baker.makemodel_bakery/baker.py:45410 ms8.5%
Baker._makemodel_bakery/baker.py:5429 ms7.5%
Baker.instancemodel_bakery/baker.py:6599 ms7.5%
Model.savedjango/db/models/base.py:9049 ms7.5%
Model.save_basedjango/db/models/base.py:9969 ms7.5%
Model._save_tabledjango/db/models/base.py:11999 ms7.5%
Model._do_insertdjango/db/models/base.py:12519 ms7.5%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:879 ms7.5%
QuerySet._insertdjango/db/models/query.py:21419 ms7.5%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19369 ms7.5%
CursorWrapper.executedjango/db/backends/utils.py:799 ms7.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:928 ms6.6%
CursorWrapper._executedjango/db/backends/utils.py:1058 ms6.6%
Cursor.executepsycopg/cursor.py:1138 ms6.6%
Connection.waitpsycopg/connection.py:4958 ms6.6%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms1.9%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms1.9%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms1.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:901 ms0.9%
Baker._makemodel_bakery/baker.py:5011 ms0.9%
Baker._skip_fieldmodel_bakery/baker.py:7571 ms0.9%
Baker._makemodel_bakery/baker.py:5421 ms0.9%
Baker.instancemodel_bakery/baker.py:6591 ms0.9%
Model.savedjango/db/models/base.py:9041 ms0.9%
Model.save_basedjango/db/models/base.py:9961 ms0.9%
Model._save_tabledjango/db/models/base.py:11991 ms0.9%
Model._do_insertdjango/db/models/base.py:12511 ms0.9%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:871 ms0.9%
QuerySet._insertdjango/db/models/query.py:21411 ms0.9%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19361 ms0.9%
CursorWrapper.executedjango/db/backends/utils.py:791 ms0.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms0.9%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms0.9%
Cursor.executepsycopg/cursor.py:1131 ms0.9%
Connection.waitpsycopg/connection.py:4951 ms0.9%
BaseCursor._execute_genpsycopg/_cursor_base.py:2061 ms0.9%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2861 ms0.9%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:781 ms0.9%
TestShareStarterPack.setUpTestDatastarter_packs/tests.py:665 instance = baker.make("accounts.Instance")3 ms2.8%
makemodel_bakery/baker.py:1753 ms2.8%
Baker.makemodel_bakery/baker.py:4543 ms2.8%
Baker._makemodel_bakery/baker.py:5423 ms2.8%
Baker.instancemodel_bakery/baker.py:6593 ms2.8%
Model.savedjango/db/models/base.py:9043 ms2.8%
Model.save_basedjango/db/models/base.py:9963 ms2.8%
Model._save_tabledjango/db/models/base.py:11993 ms2.8%
Model._do_insertdjango/db/models/base.py:12513 ms2.8%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:873 ms2.8%
QuerySet._insertdjango/db/models/query.py:21413 ms2.8%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19363 ms2.8%
CursorWrapper.executedjango/db/backends/utils.py:793 ms2.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms2.8%
CursorWrapper._executedjango/db/backends/utils.py:1053 ms2.8%
Cursor.executepsycopg/cursor.py:1133 ms2.8%
Connection.waitpsycopg/connection.py:4953 ms2.8%
BaseCursor._execute_genpsycopg/_cursor_base.py:2063 ms2.8%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2863 ms2.8%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:783 ms2.8%
TestShareStarterPack.setUpTestDatastarter_packs/tests.py:657 cls.user = baker.make("auth.User")3 ms2.8%
makemodel_bakery/baker.py:1753 ms2.8%
Baker.makemodel_bakery/baker.py:4543 ms2.8%
Baker._makemodel_bakery/baker.py:5423 ms2.8%
Baker.instancemodel_bakery/baker.py:6593 ms2.8%
AbstractBaseUser.savedjango/contrib/auth/base_user.py:623 ms2.8%
Model.savedjango/db/models/base.py:9043 ms2.8%
Model.save_basedjango/db/models/base.py:9963 ms2.8%
Model._save_tabledjango/db/models/base.py:11993 ms2.8%
Model._do_insertdjango/db/models/base.py:12513 ms2.8%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:873 ms2.8%
QuerySet._insertdjango/db/models/query.py:21413 ms2.8%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19363 ms2.8%
CursorWrapper.executedjango/db/backends/utils.py:793 ms2.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms2.8%
CursorWrapper._executedjango/db/backends/utils.py:1053 ms2.8%
Cursor.executepsycopg/cursor.py:1133 ms2.8%
Connection.waitpsycopg/connection.py:4953 ms2.8%
BaseCursor._execute_genpsycopg/_cursor_base.py:2041 ms0.9%
BaseCursor._start_querypsycopg/_cursor_base.py:3871 ms0.9%
BaseConnection._start_querypsycopg/_connection_base.py:5531 ms0.9%
BaseConnection._exec_commandpsycopg/_connection_base.py:4741 ms0.9%
TestShareStarterPack.setUpTestDatastarter_packs/tests.py:663 cls.starter_pack = baker.make("starter_packs.StarterPack", created_by=cls.user, num_accounts=5, languages=[])3 ms2.8%
makemodel_bakery/baker.py:1753 ms2.8%
Baker.makemodel_bakery/baker.py:4543 ms2.8%
Baker._makemodel_bakery/baker.py:5422 ms1.9%
Baker.instancemodel_bakery/baker.py:6592 ms1.9%
Model.savedjango/db/models/base.py:9042 ms1.9%
Model.save_basedjango/db/models/base.py:9962 ms1.9%
Model._save_tabledjango/db/models/base.py:11992 ms1.9%
Model._do_insertdjango/db/models/base.py:12512 ms1.9%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms1.9%
QuerySet._insertdjango/db/models/query.py:21412 ms1.9%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19362 ms1.9%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.9%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms0.9%
Cursor.executepsycopg/cursor.py:1131 ms0.9%
Connection.waitpsycopg/connection.py:4951 ms0.9%
Baker._makemodel_bakery/baker.py:5291 ms0.9%
Baker.generate_valuemodel_bakery/baker.py:10191 ms0.9%
gen_slugmodel_bakery/random_gen.py:2851 ms0.9%
gen_slug.<locals>.<genexpr>model_bakery/random_gen.py:2851 ms0.9%
Random.choice<stdlib>/random.py:3541 ms0.9%
Random._randbelow_with_getrandbits<stdlib>/random.py:2501 ms0.9%
TestCase.setUpClassdjango/test/testcases.py:1426 cls.cls_atomics = cls._enter_atomics()11 ms9.4%
TestCase._enter_atomicsdjango/test/testcases.py:139911 ms9.4%
Atomic.__enter__django/db/transaction.py:21011 ms9.4%
BaseDatabaseWrapper.get_autocommitdjango/db/backends/base/base.py:45411 ms9.4%
SimpleTestCase.ensure_connection_patch_method.<locals>.patched_ensure_connectiondjango/test/testcases.py:30411 ms9.4%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2611 ms9.4%
BaseDatabaseWrapper.ensure_connectiondjango/db/backends/base/base.py:27911 ms9.4%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2611 ms9.4%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:25611 ms9.4%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2611 ms9.4%
DatabaseWrapper.get_new_connectiondjango/db/backends/postgresql/base.py:34511 ms9.4%
Connection.connectpsycopg/connection.py:10910 ms8.5%
wait_connpsycopg/waiting.py:1455 ms4.7%
BaseConnection._connect_genpsycopg/_connection_base.py:4395 ms4.7%
wait_connpsycopg/waiting.py:1414 ms3.8%
EpollSelector.select<stdlib>/selectors.py:4524 ms3.8%
Connection.connectpsycopg/connection.py:1071 ms0.9%
make_conninfopsycopg/conninfo.py:591 ms0.9%
make_conninfo.<locals>.<genexpr>psycopg/conninfo.py:591 ms0.9%
_param_escapepsycopg/conninfo.py:1171 ms0.9%
ABCMeta.__instancecheck__<frozen abc>:1191 ms0.9%
call66 ms56.6%
TestShareStarterPack.test_api_activitypubstarter_packs/tests.py:905 response = self.client.get(50 ms42.9%
Client.getdjango/test/client.py:113350 ms42.9%
RequestFactory.getdjango/test/client.py:47550 ms42.9%
RequestFactory.genericdjango/test/client.py:67150 ms42.9%
Client.requestdjango/test/client.py:109150 ms42.9%
ClientHandler.__call__django/test/client.py:17325 ms21.5%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6325 ms21.5%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10423 ms19.5%
WhiteNoise.add_fileswhitenoise/base.py:10823 ms19.5%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12011 ms9.8%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13111 ms9.8%
WhiteNoise.get_static_filewhitenoise/base.py:21711 ms9.8%
StaticFile.__init__whitenoise/responders.py:767 ms5.9%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1895 ms3.9%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1882 ms2.0%
StaticFile.__init__whitenoise/responders.py:772 ms2.0%
StaticFile.get_alternativeswhitenoise/responders.py:2032 ms2.0%
StaticFile.__init__whitenoise/responders.py:742 ms2.0%
parsedate<stdlib>/email/_parseaddr.py:1852 ms2.0%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1159 ms7.8%
scantreewhitenoise/base.py:2719 ms7.8%
scantreewhitenoise/base.py:2719 ms7.8%
scantreewhitenoise/base.py:2737 ms5.9%
scantreewhitenoise/base.py:2712 ms2.0%
scantreewhitenoise/base.py:2712 ms2.0%
scantreewhitenoise/base.py:2732 ms2.0%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:1112 ms2.0%
WhiteNoise.add_fileswhitenoise/base.py:1082 ms2.0%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1152 ms2.0%
ClientHandler.__call__django/test/client.py:18623 ms19.5%
BaseHandler.get_responsedjango/core/handlers/base.py:14223 ms19.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5623 ms19.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38023 ms19.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5623 ms19.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38023 ms19.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5623 ms19.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38023 ms19.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5623 ms19.5%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12323 ms19.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5623 ms19.5%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:14523 ms19.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5623 ms19.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38023 ms19.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5623 ms19.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38023 ms19.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5623 ms19.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38023 ms19.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5623 ms19.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38023 ms19.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5623 ms19.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38023 ms19.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5623 ms19.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38023 ms19.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5623 ms19.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38023 ms19.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5623 ms19.5%
BaseHandler._get_responsedjango/core/handlers/base.py:19923 ms19.5%
share_starter_packstarter_packs/views.py:728 def share_starter_pack(request, starter_pack_slug):9 ms7.8%
get_object_or_404django/shortcuts.py:1007 ms5.9%
QuerySet.getdjango/db/models/query.py:7027 ms5.9%
QuerySet.__len__django/db/models/query.py:4217 ms5.9%
QuerySet._fetch_alldjango/db/models/query.py:22627 ms5.9%
ModelIterable.__iter__django/db/models/query.py:1037 ms5.9%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16257 ms5.9%
CursorWrapper.executedjango/db/backends/utils.py:797 ms5.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:927 ms5.9%
CursorWrapper._executedjango/db/backends/utils.py:1057 ms5.9%
Cursor.executepsycopg/cursor.py:1137 ms5.9%
Connection.waitpsycopg/connection.py:4957 ms5.9%
BaseCursor._execute_genpsycopg/_cursor_base.py:2067 ms5.9%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2867 ms5.9%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:787 ms5.9%
SysMonitor.sysmon_py_startcoverage/sysmon.py:3872 ms2.0%
share_starter_packstarter_packs/views.py:793 activitypub_ids = list(accounts.values_list("activitypub_id", flat=True))9 ms7.8%
QuerySet.__iter__django/db/models/query.py:4399 ms7.8%
QuerySet._fetch_alldjango/db/models/query.py:22629 ms7.8%
FlatValuesListIterable.__iter__django/db/models/query.py:3029 ms7.8%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15749 ms7.8%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16257 ms5.9%
CursorWrapper.executedjango/db/backends/utils.py:797 ms5.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:927 ms5.9%
CursorWrapper._executedjango/db/backends/utils.py:1057 ms5.9%
Cursor.executepsycopg/cursor.py:1137 ms5.9%
Connection.waitpsycopg/connection.py:4957 ms5.9%
BaseCursor._execute_genpsycopg/_cursor_base.py:2067 ms5.9%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2867 ms5.9%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:787 ms5.9%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16122 ms2.0%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7682 ms2.0%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:902 ms2.0%
SQLCompiler.get_order_bydjango/db/models/sql/compiler.py:4922 ms2.0%
share_starter_packstarter_packs/views.py:789 author = starter_pack.created_by.accountaccess.account5 ms3.9%
ReverseOneToOneDescriptor.__get__django/db/models/fields/related_descriptors.py:5372 ms2.0%
FetchOne.fetchdjango/db/models/fetch_modes.py:172 ms2.0%
ReverseOneToOneDescriptor.fetch_onedjango/db/models/fields/related_descriptors.py:5622 ms2.0%
QuerySet.getdjango/db/models/query.py:6922 ms2.0%
QuerySet.filterdjango/db/models/query.py:16762 ms2.0%
QuerySet._filter_or_excludedjango/db/models/query.py:16942 ms2.0%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:17042 ms2.0%
Query.add_qdjango/db/models/sql/query.py:16812 ms2.0%
Query._add_qdjango/db/models/sql/query.py:17132 ms2.0%
Query.build_filterdjango/db/models/sql/query.py:15772 ms2.0%
Query.setup_joinsdjango/db/models/sql/query.py:19922 ms2.0%
ForwardManyToOneDescriptor.__get__django/db/models/fields/related_descriptors.py:2662 ms2.0%
FetchOne.fetchdjango/db/models/fetch_modes.py:172 ms2.0%
ForwardManyToOneDescriptor.fetch_onedjango/db/models/fields/related_descriptors.py:2792 ms2.0%
ForwardManyToOneDescriptor.get_objectdjango/db/models/fields/related_descriptors.py:2312 ms2.0%
QuerySet.getdjango/db/models/query.py:7022 ms2.0%
QuerySet.__len__django/db/models/query.py:4212 ms2.0%
QuerySet._fetch_alldjango/db/models/query.py:22622 ms2.0%
ModelIterable.__iter__django/db/models/query.py:1032 ms2.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16252 ms2.0%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.0%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms2.0%
Cursor.executepsycopg/cursor.py:1132 ms2.0%
Connection.waitpsycopg/connection.py:4952 ms2.0%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms2.0%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms2.0%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms2.0%
ClientHandler.__call__django/test/client.py:2072 ms2.0%
HttpResponseBase.closedjango/http/response.py:3482 ms2.0%
Signal.senddjango/dispatch/dispatcher.py:2492 ms2.0%
close_cachesdjango/core/cache/__init__.py:642 ms2.0%
BaseConnectionHandler.close_alldjango/utils/connection.py:842 ms2.0%
BaseConnectionHandler.alldjango/utils/connection.py:802 ms2.0%
Local.__getattr__asgiref/local.py:1582 ms2.0%
TestShareStarterPack.test_api_activitypubstarter_packs/tests.py:947 "items": [account.activitypub_id for account in accounts],9 ms7.8%
QuerySet.__iter__django/db/models/query.py:4399 ms7.8%
QuerySet._fetch_alldjango/db/models/query.py:22629 ms7.8%
ModelIterable.__iter__django/db/models/query.py:1039 ms7.8%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16257 ms5.9%
CursorWrapper.executedjango/db/backends/utils.py:797 ms5.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:927 ms5.9%
CursorWrapper._executedjango/db/backends/utils.py:1055 ms3.9%
Cursor.executepsycopg/cursor.py:1135 ms3.9%
Connection.waitpsycopg/connection.py:4955 ms3.9%
BaseCursor._execute_genpsycopg/_cursor_base.py:2065 ms3.9%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2865 ms3.9%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:785 ms3.9%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16122 ms2.0%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7682 ms2.0%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:892 ms2.0%
SQLCompiler.setup_querydjango/db/models/sql/compiler.py:782 ms2.0%
SQLCompiler.get_selectdjango/db/models/sql/compiler.py:3102 ms2.0%
SQLCompiler.get_related_selectionsdjango/db/models/sql/compiler.py:12602 ms2.0%
SQLCompiler.get_default_columnsdjango/db/models/sql/compiler.py:10102 ms2.0%
TestShareStarterPack.test_api_activitypubstarter_packs/tests.py:904 url = reverse("share_starter_pack", args=[self.starter_pack.slug])2 ms2.0%
reversedjango/urls/base.py:982 ms2.0%
TestShareStarterPack.test_api_activitypubstarter_packs/tests.py:946 "totalItems": accounts.count(),2 ms2.0%
QuerySet.countdjango/db/models/query.py:6772 ms2.0%
Query.get_countdjango/db/models/sql/query.py:6572 ms2.0%
Query.get_aggregationdjango/db/models/sql/query.py:6392 ms2.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16252 ms2.0%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.0%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms2.0%
Cursor.executepsycopg/cursor.py:1132 ms2.0%
Connection.waitpsycopg/connection.py:4952 ms2.0%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms2.0%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms2.0%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms2.0%
TransactionTestCase._post_teardowndjango/test/testcases.py:1243 self._fixture_teardown()2 ms2.0%
TestCase._fixture_teardowndjango/test/testcases.py:14982 ms2.0%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4952 ms2.0%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.0%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms2.0%
Cursor.executepsycopg/cursor.py:1132 ms2.0%
Connection.waitpsycopg/connection.py:4952 ms2.0%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms2.0%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms2.0%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms2.0%
Estimated from 75 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

starter_packs/tests.py:905
response = self.client.get(
TestShareStarterPack.test_api_activitypub · Libraries
27 ms
starter_packs/tests.py:666
baker.make(
TestShareStarterPack.setUpTestData · Database
16 ms
starter_packs/tests.py:658
baker.make(
TestShareStarterPack.setUpTestData · Database
11 ms
starter_packs/views.py:728
def share_starter_pack(request, starter_pack_slug):
share_starter_pack · Database
9 ms
starter_packs/views.py:793
activitypub_ids = list(accounts.values_list("activitypub_id", flat=True))
share_starter_pack · Database
9 ms
starter_packs/tests.py:947
"items": [account.activitypub_id for account in accounts],
TestShareStarterPack.test_api_activitypub · Database
9 ms
starter_packs/views.py:789
author = starter_pack.created_by.accountaccess.account
share_starter_pack · Database
5 ms
starter_packs/tests.py:665
instance = baker.make("accounts.Instance")
TestShareStarterPack.setUpTestData · Database
3 ms
starter_packs/tests.py:657
cls.user = baker.make("auth.User")
TestShareStarterPack.setUpTestData · Database
3 ms
starter_packs/tests.py:663
cls.starter_pack = baker.make("starter_packs.StarterPack", created_by=cls.user, num_accounts=5, languages=[])
TestShareStarterPack.setUpTestData · Database
3 ms

Fixtures

Exact setup time
_unittest_setUpClass_fixture_TestShareStarterPack class 48 ms
_django_setup_unittest class 0.54 ms
_dj_autoclear_mailbox function 0.05 ms
_django_db_marker function 0.05 ms
_template_string_if_invalid_marker function 0.05 ms
_django_set_urlconf function 0.04 ms
_live_server_helper function 0.04 ms
_django_isolate_apps function 0.03 ms
_django_clear_site_cache function 0.03 ms
monkeypatch function 0.02 ms

Database

34 queries · 35 ms

Repeated queries are usually N+1 lookups: fetch them once with select_related / prefetch_related (or selectinload).

6×
INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"
6×
INSERT INTO "accounts_account" ("account_id", "instance", "instance_model_id", "username_at_instance", "search", "username", "acct", "display_name", "locked", "bot", "discoverable", "group", "noindex", "created_at", "last_status_at", "last_sync_at", "followers_count", "following_count", "statuses_c…
5×
INSERT INTO "starter_packs_starterpackaccount" ("starter_pack_id", "account_id", "pinned", "created_at", "created_by_id") VALUES (%s, %s, %s, %s, %s) RETURNING "starter_packs_starterpackaccount"."id"

Biggest pieces of work

call test body
starter_packs/tests.py:905
63 ms
setup setUpClass
django/test/testcases.py:1426
48 ms
call _post_teardown
django/test/testcases.py:1243
2 ms
setup pytest internals 1 ms
setup __instancecheck__
<frozen abc>:119
1 ms

Reliability

5 results · 0 CI failures · 0 local failures

This test hasn't failed recently.

History

Latest 50 results, oldest first in the strip
When Environment Outcome Duration Commit
7 hours ago CI github-actions:test passed 116 ms d923a46 main Profile
8 hours ago CI github-actions:test passed 416 ms 82997f8 main Profile
8 hours ago CI github-actions:test passed 352 ms 623aa3e main Profile
13 hours ago CI github-actions:test passed 333 ms ab6465a main Profile
13 hours ago CI github-actions:test passed 104 ms 0c23747 main Run
3 months, 3 weeks ago CI github-actions passed 62 ms 69d78ea HEAD Run
3 months, 3 weeks ago CI github-actions passed 87 ms 8fac7b5 main Run
3 months, 3 weeks ago CI github-actions passed 89 ms 36b9579 main Run
3 months, 3 weeks ago CI github-actions passed 102 ms 553d048 main Run
3 months, 3 weeks ago CI github-actions passed 88 ms 8eb0f44 HEAD Run
3 months, 3 weeks ago CI github-actions passed 101 ms e0fb3ac HEAD Run
3 months, 3 weeks ago CI github-actions passed 86 ms a849b58 HEAD Run
3 months, 3 weeks ago CI github-actions passed 94 ms 6418e05 HEAD Run
3 months, 3 weeks ago CI github-actions passed 102 ms 5b9b309 main Run
3 months, 4 weeks ago CI github-actions passed 109 ms 1f2c5a6 main Run
3 months, 4 weeks ago CI github-actions passed 99 ms 5ec7fa8 main Run
3 months, 4 weeks ago CI github-actions passed 101 ms 1e42064 main Run
3 months, 4 weeks ago CI github-actions passed 105 ms fcb1b79 main Run
3 months, 4 weeks ago CI github-actions passed 108 ms 1460ac2 HEAD Run
3 months, 4 weeks ago CI github-actions passed 100 ms 8129f09 HEAD Run