Tests / starter_packs/tests.py
TestPinAccountInStarterPack::test_toggle_pin_requires_ownership
First seen 14 hours ago in 0c23747
CI
github-actions:test
4 runs
Average
169 ms
median 155 ms
max 285 ms
max 285 ms
Phases
Setup 3 ms
Call 165 ms
Teardown 1 ms
Categories
Database 28 ms
Factories 0.82 ms
Other (Libraries, pytest, Unsampled, Deep copies) 140 ms
25 database queries per run
Needs 224 KB of memory (max 888 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 8 hours ago ·
open run
call76 ms93.2%
CallInfo.from_call_pytest/runner.py:36176 ms93.2%
call_and_report.<locals>.<lambda>_pytest/runner.py:25076 ms93.2%
HookCaller.__call__pluggy/_hooks.py:51276 ms93.2%
PluginManager._hookexecpluggy/_manager.py:12076 ms93.2%
_multicallpluggy/_callers.py:12176 ms93.2%
pytest_runtest_call_pytest/runner.py:18476 ms93.2%
_django_setup_unittest.<locals>.non_debugging_runtestpytest_django/plugin.py:61476 ms93.2%
SimpleTestCase.__call__django/test/testcases.py:31476 ms93.2%
SimpleTestCase._setup_and_calldjango/test/testcases.py:36970 ms85.8%
TestCase.__call__<stdlib>/unittest/case.py:74770 ms85.8%
TestCase.run<stdlib>/unittest/case.py:69170 ms85.8%
TestCase._callTestMethod<stdlib>/unittest/case.py:63770 ms85.8%
TestPinAccountInStarterPack.test_toggle_pin_requires_ownershipstarter_packs/tests.py:1056 response = self.client.post(self.pin_url(self.niche))52 ms63.7%
Client.postdjango/test/client.py:116250 ms61.3%
RequestFactory.postdjango/test/client.py:49950 ms61.3%
RequestFactory.genericdjango/test/client.py:67150 ms61.3%
Client.requestdjango/test/client.py:109150 ms61.3%
ClientHandler.__call__django/test/client.py:17340 ms49.0%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6340 ms49.0%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10438 ms46.6%
WhiteNoise.add_fileswhitenoise/base.py:10838 ms46.6%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12024 ms29.4%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13124 ms29.4%
WhiteNoise.get_static_filewhitenoise/base.py:21714 ms17.2%
StaticFile.__init__whitenoise/responders.py:7210 ms12.3%
StaticFile.get_file_statswhitenoise/responders.py:16110 ms12.3%
__init____init__:-18 ms9.8%
FileEntry.__init__whitenoise/responders.py:2608 ms9.8%
<GC>~8 ms9.8%
StaticFile.__init__whitenoise/responders.py:734 ms4.9%
StaticFile.get_headerswhitenoise/responders.py:1764 ms4.9%
WhiteNoise.get_static_filewhitenoise/base.py:2128 ms9.8%
WhiteNoise.add_cache_headerswhitenoise/base.py:2334 ms4.9%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1764 ms4.9%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1974 ms4.9%
URLMixin.urldebug_toolbar/panels/staticfiles.py:202 ms2.5%
StaticFile.__init__whitenoise/responders.py:742 ms2.5%
WhiteNoise.update_files_dictionarywhitenoise/base.py:11512 ms14.7%
scantreewhitenoise/base.py:27110 ms12.3%
scantreewhitenoise/base.py:27110 ms12.3%
scantreewhitenoise/base.py:2716 ms7.4%
scantreewhitenoise/base.py:2716 ms7.4%
scantreewhitenoise/base.py:2716 ms7.4%
scantreewhitenoise/base.py:2694 ms4.9%
scantreewhitenoise/base.py:2732 ms2.5%
scantreewhitenoise/base.py:2734 ms4.9%
scantreewhitenoise/base.py:2732 ms2.5%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:1112 ms2.5%
WhiteNoise.add_fileswhitenoise/base.py:1082 ms2.5%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1202 ms2.5%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:1312 ms2.5%
WhiteNoise.get_static_filewhitenoise/base.py:2172 ms2.5%
StaticFile.__init__whitenoise/responders.py:772 ms2.5%
StaticFile.get_alternativeswhitenoise/responders.py:2002 ms2.5%
parsedate<stdlib>/email/_parseaddr.py:1852 ms2.5%
Headers.__init__<stdlib>/wsgiref/headers.py:432 ms2.5%
ClientHandler.__call__django/test/client.py:18610 ms12.3%
BaseHandler.get_responsedjango/core/handlers/base.py:14210 ms12.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5610 ms12.3%
MiddlewareMixin.__call__django/utils/deprecation.py:38010 ms12.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5610 ms12.3%
MiddlewareMixin.__call__django/utils/deprecation.py:38010 ms12.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5610 ms12.3%
MiddlewareMixin.__call__django/utils/deprecation.py:38010 ms12.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5610 ms12.3%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12310 ms12.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5610 ms12.3%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:14510 ms12.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5610 ms12.3%
MiddlewareMixin.__call__django/utils/deprecation.py:38010 ms12.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5610 ms12.3%
MiddlewareMixin.__call__django/utils/deprecation.py:38010 ms12.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5610 ms12.3%
MiddlewareMixin.__call__django/utils/deprecation.py:38010 ms12.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5610 ms12.3%
MiddlewareMixin.__call__django/utils/deprecation.py:38010 ms12.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5610 ms12.3%
MiddlewareMixin.__call__django/utils/deprecation.py:38010 ms12.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5610 ms12.3%
MiddlewareMixin.__call__django/utils/deprecation.py:38010 ms12.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5610 ms12.3%
MiddlewareMixin.__call__django/utils/deprecation.py:38010 ms12.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5610 ms12.3%
BaseHandler._get_responsedjango/core/handlers/base.py:19910 ms12.3%
user_passes_test.<locals>.decorator.<locals>._view_wrapperdjango/contrib/auth/decorators.py:5910 ms12.3%
login_required.<locals>.<lambda>django/contrib/auth/decorators.py:8210 ms12.3%
new_method_proxy.<locals>.innerdjango/utils/functional.py:25110 ms12.3%
SimpleLazyObject._setupdjango/utils/functional.py:40410 ms12.3%
AuthenticationMiddleware.process_request.<locals>.<lambda>django/contrib/auth/middleware.py:3910 ms12.3%
get_userdjango/contrib/auth/middleware.py:1910 ms12.3%
get_userdjango/contrib/auth/__init__.py:28710 ms12.3%
_get_user_session_keydjango/contrib/auth/__init__.py:11110 ms12.3%
SessionBase.__getitem__django/contrib/sessions/backends/base.py:5510 ms12.3%
SessionBase._get_sessiondjango/contrib/sessions/backends/base.py:25410 ms12.3%
SessionStore.loaddjango/contrib/sessions/backends/db.py:5510 ms12.3%
SessionStore._get_session_from_dbdjango/contrib/sessions/backends/db.py:3410 ms12.3%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:8710 ms12.3%
QuerySet.getdjango/db/models/query.py:70210 ms12.3%
QuerySet.__len__django/db/models/query.py:42110 ms12.3%
QuerySet._fetch_alldjango/db/models/query.py:226210 ms12.3%
ModelIterable.__iter__django/db/models/query.py:10310 ms12.3%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:162510 ms12.3%
CursorWrapper.executedjango/db/backends/utils.py:7910 ms12.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9210 ms12.3%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:10010 ms12.3%
CursorWrapper._executedjango/db/backends/utils.py:10510 ms12.3%
Cursor.executepsycopg/cursor.py:11310 ms12.3%
Connection.waitpsycopg/connection.py:49510 ms12.3%
TestPinAccountInStarterPack.pin_urlstarter_packs/tests.py:1020 return reverse("toggle_pin_in_starter_pack", args=[self.starter_pack.slug, account.pk])2 ms2.5%
TestData.__get__django/test/testcases.py:13702 ms2.5%
deepcopy<stdlib>/copy.py:1572 ms2.5%
_reconstruct<stdlib>/copy.py:2552 ms2.5%
deepcopy<stdlib>/copy.py:1312 ms2.5%
_deepcopy_dict<stdlib>/copy.py:2022 ms2.5%
deepcopy<stdlib>/copy.py:1572 ms2.5%
_reconstruct<stdlib>/copy.py:2552 ms2.5%
deepcopy<stdlib>/copy.py:1312 ms2.5%
_deepcopy_dict<stdlib>/copy.py:2022 ms2.5%
deepcopy<stdlib>/copy.py:1312 ms2.5%
_deepcopy_dict<stdlib>/copy.py:2022 ms2.5%
deepcopy<stdlib>/copy.py:1572 ms2.5%
_reconstruct<stdlib>/copy.py:2552 ms2.5%
deepcopy<stdlib>/copy.py:1312 ms2.5%
_deepcopy_dict<stdlib>/copy.py:2022 ms2.5%
deepcopy<stdlib>/copy.py:1572 ms2.5%
_reconstruct<stdlib>/copy.py:2552 ms2.5%
deepcopy<stdlib>/copy.py:1312 ms2.5%
_deepcopy_dict<stdlib>/copy.py:2022 ms2.5%
deepcopy<stdlib>/copy.py:1312 ms2.5%
_deepcopy_dict<stdlib>/copy.py:2022 ms2.5%
deepcopy<stdlib>/copy.py:1572 ms2.5%
_reconstruct<stdlib>/copy.py:2552 ms2.5%
deepcopy<stdlib>/copy.py:1312 ms2.5%
_deepcopy_dict<stdlib>/copy.py:2022 ms2.5%
deepcopy<stdlib>/copy.py:1572 ms2.5%
_reconstruct<stdlib>/copy.py:2552 ms2.5%
deepcopy<stdlib>/copy.py:1312 ms2.5%
_deepcopy_dict<stdlib>/copy.py:2022 ms2.5%
deepcopy<stdlib>/copy.py:1312 ms2.5%
_deepcopy_dict<stdlib>/copy.py:2022 ms2.5%
deepcopy<stdlib>/copy.py:1572 ms2.5%
_reconstruct<stdlib>/copy.py:2552 ms2.5%
deepcopy<stdlib>/copy.py:1312 ms2.5%
_deepcopy_dict<stdlib>/copy.py:2022 ms2.5%
TestPinAccountInStarterPack.test_toggle_pin_requires_ownershipstarter_packs/tests.py:1055 self.client.force_login(other_user)16 ms19.6%
ClientMixin.force_logindjango/test/client.py:85816 ms19.6%
ClientMixin._logindjango/test/client.py:88912 ms14.7%
logindjango/contrib/auth/__init__.py:1898 ms9.8%
SessionBase.cycle_keydjango/contrib/sessions/backends/base.py:4374 ms4.9%
SessionStore.createdjango/contrib/sessions/backends/db.py:702 ms2.5%
SessionBase._get_new_session_keydjango/contrib/sessions/backends/base.py:2012 ms2.5%
SessionStore.existsdjango/contrib/sessions/backends/db.py:632 ms2.5%
QuerySet.existsdjango/db/models/query.py:14582 ms2.5%
Query.has_resultsdjango/db/models/sql/query.py:6872 ms2.5%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15932 ms2.5%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16252 ms2.5%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.5%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1002 ms2.5%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms2.5%
Cursor.executepsycopg/cursor.py:1132 ms2.5%
Connection.waitpsycopg/connection.py:4952 ms2.5%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms2.5%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms2.5%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms2.5%
SessionStore.createdjango/contrib/sessions/backends/db.py:742 ms2.5%
SessionStore.savedjango/contrib/sessions/backends/db.py:1272 ms2.5%
Model.savedjango/db/models/base.py:9042 ms2.5%
Model.save_basedjango/db/models/base.py:9962 ms2.5%
Model._save_tabledjango/db/models/base.py:11992 ms2.5%
Model._do_insertdjango/db/models/base.py:12512 ms2.5%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms2.5%
QuerySet._insertdjango/db/models/query.py:21412 ms2.5%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19352 ms2.5%
SQLInsertCompiler.as_sqldjango/db/models/sql/compiler.py:19132 ms2.5%
DatabaseOperations.bulk_insert_sqldjango/db/backends/postgresql/operations.py:1562 ms2.5%
SessionBase.cycle_keydjango/contrib/sessions/backends/base.py:4404 ms4.9%
SessionStore.deletedjango/contrib/sessions/backends/db.py:1754 ms4.9%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms2.5%
QuerySet.getdjango/db/models/query.py:6922 ms2.5%
QuerySet.filterdjango/db/models/query.py:16762 ms2.5%
QuerySet._filter_or_excludedjango/db/models/query.py:16942 ms2.5%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:17042 ms2.5%
Model.deletedjango/db/models/base.py:13312 ms2.5%
Collector.deletedjango/db/models/deletion.py:4832 ms2.5%
DeleteQuery.delete_batchdjango/db/models/sql/subqueries.py:432 ms2.5%
DeleteQuery.do_querydjango/db/models/sql/subqueries.py:252 ms2.5%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16252 ms2.5%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.5%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1002 ms2.5%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms2.5%
Cursor.executepsycopg/cursor.py:1132 ms2.5%
Connection.waitpsycopg/connection.py:4952 ms2.5%
logindjango/contrib/auth/__init__.py:1772 ms2.5%
SessionBase.__contains__django/contrib/sessions/backends/base.py:522 ms2.5%
SessionBase._get_sessiondjango/contrib/sessions/backends/base.py:2542 ms2.5%
SessionStore.loaddjango/contrib/sessions/backends/db.py:552 ms2.5%
SessionStore._get_session_from_dbdjango/contrib/sessions/backends/db.py:342 ms2.5%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms2.5%
QuerySet.getdjango/db/models/query.py:7022 ms2.5%
QuerySet.__len__django/db/models/query.py:4212 ms2.5%
QuerySet._fetch_alldjango/db/models/query.py:22622 ms2.5%
ModelIterable.__iter__django/db/models/query.py:1032 ms2.5%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16252 ms2.5%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.5%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1002 ms2.5%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms2.5%
Cursor.executepsycopg/cursor.py:1132 ms2.5%
Connection.waitpsycopg/connection.py:4952 ms2.5%
logindjango/contrib/auth/__init__.py:1982 ms2.5%
Signal.senddjango/dispatch/dispatcher.py:2492 ms2.5%
update_last_logindjango/contrib/auth/models.py:242 ms2.5%
AbstractBaseUser.savedjango/contrib/auth/base_user.py:622 ms2.5%
Model.savedjango/db/models/base.py:9042 ms2.5%
Model.save_basedjango/db/models/base.py:9962 ms2.5%
Model._save_tabledjango/db/models/base.py:11402 ms2.5%
Model._do_updatedjango/db/models/base.py:12442 ms2.5%
QuerySet._updatedjango/db/models/query.py:14482 ms2.5%
SQLUpdateCompiler.execute_returning_sqldjango/db/models/sql/compiler.py:21502 ms2.5%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21212 ms2.5%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16252 ms2.5%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.5%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1002 ms2.5%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms2.5%
Cursor.executepsycopg/cursor.py:1132 ms2.5%
Connection.waitpsycopg/connection.py:4952 ms2.5%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms2.5%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:3122 ms2.5%
ClientMixin._logindjango/test/client.py:8842 ms2.5%
ClientMixin.sessiondjango/test/client.py:8152 ms2.5%
SessionStore.savedjango/contrib/sessions/backends/db.py:1212 ms2.5%
SessionStore.createdjango/contrib/sessions/backends/db.py:742 ms2.5%
SessionStore.savedjango/contrib/sessions/backends/db.py:1262 ms2.5%
Atomic.__exit__django/db/transaction.py:2592 ms2.5%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms2.5%
BaseDatabaseWrapper.savepoint_commitdjango/db/backends/base/base.py:4312 ms2.5%
BaseDatabaseWrapper._savepoint_commitdjango/db/backends/base/base.py:3742 ms2.5%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms2.5%
BaseDatabaseWrapper.cursordjango/db/backends/base/base.py:3202 ms2.5%
BaseDatabaseWrapper._cursordjango/db/backends/base/base.py:2982 ms2.5%
BaseDatabaseWrapper._prepare_cursordjango/db/backends/base/base.py:2872 ms2.5%
BaseDatabaseWrapper.validate_thread_sharingdjango/db/backends/base/base.py:6442 ms2.5%
BaseDatabaseWrapper.allow_thread_sharingdjango/db/backends/base/base.py:6222 ms2.5%
ClientMixin._logindjango/test/client.py:8912 ms2.5%
SessionStore.savedjango/contrib/sessions/backends/db.py:1272 ms2.5%
Model.savedjango/db/models/base.py:9042 ms2.5%
Model.save_basedjango/db/models/base.py:9962 ms2.5%
Model._save_tabledjango/db/models/base.py:11402 ms2.5%
Model._do_updatedjango/db/models/base.py:12442 ms2.5%
QuerySet._updatedjango/db/models/query.py:14482 ms2.5%
SQLUpdateCompiler.execute_returning_sqldjango/db/models/sql/compiler.py:21502 ms2.5%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21212 ms2.5%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16252 ms2.5%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.5%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1002 ms2.5%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms2.5%
Cursor.executepsycopg/cursor.py:1132 ms2.5%
Connection.waitpsycopg/connection.py:4952 ms2.5%
TestPinAccountInStarterPack.test_toggle_pin_requires_ownershipstarter_packs/tests.py:1054 other_user = baker.make("auth.User")2 ms2.5%
makemodel_bakery/baker.py:1752 ms2.5%
Baker.makemodel_bakery/baker.py:4542 ms2.5%
Baker._makemodel_bakery/baker.py:5422 ms2.5%
Baker.instancemodel_bakery/baker.py:6592 ms2.5%
AbstractBaseUser.savedjango/contrib/auth/base_user.py:622 ms2.5%
Model.savedjango/db/models/base.py:9042 ms2.5%
Model.save_basedjango/db/models/base.py:9962 ms2.5%
Model._save_tabledjango/db/models/base.py:11992 ms2.5%
Model._do_insertdjango/db/models/base.py:12512 ms2.5%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms2.5%
QuerySet._insertdjango/db/models/query.py:21412 ms2.5%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19362 ms2.5%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.5%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1002 ms2.5%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms2.5%
Cursor.executepsycopg/cursor.py:1132 ms2.5%
Connection.waitpsycopg/connection.py:4952 ms2.5%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms2.5%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms2.5%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms2.5%
SimpleTestCase._setup_and_calldjango/test/testcases.py:3604 ms4.9%
TransactionTestCase._pre_setupdjango/test/testcases.py:1167 cls._fixture_setup()4 ms4.9%
TestCase._fixture_setupdjango/test/testcases.py:14814 ms4.9%
TestCase._enter_atomicsdjango/test/testcases.py:13994 ms4.9%
Atomic.__enter__django/db/transaction.py:2234 ms4.9%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:264 ms4.9%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4004 ms4.9%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3674 ms4.9%
CursorWrapper.executedjango/db/backends/utils.py:794 ms4.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:924 ms4.9%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1004 ms4.9%
CursorWrapper._executedjango/db/backends/utils.py:1034 ms4.9%
Cursor.executepsycopg/cursor.py:1134 ms4.9%
Connection.waitpsycopg/connection.py:4954 ms4.9%
SimpleTestCase._setup_and_calldjango/test/testcases.py:3722 ms2.5%
TransactionTestCase._post_teardowndjango/test/testcases.py:1243 self._fixture_teardown()2 ms2.5%
TestCase._fixture_teardowndjango/test/testcases.py:14982 ms2.5%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4952 ms2.5%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.5%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1002 ms2.5%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms2.5%
Cursor.executepsycopg/cursor.py:1132 ms2.5%
Connection.waitpsycopg/connection.py:4952 ms2.5%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms2.5%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms2.5%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms2.5%
teardown5 ms5.8%
CallInfo.from_call_pytest/runner.py:3615 ms5.8%
call_and_report.<locals>.<lambda>_pytest/runner.py:2505 ms5.8%
HookCaller.__call__pluggy/_hooks.py:5125 ms5.8%
PluginManager._hookexecpluggy/_manager.py:1205 ms5.8%
_multicallpluggy/_callers.py:1214 ms4.7%
pytest_runtest_teardown_pytest/runner.py:1994 ms4.7%
SetupState.teardown_exact_pytest/runner.py:5684 ms4.7%
FixtureDef.finish_pytest/fixtures.py:11564 ms4.7%
_teardown_yield_fixture_pytest/fixtures.py:10144 ms4.7%
UnitTestCase._register_unittest_setup_class_fixture.<locals>.unittest_setup_class_fixture_pytest/unittest.py:1694 ms4.7%
TestCase.tearDownClassdjango/test/testcases.py:1458 conn.close()4 ms4.7%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:264 ms4.7%
BaseDatabaseWrapper.closedjango/db/backends/base/base.py:3554 ms4.7%
DatabaseWrapper._closedjango/db/backends/postgresql/base.py:4084 ms4.7%
Connection.closepsycopg/connection.py:2014 ms4.7%
_multicallpluggy/_callers.py:1520.95 ms1.2%
CaptureManager.pytest_runtest_teardown_pytest/capture.py:9040.95 ms1.2%
_GeneratorContextManager.__exit__<stdlib>/contextlib.py:2100.95 ms1.2%
CaptureManager.item_capture_pytest/capture.py:8670.95 ms1.2%
CaptureManager.read_global_capture_pytest/capture.py:8030.95 ms1.2%
MultiCapture.readouterr_pytest/capture.py:7060.95 ms1.2%
FDCapture.snap_pytest/capture.py:5920.95 ms1.2%
Estimated from 43 samples; phase durations are exact. Frames from pytest and pluggy are
shown
.
Hot lines in your code
|
starter_packs/tests.py:1056
response = self.client.post(self.pin_url(self.niche))
TestPinAccountInStarterPack.test_toggle_pin_requires_ownership
· Libraries
|
50 ms |
|
starter_packs/tests.py:1055
self.client.force_login(other_user)
TestPinAccountInStarterPack.test_toggle_pin_requires_ownership
· Database
|
16 ms |
|
starter_packs/tests.py:1054
other_user = baker.make("auth.User")
TestPinAccountInStarterPack.test_toggle_pin_requires_ownership
· Database
|
2 ms |
|
starter_packs/tests.py:1020
return reverse("toggle_pin_in_starter_pack", args=[self.starter_pack.slug, account.pk])
TestPinAccountInStarterPack.pin_url
· Deep copies
|
2 ms |
Fixtures
Exact setup time| _dj_autoclear_mailbox function | 0.05 ms |
| _template_string_if_invalid_marker function | 0.04 ms |
| _django_db_marker function | 0.03 ms |
| _django_clear_site_cache function | 0.03 ms |
| _django_isolate_apps function | 0.03 ms |
| _live_server_helper function | 0.03 ms |
| _django_set_urlconf function | 0.03 ms |
| monkeypatch function | 0.02 ms |
Database
25 queries · 13 msNo repeated queries.
Biggest pieces of work
|
call test body
starter_packs/tests.py:1056
|
70 ms |
|
call _pre_setup
django/test/testcases.py:1167
|
4 ms |
|
teardown tearDownClass
django/test/testcases.py:1458
|
4 ms |
|
call _post_teardown
django/test/testcases.py:1243
|
2 ms |
| teardown pytest internals | 0.95 ms |
Reliability
5 results · 0 CI failures · 0 local failuresThis test hasn't failed recently.
History
Latest 5 results, oldest first in the strip| When | Environment | Outcome | Duration | |
|---|---|---|---|---|
| 8 hours ago | CI github-actions:test | passed | 82 ms | Profile |
| 8 hours ago | CI github-actions:test | passed | 285 ms | Profile |
| 9 hours ago | CI github-actions:test | passed | 98 ms | Profile |
| 13 hours ago | CI github-actions:test | passed | 212 ms | Profile |
| 14 hours ago | CI github-actions:test | passed | 90 ms | Run |