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

TestCreateStarterPack::test_create_starter_pack

First seen 1 year, 11 months ago in 1b5db0c
CI github-actions:test 11 runs
Average
184 ms
median 143 ms
max 364 ms
Phases
Setup 2 ms Call 182 ms Teardown 0.36 ms
Categories
Database 81 ms Other (Libraries, Templates, pytest, Unsampled, ...) 102 ms

38 database queries per run

Needs 428 KB of memory (max 948 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 7 hours ago · open run
Show pytest frames
call283 ms99.6%
TestCreateStarterPack.test_create_starter_packstarter_packs/tests.py:110 response = self.client.post(214 ms75.4%
Client.postdjango/test/client.py:1162214 ms75.4%
RequestFactory.postdjango/test/client.py:499214 ms75.4%
RequestFactory.genericdjango/test/client.py:671214 ms75.4%
Client.requestdjango/test/client.py:1091214 ms75.4%
ClientHandler.__call__django/test/client.py:173132 ms46.6%
BaseHandler.load_middlewaredjango/core/handlers/base.py:63132 ms46.6%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:104132 ms46.6%
WhiteNoise.add_fileswhitenoise/base.py:108132 ms46.6%
WhiteNoise.update_files_dictionarywhitenoise/base.py:120120 ms42.4%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:131120 ms42.4%
WhiteNoise.get_static_filewhitenoise/base.py:217118 ms41.5%
StaticFile.__init__whitenoise/responders.py:76113 ms39.8%
StaticFile.get_not_modified_responsewhitenoise/responders.py:18899 ms34.7%
Headers.__contains__<stdlib>/wsgiref/headers.py:8799 ms34.7%
Headers.get<stdlib>/wsgiref/headers.py:10499 ms34.7%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:5099 ms34.7%
StaticFile.get_not_modified_responsewhitenoise/responders.py:18914 ms5.1%
Headers.__getitem__<stdlib>/wsgiref/headers.py:8314 ms5.1%
URLMixin.urldebug_toolbar/panels/staticfiles.py:2112 ms4.2%
2 smaller frames hidden
StaticFile.__init__whitenoise/responders.py:735 ms1.7%
1 smaller frames hidden
WhiteNoise.update_files_dictionarywhitenoise/base.py:11512 ms4.2%
scantreewhitenoise/base.py:27112 ms4.2%
scantreewhitenoise/base.py:27111 ms3.8%
scantreewhitenoise/base.py:2736 ms2.1%
scantreewhitenoise/base.py:2714 ms1.3%
scantreewhitenoise/base.py:2714 ms1.3%
1 smaller frames hidden
1 smaller frames hidden
ClientHandler.__call__django/test/client.py:18681 ms28.4%
BaseHandler.get_responsedjango/core/handlers/base.py:14281 ms28.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5681 ms28.4%
MiddlewareMixin.__call__django/utils/deprecation.py:38081 ms28.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5681 ms28.4%
MiddlewareMixin.__call__django/utils/deprecation.py:38081 ms28.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5681 ms28.4%
MiddlewareMixin.__call__django/utils/deprecation.py:38081 ms28.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5681 ms28.4%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12381 ms28.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5681 ms28.4%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:14581 ms28.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5681 ms28.4%
MiddlewareMixin.__call__django/utils/deprecation.py:38081 ms28.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5681 ms28.4%
MiddlewareMixin.__call__django/utils/deprecation.py:38081 ms28.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5681 ms28.4%
MiddlewareMixin.__call__django/utils/deprecation.py:38081 ms28.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5681 ms28.4%
MiddlewareMixin.__call__django/utils/deprecation.py:38081 ms28.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5681 ms28.4%
MiddlewareMixin.__call__django/utils/deprecation.py:38081 ms28.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5681 ms28.4%
MiddlewareMixin.__call__django/utils/deprecation.py:38081 ms28.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5681 ms28.4%
MiddlewareMixin.__call__django/utils/deprecation.py:38081 ms28.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5681 ms28.4%
BaseHandler._get_responsedjango/core/handlers/base.py:19981 ms28.4%
user_passes_test.<locals>.decorator.<locals>._view_wrapperdjango/contrib/auth/decorators.py:6281 ms28.4%
create_starter_packstarter_packs/views.py:55673 ms25.8%
get_splash_image_signaturestarter_packs/splash_images.py:8873 ms25.8%
get_splash_image_accountsstarter_packs/splash_images.py:77 return list(accounts)73 ms25.8%
QuerySet.__iter__django/db/models/query.py:43973 ms25.8%
QuerySet._fetch_alldjango/db/models/query.py:226273 ms25.8%
ModelIterable.__iter__django/db/models/query.py:10373 ms25.8%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:162573 ms25.8%
CursorWrapper.executedjango/db/backends/utils.py:7973 ms25.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9273 ms25.8%
CursorWrapper._executedjango/db/backends/utils.py:10573 ms25.8%
Cursor.executepsycopg/cursor.py:11373 ms25.8%
Connection.waitpsycopg/connection.py:49573 ms25.8%
create_starter_packstarter_packs/views.py:558 starter_pack.save(update_fields=["splash_image_needs_update"])4 ms1.3%
Model.savedjango/db/models/base.py:9044 ms1.3%
Model.save_basedjango/db/models/base.py:9964 ms1.3%
Model._save_tabledjango/db/models/base.py:11404 ms1.3%
Model._do_updatedjango/db/models/base.py:12444 ms1.3%
QuerySet._updatedjango/db/models/query.py:14484 ms1.3%
SQLUpdateCompiler.execute_returning_sqldjango/db/models/sql/compiler.py:21504 ms1.3%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21214 ms1.3%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16254 ms1.3%
CursorWrapper.executedjango/db/backends/utils.py:794 ms1.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:924 ms1.3%
CursorWrapper._executedjango/db/backends/utils.py:1054 ms1.3%
Cursor.executepsycopg/cursor.py:1134 ms1.3%
Connection.waitpsycopg/connection.py:4952 ms0.8%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms0.8%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms0.8%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms0.8%
create_starter_packstarter_packs/views.py:563 starter_pack.save()4 ms1.3%
Model.savedjango/db/models/base.py:9044 ms1.3%
Model.save_basedjango/db/models/base.py:9964 ms1.3%
Model._save_tabledjango/db/models/base.py:11404 ms1.3%
Model._do_updatedjango/db/models/base.py:12444 ms1.3%
QuerySet._updatedjango/db/models/query.py:14484 ms1.3%
SQLUpdateCompiler.execute_returning_sqldjango/db/models/sql/compiler.py:21504 ms1.3%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21214 ms1.3%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16254 ms1.3%
CursorWrapper.executedjango/db/backends/utils.py:794 ms1.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:924 ms1.3%
CursorWrapper._executedjango/db/backends/utils.py:1054 ms1.3%
Cursor.executepsycopg/cursor.py:1134 ms1.3%
Connection.waitpsycopg/connection.py:4954 ms1.3%
BaseCursor._execute_genpsycopg/_cursor_base.py:2064 ms1.3%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2864 ms1.3%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:784 ms1.3%
1 smaller frames hidden
TestCreateStarterPack.test_create_starter_packstarter_packs/tests.py:109 self.client.force_login(self.user)32 ms11.4%
ClientMixin.force_logindjango/test/client.py:85832 ms11.4%
ClientMixin._logindjango/test/client.py:88920 ms7.2%
logindjango/contrib/auth/__init__.py:18913 ms4.7%
SessionBase.cycle_keydjango/contrib/sessions/backends/base.py:43710 ms3.4%
SessionStore.createdjango/contrib/sessions/backends/db.py:747 ms2.5%
SessionStore.savedjango/contrib/sessions/backends/db.py:1265 ms1.7%
Atomic.__enter__django/db/transaction.py:2232 ms0.8%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms0.8%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4002 ms0.8%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3672 ms0.8%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.8%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms0.8%
Cursor.executepsycopg/cursor.py:1132 ms0.8%
Connection.waitpsycopg/connection.py:4952 ms0.8%
Atomic.__exit__django/db/transaction.py:2592 ms0.8%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms0.8%
BaseDatabaseWrapper.savepoint_commitdjango/db/backends/base/base.py:4312 ms0.8%
BaseDatabaseWrapper._savepoint_commitdjango/db/backends/base/base.py:3752 ms0.8%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.8%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms0.8%
Cursor.executepsycopg/cursor.py:1132 ms0.8%
Connection.waitpsycopg/connection.py:4952 ms0.8%
SessionStore.savedjango/contrib/sessions/backends/db.py:1272 ms0.8%
Model.savedjango/db/models/base.py:9042 ms0.8%
Model.save_basedjango/db/models/base.py:9962 ms0.8%
Model._save_tabledjango/db/models/base.py:11992 ms0.8%
Model._do_insertdjango/db/models/base.py:12512 ms0.8%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms0.8%
QuerySet._insertdjango/db/models/query.py:21412 ms0.8%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19362 ms0.8%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.8%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.8%
Cursor.executepsycopg/cursor.py:1132 ms0.8%
Connection.waitpsycopg/connection.py:4952 ms0.8%
SessionStore.createdjango/contrib/sessions/backends/db.py:702 ms0.8%
SessionBase._get_new_session_keydjango/contrib/sessions/backends/base.py:2012 ms0.8%
SessionStore.existsdjango/contrib/sessions/backends/db.py:632 ms0.8%
QuerySet.existsdjango/db/models/query.py:14582 ms0.8%
Query.has_resultsdjango/db/models/sql/query.py:6872 ms0.8%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15932 ms0.8%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16252 ms0.8%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.8%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.8%
Cursor.executepsycopg/cursor.py:1132 ms0.8%
Connection.waitpsycopg/connection.py:4952 ms0.8%
SessionBase.cycle_keydjango/contrib/sessions/backends/base.py:4404 ms1.3%
SessionStore.deletedjango/contrib/sessions/backends/db.py:1754 ms1.3%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms0.8%
QuerySet.getdjango/db/models/query.py:7022 ms0.8%
QuerySet.__len__django/db/models/query.py:4212 ms0.8%
QuerySet._fetch_alldjango/db/models/query.py:22622 ms0.8%
ModelIterable.__iter__django/db/models/query.py:1032 ms0.8%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16252 ms0.8%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.8%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.8%
Cursor.executepsycopg/cursor.py:1132 ms0.8%
Connection.waitpsycopg/connection.py:4952 ms0.8%
1 smaller frames hidden
logindjango/contrib/auth/__init__.py:1985 ms1.7%
Signal.senddjango/dispatch/dispatcher.py:2495 ms1.7%
update_last_logindjango/contrib/auth/models.py:245 ms1.7%
AbstractBaseUser.savedjango/contrib/auth/base_user.py:625 ms1.7%
Model.savedjango/db/models/base.py:9045 ms1.7%
Model.save_basedjango/db/models/base.py:9965 ms1.7%
Model._save_tabledjango/db/models/base.py:11405 ms1.7%
Model._do_updatedjango/db/models/base.py:12445 ms1.7%
QuerySet._updatedjango/db/models/query.py:14485 ms1.7%
SQLUpdateCompiler.execute_returning_sqldjango/db/models/sql/compiler.py:21505 ms1.7%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21215 ms1.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16255 ms1.7%
CursorWrapper.executedjango/db/backends/utils.py:795 ms1.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:925 ms1.7%
CursorWrapper._executedjango/db/backends/utils.py:1055 ms1.7%
Cursor.executepsycopg/cursor.py:1135 ms1.7%
Connection.waitpsycopg/connection.py:4955 ms1.7%
logindjango/contrib/auth/__init__.py:1772 ms0.8%
SessionBase.__contains__django/contrib/sessions/backends/base.py:522 ms0.8%
SessionBase._get_sessiondjango/contrib/sessions/backends/base.py:2542 ms0.8%
SessionStore.loaddjango/contrib/sessions/backends/db.py:552 ms0.8%
SessionStore._get_session_from_dbdjango/contrib/sessions/backends/db.py:342 ms0.8%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms0.8%
QuerySet.getdjango/db/models/query.py:7022 ms0.8%
QuerySet.__len__django/db/models/query.py:4212 ms0.8%
QuerySet._fetch_alldjango/db/models/query.py:22622 ms0.8%
ModelIterable.__iter__django/db/models/query.py:1032 ms0.8%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16252 ms0.8%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.8%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.8%
Cursor.executepsycopg/cursor.py:1132 ms0.8%
Connection.waitpsycopg/connection.py:4952 ms0.8%
ClientMixin._logindjango/test/client.py:88411 ms3.8%
ClientMixin.sessiondjango/test/client.py:81511 ms3.8%
SessionStore.savedjango/contrib/sessions/backends/db.py:12111 ms3.8%
SessionStore.createdjango/contrib/sessions/backends/db.py:747 ms2.5%
SessionStore.savedjango/contrib/sessions/backends/db.py:1265 ms1.7%
Atomic.__enter__django/db/transaction.py:2232 ms0.8%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms0.8%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4002 ms0.8%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3672 ms0.8%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.8%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms0.8%
Cursor.executepsycopg/cursor.py:1132 ms0.8%
Connection.waitpsycopg/connection.py:4952 ms0.8%
Atomic.__exit__django/db/transaction.py:2592 ms0.8%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms0.8%
BaseDatabaseWrapper.savepoint_commitdjango/db/backends/base/base.py:4312 ms0.8%
BaseDatabaseWrapper._savepoint_commitdjango/db/backends/base/base.py:3752 ms0.8%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.8%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms0.8%
Cursor.executepsycopg/cursor.py:1132 ms0.8%
Connection.waitpsycopg/connection.py:4952 ms0.8%
SessionStore.savedjango/contrib/sessions/backends/db.py:1272 ms0.8%
Model.savedjango/db/models/base.py:9042 ms0.8%
Model.save_basedjango/db/models/base.py:9962 ms0.8%
Model._save_tabledjango/db/models/base.py:11992 ms0.8%
Model._do_insertdjango/db/models/base.py:12512 ms0.8%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms0.8%
QuerySet._insertdjango/db/models/query.py:21412 ms0.8%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19362 ms0.8%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.8%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.8%
Cursor.executepsycopg/cursor.py:1132 ms0.8%
Connection.waitpsycopg/connection.py:4952 ms0.8%
SessionStore.createdjango/contrib/sessions/backends/db.py:704 ms1.3%
SessionBase._get_new_session_keydjango/contrib/sessions/backends/base.py:2014 ms1.3%
SessionStore.existsdjango/contrib/sessions/backends/db.py:634 ms1.3%
QuerySet.existsdjango/db/models/query.py:14582 ms0.8%
Query.has_resultsdjango/db/models/sql/query.py:6872 ms0.8%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15932 ms0.8%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16252 ms0.8%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.8%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.8%
Cursor.executepsycopg/cursor.py:1132 ms0.8%
Connection.waitpsycopg/connection.py:4952 ms0.8%
1 smaller frames hidden
1 smaller frames hidden
TestCreateStarterPack.test_create_starter_packstarter_packs/tests.py:121 self.assertRedirects(response, reverse("edit_accounts_starter_pack", args=[starter_pack.slug]))25 ms8.9%
SimpleTestCase.assertRedirectsdjango/test/testcases.py:50225 ms8.9%
Client.getdjango/test/client.py:113325 ms8.9%
RequestFactory.getdjango/test/client.py:47525 ms8.9%
RequestFactory.genericdjango/test/client.py:67125 ms8.9%
Client.requestdjango/test/client.py:109125 ms8.9%
ClientHandler.__call__django/test/client.py:18625 ms8.9%
BaseHandler.get_responsedjango/core/handlers/base.py:14225 ms8.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5625 ms8.9%
MiddlewareMixin.__call__django/utils/deprecation.py:38025 ms8.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5625 ms8.9%
MiddlewareMixin.__call__django/utils/deprecation.py:38025 ms8.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5625 ms8.9%
MiddlewareMixin.__call__django/utils/deprecation.py:38025 ms8.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5625 ms8.9%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12325 ms8.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5624 ms8.5%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:14524 ms8.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5624 ms8.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38024 ms8.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5624 ms8.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38024 ms8.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5624 ms8.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38024 ms8.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5624 ms8.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38024 ms8.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5624 ms8.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38024 ms8.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5624 ms8.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38024 ms8.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5624 ms8.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38024 ms8.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5624 ms8.5%
BaseHandler._get_responsedjango/core/handlers/base.py:19924 ms8.5%
user_passes_test.<locals>.decorator.<locals>._view_wrapperdjango/contrib/auth/decorators.py:6214 ms5.1%
add_accounts_to_starter_packstarter_packs/views.py:309 ).count(),5 ms1.7%
QuerySet.countdjango/db/models/query.py:6775 ms1.7%
Query.get_countdjango/db/models/sql/query.py:6575 ms1.7%
Query.get_aggregationdjango/db/models/sql/query.py:6395 ms1.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16255 ms1.7%
CursorWrapper.executedjango/db/backends/utils.py:795 ms1.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:925 ms1.7%
CursorWrapper._executedjango/db/backends/utils.py:1055 ms1.7%
Cursor.executepsycopg/cursor.py:1135 ms1.7%
Connection.waitpsycopg/connection.py:4955 ms1.7%
add_accounts_to_starter_packstarter_packs/views.py:294 page_obj = paginator.get_page(page_number)4 ms1.3%
Paginator.get_pagedjango/core/paginator.py:1614 ms1.3%
Paginator.validate_numberdjango/core/paginator.py:1534 ms1.3%
cached_property.__get__django/utils/functional.py:474 ms1.3%
Paginator.num_pagesdjango/core/paginator.py:1884 ms1.3%
cached_property.__get__django/utils/functional.py:474 ms1.3%
Paginator.countdjango/core/paginator.py:1824 ms1.3%
QuerySet.countdjango/db/models/query.py:6774 ms1.3%
Query.get_countdjango/db/models/sql/query.py:6574 ms1.3%
Query.get_aggregationdjango/db/models/sql/query.py:6394 ms1.3%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16254 ms1.3%
CursorWrapper.executedjango/db/backends/utils.py:794 ms1.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:924 ms1.3%
CursorWrapper._executedjango/db/backends/utils.py:1054 ms1.3%
Cursor.executepsycopg/cursor.py:1134 ms1.3%
Connection.waitpsycopg/connection.py:4954 ms1.3%
BaseCursor._execute_genpsycopg/_cursor_base.py:2064 ms1.3%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2864 ms1.3%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:784 ms1.3%
add_accounts_to_starter_packstarter_packs/views.py:2252 ms0.8%
get_editable_packstarter_packs/views.py:60 return get_object_or_404(StarterPack, slug=slug, owners=request.user, **extra)2 ms0.8%
get_object_or_404django/shortcuts.py:1002 ms0.8%
QuerySet.getdjango/db/models/query.py:7022 ms0.8%
QuerySet.__len__django/db/models/query.py:4212 ms0.8%
QuerySet._fetch_alldjango/db/models/query.py:22622 ms0.8%
ModelIterable.__iter__django/db/models/query.py:1032 ms0.8%
3 smaller frames hidden
user_passes_test.<locals>.decorator.<locals>._view_wrapperdjango/contrib/auth/decorators.py:5910 ms3.4%
login_required.<locals>.<lambda>django/contrib/auth/decorators.py:8210 ms3.4%
new_method_proxy.<locals>.innerdjango/utils/functional.py:25110 ms3.4%
SimpleLazyObject._setupdjango/utils/functional.py:40410 ms3.4%
AuthenticationMiddleware.process_request.<locals>.<lambda>django/contrib/auth/middleware.py:3910 ms3.4%
get_userdjango/contrib/auth/middleware.py:1910 ms3.4%
get_userdjango/contrib/auth/__init__.py:2878 ms3.0%
_get_user_session_keydjango/contrib/auth/__init__.py:1118 ms3.0%
SessionBase.__getitem__django/contrib/sessions/backends/base.py:558 ms3.0%
SessionBase._get_sessiondjango/contrib/sessions/backends/base.py:2548 ms3.0%
SessionStore.loaddjango/contrib/sessions/backends/db.py:558 ms3.0%
SessionStore._get_session_from_dbdjango/contrib/sessions/backends/db.py:348 ms3.0%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:878 ms3.0%
QuerySet.getdjango/db/models/query.py:7028 ms3.0%
QuerySet.__len__django/db/models/query.py:4218 ms3.0%
QuerySet._fetch_alldjango/db/models/query.py:22628 ms3.0%
ModelIterable.__iter__django/db/models/query.py:1038 ms3.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16258 ms3.0%
CursorWrapper.executedjango/db/backends/utils.py:798 ms3.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:928 ms3.0%
CursorWrapper._executedjango/db/backends/utils.py:1058 ms3.0%
Cursor.executepsycopg/cursor.py:1138 ms3.0%
Connection.waitpsycopg/connection.py:4958 ms3.0%
BaseCursor._execute_genpsycopg/_cursor_base.py:2068 ms3.0%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2868 ms3.0%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:788 ms3.0%
1 smaller frames hidden
TestCreateStarterPack.test_create_starter_packstarter_packs/tests.py:117 starter_pack = self.user.starterpack_set.first()6 ms2.1%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:876 ms2.1%
QuerySet.firstdjango/db/models/query.py:12074 ms1.3%
QuerySet.ordereddjango/db/models/query.py:20164 ms1.3%
InstanceCheckMeta.__instancecheck__django/db/models/query.py:23724 ms1.3%
QuerySet.querydjango/db/models/query.py:3554 ms1.3%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:17044 ms1.3%
Query.add_qdjango/db/models/sql/query.py:16814 ms1.3%
Query._add_qdjango/db/models/sql/query.py:17134 ms1.3%
Query.build_filterdjango/db/models/sql/query.py:15514 ms1.3%
Query.solve_lookup_typedjango/db/models/sql/query.py:13584 ms1.3%
Query.names_to_pathdjango/db/models/sql/query.py:18624 ms1.3%
QuerySet.firstdjango/db/models/query.py:12122 ms0.8%
QuerySet.__iter__django/db/models/query.py:4392 ms0.8%
QuerySet._fetch_alldjango/db/models/query.py:22622 ms0.8%
ModelIterable.__iter__django/db/models/query.py:1032 ms0.8%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16252 ms0.8%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.8%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms0.8%
Cursor.executepsycopg/cursor.py:1132 ms0.8%
Connection.waitpsycopg/connection.py:4952 ms0.8%
TestCreateStarterPack.test_create_starter_packstarter_packs/tests.py:120 self.assertTrue(starter_pack.owners.filter(pk=self.user.pk).exists())4 ms1.3%
QuerySet.existsdjango/db/models/query.py:14584 ms1.3%
Query.has_resultsdjango/db/models/sql/query.py:6874 ms1.3%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15934 ms1.3%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16254 ms1.3%
CursorWrapper.executedjango/db/backends/utils.py:794 ms1.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:924 ms1.3%
CursorWrapper._executedjango/db/backends/utils.py:1054 ms1.3%
Cursor.executepsycopg/cursor.py:1134 ms1.3%
Connection.waitpsycopg/connection.py:4954 ms1.3%
BaseCursor._execute_genpsycopg/_cursor_base.py:2064 ms1.3%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2864 ms1.3%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:784 ms1.3%
1 smaller frames hidden
Estimated from 235 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

starter_packs/tests.py:110
response = self.client.post(
TestCreateStarterPack.test_create_starter_pack · Libraries
134 ms
starter_packs/splash_images.py:77
return list(accounts)
get_splash_image_accounts · Database
73 ms
starter_packs/tests.py:109
self.client.force_login(self.user)
TestCreateStarterPack.test_create_starter_pack · Database
32 ms
starter_packs/tests.py:121
self.assertRedirects(response, reverse("edit_accounts_starter_pack", args=[starter_pack.slug]))
TestCreateStarterPack.test_create_starter_pack · Database
11 ms
starter_packs/tests.py:117
starter_pack = self.user.starterpack_set.first()
TestCreateStarterPack.test_create_starter_pack · Database
6 ms
starter_packs/views.py:309
).count(),
add_accounts_to_starter_pack · Database
5 ms
starter_packs/views.py:563
starter_pack.save()
create_starter_pack · Database
4 ms
starter_packs/tests.py:120
self.assertTrue(starter_pack.owners.filter(pk=self.user.pk).exists())
TestCreateStarterPack.test_create_starter_pack · Database
4 ms
starter_packs/views.py:294
page_obj = paginator.get_page(page_number)
add_accounts_to_starter_pack · Database
4 ms
starter_packs/views.py:558
starter_pack.save(update_fields=["splash_image_needs_update"])
create_starter_pack · Database
4 ms

Fixtures

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

Database

38 queries · 79 ms

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

3×
SELECT "django_session"."session_key", "django_session"."session_data", "django_session"."expire_date" FROM "django_session" WHERE ("django_session"."expire_date" > %s AND "django_session"."session_key" = %s) LIMIT ?
3×
SELECT "accounts_account"."id", "accounts_account"."account_id", "accounts_account"."instance", "accounts_account"."instance_model_id", "accounts_account"."username_at_instance", "accounts_account"."search", "accounts_account"."username", "accounts_account"."acct", "accounts_account"."display_name"…

Biggest pieces of work

call test body
starter_packs/tests.py:110
281 ms
call _pre_setup
django/test/testcases.py:1167
1 ms

Reliability

12 results · 0 CI failures · 0 local failures

This test hasn't failed recently.

History

Latest 12 results, oldest first in the strip
When Environment Outcome Duration Commit
7 hours ago CI github-actions:test passed 284 ms c28a326 main Profile
16 hours ago CI github-actions:test passed 79 ms 9b8826a main Profile
22 hours ago CI github-actions:test passed 131 ms 4f01055 main Profile
1 week, 5 days ago CI github-actions:test passed 195 ms 8ab642e main Profile
2 weeks, 2 days ago CI github-actions:test passed 140 ms 9b75244 main Profile
2 weeks, 2 days ago CI github-actions:test passed 179 ms 9603516 main Profile
2 weeks, 4 days ago CI github-actions:test passed 129 ms 615a272 main Profile
3 weeks ago CI github-actions:test passed 94 ms d923a46 main Profile
3 weeks ago CI github-actions:test passed 281 ms 82997f8 main Profile
3 weeks ago CI github-actions:test passed 364 ms 623aa3e main Profile
3 weeks ago CI github-actions:test passed 143 ms ab6465a main Profile
3 weeks ago CI github-actions:test passed 139 ms 0c23747 main Run