Tests / starter_packs/tests.py
TestOwnerManagement::test_owner_cancels_invitation
First seen 3 weeks ago in 0c23747
CI
github-actions:test
11 runs
Average
154 ms
median 125 ms
max 261 ms
max 261 ms
Phases
Setup 1 ms
Call 152 ms
Teardown 0.39 ms
Categories
Database 40 ms
Test code 2 ms
App code 0.09 ms
Other (Libraries, pytest, Templates, Deep copies, ...) 111 ms
28 database queries per run
Needs 283 KB of memory (max 1 MB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 7 hours ago ·
open run
setup1 ms1.2%
call122 ms98.3%
TestOwnerManagement.test_owner_cancels_invitationstarter_packs/tests.py:553 self.assertFalse(self.pack.invitations.filter(invited_user=self.friend).exists())55 ms44.1%
QuerySet.existsdjango/db/models/query.py:145827 ms22.1%
Query.has_resultsdjango/db/models/sql/query.py:68727 ms22.1%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:159327 ms22.1%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:162526 ms21.1%
CursorWrapper.executedjango/db/backends/utils.py:7926 ms21.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9226 ms21.1%
CursorWrapper._executedjango/db/backends/utils.py:10526 ms21.1%
Cursor.executepsycopg/cursor.py:11326 ms21.1%
Connection.waitpsycopg/connection.py:49526 ms21.1%
BaseCursor._execute_genpsycopg/_cursor_base.py:20626 ms21.1%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:28626 ms21.1%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:7826 ms21.1%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16121 ms1.0%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7681 ms1.0%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:891 ms1.0%
SQLCompiler.setup_querydjango/db/models/sql/compiler.py:781 ms1.0%
cached_property.__get__django/utils/functional.py:471 ms1.0%
BaseExpression.output_fielddjango/db/models/expressions.py:3281 ms1.0%
Value._resolve_output_fielddjango/db/models/expressions.py:12211 ms1.0%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms2.0%
create_reverse_many_to_one_manager.<locals>.RelatedManager.get_querysetdjango/db/models/fields/related_descriptors.py:8101 ms1.0%
create_reverse_many_to_one_manager.<locals>.RelatedManager._apply_rel_filtersdjango/db/models/fields/related_descriptors.py:7501 ms1.0%
BaseConnectionHandler.__getitem__django/utils/connection.py:581 ms1.0%
Local.__getattr__asgiref/local.py:1571 ms1.0%
QuerySet.filterdjango/db/models/query.py:16751 ms1.0%
QuerySet._not_support_combined_queriesdjango/db/models/query.py:23361 ms1.0%
QuerySet.querydjango/db/models/query.py:3551 ms1.0%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:17041 ms1.0%
Query.add_qdjango/db/models/sql/query.py:16811 ms1.0%
Query._add_qdjango/db/models/sql/query.py:17131 ms1.0%
Query.build_filterdjango/db/models/sql/query.py:16071 ms1.0%
Query._get_coldjango/db/models/sql/query.py:4561 ms1.0%
TestOwnerManagement.test_owner_cancels_invitationstarter_packs/tests.py:551 response = self.client.post(reverse("cancel_invitation", args=[self.pack.slug, self.friend.id]))30 ms24.1%
Client.postdjango/test/client.py:116230 ms24.1%
RequestFactory.postdjango/test/client.py:49930 ms24.1%
RequestFactory.genericdjango/test/client.py:67130 ms24.1%
Client.requestdjango/test/client.py:109130 ms24.1%
ClientHandler.__call__django/test/client.py:17329 ms23.1%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6329 ms23.1%
__init____init__:-129 ms23.1%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10429 ms23.1%
WhiteNoise.add_fileswhitenoise/base.py:10829 ms23.1%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12020 ms16.0%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13120 ms16.0%
WhiteNoise.get_static_filewhitenoise/base.py:21716 ms13.0%
StaticFile.__init__whitenoise/responders.py:7311 ms9.0%
StaticFile.get_headerswhitenoise/responders.py:1765 ms4.0%
Headers.__setitem__<stdlib>/wsgiref/headers.py:625 ms4.0%
Headers.__delitem__<stdlib>/wsgiref/headers.py:715 ms4.0%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:505 ms4.0%
StaticFile.get_headerswhitenoise/responders.py:1811 ms1.0%
Headers.__setitem__<stdlib>/wsgiref/headers.py:641 ms1.0%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:491 ms1.0%
StaticFile.get_headerswhitenoise/responders.py:1801 ms1.0%
StaticFile.get_headerswhitenoise/responders.py:1671 ms1.0%
__init____init__:-11 ms1.0%
Headers.__init__<stdlib>/wsgiref/headers.py:441 ms1.0%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:501 ms1.0%
StaticFile.get_headerswhitenoise/responders.py:1781 ms1.0%
StaticFile.__init__whitenoise/responders.py:772 ms2.0%
StaticFile.get_alternativeswhitenoise/responders.py:2001 ms1.0%
StaticFile.get_alternativeswhitenoise/responders.py:2011 ms1.0%
StaticFile.__init__whitenoise/responders.py:761 ms1.0%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1881 ms1.0%
Headers.__contains__<stdlib>/wsgiref/headers.py:871 ms1.0%
Headers.get<stdlib>/wsgiref/headers.py:1061 ms1.0%
StaticFile.__init__whitenoise/responders.py:721 ms1.0%
StaticFile.get_file_statswhitenoise/responders.py:1611 ms1.0%
WhiteNoise.get_static_filewhitenoise/base.py:2124 ms3.0%
WhiteNoise.add_cache_headerswhitenoise/base.py:2332 ms2.0%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1762 ms2.0%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1972 ms2.0%
URLMixin.urldebug_toolbar/panels/staticfiles.py:211 ms1.0%
<GC>~1 ms1.0%
URLMixin.urldebug_toolbar/panels/staticfiles.py:201 ms1.0%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:2351 ms1.0%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:2161 ms1.0%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1159 ms7.0%
scantreewhitenoise/base.py:2716 ms5.0%
scantreewhitenoise/base.py:2715 ms4.0%
scantreewhitenoise/base.py:2712 ms2.0%
scantreewhitenoise/base.py:2712 ms2.0%
scantreewhitenoise/base.py:2712 ms2.0%
scantreewhitenoise/base.py:2691 ms1.0%
scantreewhitenoise/base.py:2731 ms1.0%
scantreewhitenoise/base.py:2731 ms1.0%
scantreewhitenoise/base.py:2691 ms1.0%
scantreewhitenoise/base.py:2731 ms1.0%
scantreewhitenoise/base.py:2692 ms2.0%
ClientHandler.__call__django/test/client.py:2071 ms1.0%
HttpResponseBase.closedjango/http/response.py:3481 ms1.0%
Signal.senddjango/dispatch/dispatcher.py:2491 ms1.0%
close_cachesdjango/core/cache/__init__.py:641 ms1.0%
TransactionTestCase._post_teardowndjango/test/testcases.py:1243 self._fixture_teardown()19 ms15.0%
TestCase._fixture_teardowndjango/test/testcases.py:149716 ms13.0%
TestCase._should_check_constraintsdjango/test/testcases.py:150616 ms13.0%
DatabaseWrapper.is_usabledjango/db/backends/postgresql/base.py:50415 ms12.0%
Cursor.executepsycopg/cursor.py:11315 ms12.0%
Connection.waitpsycopg/connection.py:49515 ms12.0%
BaseCursor._execute_genpsycopg/_cursor_base.py:20615 ms12.0%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:28615 ms12.0%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:7815 ms12.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%
TestOwnerManagement.test_owner_cancels_invitationstarter_packs/tests.py:550 self.client.force_login(self.owner)16 ms13.0%
ClientMixin.force_logindjango/test/client.py:85816 ms13.0%
ClientMixin._logindjango/test/client.py:8899 ms7.0%
logindjango/contrib/auth/__init__.py:1896 ms5.0%
SessionBase.cycle_keydjango/contrib/sessions/backends/base.py:4374 ms3.0%
SessionStore.createdjango/contrib/sessions/backends/db.py:742 ms2.0%
SessionStore.savedjango/contrib/sessions/backends/db.py:1271 ms1.0%
Model.savedjango/db/models/base.py:9041 ms1.0%
Model.save_basedjango/db/models/base.py:9961 ms1.0%
Model._save_tabledjango/db/models/base.py:11991 ms1.0%
Model._do_insertdjango/db/models/base.py:12511 ms1.0%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:871 ms1.0%
QuerySet._insertdjango/db/models/query.py:21411 ms1.0%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19361 ms1.0%
CursorWrapper.executedjango/db/backends/utils.py:791 ms1.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms1.0%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms1.0%
Cursor.executepsycopg/cursor.py:1131 ms1.0%
Connection.waitpsycopg/connection.py:4951 ms1.0%
SessionStore.savedjango/contrib/sessions/backends/db.py:1261 ms1.0%
Atomic.__exit__django/db/transaction.py:2591 ms1.0%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:261 ms1.0%
BaseDatabaseWrapper.savepoint_commitdjango/db/backends/base/base.py:4311 ms1.0%
BaseDatabaseWrapper._savepoint_commitdjango/db/backends/base/base.py:3751 ms1.0%
CursorWrapper.executedjango/db/backends/utils.py:791 ms1.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms1.0%
CursorWrapper._executedjango/db/backends/utils.py:1031 ms1.0%
Cursor.executepsycopg/cursor.py:1131 ms1.0%
Connection.waitpsycopg/connection.py:4951 ms1.0%
BaseCursor._execute_genpsycopg/_cursor_base.py:2061 ms1.0%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2861 ms1.0%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:781 ms1.0%
SessionStore.createdjango/contrib/sessions/backends/db.py:701 ms1.0%
SessionBase._get_new_session_keydjango/contrib/sessions/backends/base.py:2011 ms1.0%
SessionStore.existsdjango/contrib/sessions/backends/db.py:631 ms1.0%
QuerySet.existsdjango/db/models/query.py:14581 ms1.0%
Query.has_resultsdjango/db/models/sql/query.py:6871 ms1.0%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15931 ms1.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16121 ms1.0%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:9791 ms1.0%
SessionBase.cycle_keydjango/contrib/sessions/backends/base.py:4402 ms2.0%
SessionStore.deletedjango/contrib/sessions/backends/db.py:1752 ms2.0%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:871 ms1.0%
QuerySet.getdjango/db/models/query.py:7021 ms1.0%
QuerySet.__len__django/db/models/query.py:4211 ms1.0%
QuerySet._fetch_alldjango/db/models/query.py:22621 ms1.0%
ModelIterable.__iter__django/db/models/query.py:1031 ms1.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16251 ms1.0%
CursorWrapper.executedjango/db/backends/utils.py:791 ms1.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms1.0%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms1.0%
Cursor.executepsycopg/cursor.py:1131 ms1.0%
Connection.waitpsycopg/connection.py:4951 ms1.0%
Model.deletedjango/db/models/base.py:13311 ms1.0%
Collector.deletedjango/db/models/deletion.py:4831 ms1.0%
DeleteQuery.delete_batchdjango/db/models/sql/subqueries.py:431 ms1.0%
DeleteQuery.do_querydjango/db/models/sql/subqueries.py:251 ms1.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16251 ms1.0%
CursorWrapper.executedjango/db/backends/utils.py:791 ms1.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms1.0%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms1.0%
Cursor.executepsycopg/cursor.py:1131 ms1.0%
Connection.waitpsycopg/connection.py:4951 ms1.0%
logindjango/contrib/auth/__init__.py:1771 ms1.0%
SessionBase.__contains__django/contrib/sessions/backends/base.py:521 ms1.0%
SessionBase._get_sessiondjango/contrib/sessions/backends/base.py:2541 ms1.0%
SessionStore.loaddjango/contrib/sessions/backends/db.py:551 ms1.0%
SessionStore._get_session_from_dbdjango/contrib/sessions/backends/db.py:341 ms1.0%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:871 ms1.0%
QuerySet.getdjango/db/models/query.py:7021 ms1.0%
QuerySet.__len__django/db/models/query.py:4211 ms1.0%
QuerySet._fetch_alldjango/db/models/query.py:22621 ms1.0%
ModelIterable.__iter__django/db/models/query.py:1031 ms1.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16251 ms1.0%
CursorWrapper.executedjango/db/backends/utils.py:791 ms1.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms1.0%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms1.0%
Cursor.executepsycopg/cursor.py:1131 ms1.0%
Connection.waitpsycopg/connection.py:4951 ms1.0%
logindjango/contrib/auth/__init__.py:1981 ms1.0%
Signal.senddjango/dispatch/dispatcher.py:2491 ms1.0%
update_last_logindjango/contrib/auth/models.py:241 ms1.0%
AbstractBaseUser.savedjango/contrib/auth/base_user.py:621 ms1.0%
Model.savedjango/db/models/base.py:9041 ms1.0%
Model.save_basedjango/db/models/base.py:9961 ms1.0%
Model._save_tabledjango/db/models/base.py:11401 ms1.0%
Model._do_updatedjango/db/models/base.py:12441 ms1.0%
QuerySet._updatedjango/db/models/query.py:14481 ms1.0%
SQLUpdateCompiler.execute_returning_sqldjango/db/models/sql/compiler.py:21501 ms1.0%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21211 ms1.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16251 ms1.0%
CursorWrapper.executedjango/db/backends/utils.py:791 ms1.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms1.0%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms1.0%
Cursor.executepsycopg/cursor.py:1131 ms1.0%
Connection.waitpsycopg/connection.py:4951 ms1.0%
ClientMixin._logindjango/test/client.py:8845 ms4.0%
ClientMixin.sessiondjango/test/client.py:8155 ms4.0%
SessionStore.savedjango/contrib/sessions/backends/db.py:1215 ms4.0%
SessionStore.createdjango/contrib/sessions/backends/db.py:702 ms2.0%
SessionBase._get_new_session_keydjango/contrib/sessions/backends/base.py:2012 ms2.0%
SessionStore.existsdjango/contrib/sessions/backends/db.py:632 ms2.0%
QuerySet.existsdjango/db/models/query.py:14582 ms2.0%
Query.has_resultsdjango/db/models/sql/query.py:6872 ms2.0%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15932 ms2.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16121 ms1.0%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7681 ms1.0%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:891 ms1.0%
SQLCompiler.setup_querydjango/db/models/sql/compiler.py:781 ms1.0%
SQLCompiler.get_selectdjango/db/models/sql/compiler.py:3191 ms1.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16251 ms1.0%
CursorWrapper.executedjango/db/backends/utils.py:791 ms1.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms1.0%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms1.0%
Cursor.executepsycopg/cursor.py:1131 ms1.0%
Connection.waitpsycopg/connection.py:4951 ms1.0%
SessionStore.createdjango/contrib/sessions/backends/db.py:742 ms2.0%
SessionStore.savedjango/contrib/sessions/backends/db.py:1262 ms2.0%
Atomic.__enter__django/db/transaction.py:2231 ms1.0%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:261 ms1.0%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4001 ms1.0%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3671 ms1.0%
CursorWrapper.executedjango/db/backends/utils.py:791 ms1.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms1.0%
CursorWrapper._executedjango/db/backends/utils.py:1031 ms1.0%
Cursor.executepsycopg/cursor.py:1131 ms1.0%
Connection.waitpsycopg/connection.py:4951 ms1.0%
Atomic.__exit__django/db/transaction.py:2591 ms1.0%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:261 ms1.0%
BaseDatabaseWrapper.savepoint_commitdjango/db/backends/base/base.py:4311 ms1.0%
BaseDatabaseWrapper._savepoint_commitdjango/db/backends/base/base.py:3751 ms1.0%
CursorWrapper.executedjango/db/backends/utils.py:791 ms1.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms1.0%
CursorWrapper._executedjango/db/backends/utils.py:1031 ms1.0%
Cursor.executepsycopg/cursor.py:1131 ms1.0%
Connection.waitpsycopg/connection.py:4951 ms1.0%
ClientMixin._logindjango/test/client.py:8912 ms2.0%
SessionStore.savedjango/contrib/sessions/backends/db.py:1261 ms1.0%
Atomic.__enter__django/db/transaction.py:2231 ms1.0%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:261 ms1.0%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4001 ms1.0%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3671 ms1.0%
CursorWrapper.executedjango/db/backends/utils.py:791 ms1.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms1.0%
CursorWrapper._executedjango/db/backends/utils.py:1031 ms1.0%
Cursor.executepsycopg/cursor.py:1131 ms1.0%
Connection.waitpsycopg/connection.py:4951 ms1.0%
SessionStore.savedjango/contrib/sessions/backends/db.py:1271 ms1.0%
Model.savedjango/db/models/base.py:9041 ms1.0%
Model.save_basedjango/db/models/base.py:9961 ms1.0%
Model._save_tabledjango/db/models/base.py:11401 ms1.0%
Model._do_updatedjango/db/models/base.py:12441 ms1.0%
QuerySet._updatedjango/db/models/query.py:14481 ms1.0%
SQLUpdateCompiler.execute_returning_sqldjango/db/models/sql/compiler.py:21501 ms1.0%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21211 ms1.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16251 ms1.0%
CursorWrapper.executedjango/db/backends/utils.py:791 ms1.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms1.0%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms1.0%
Cursor.executepsycopg/cursor.py:1131 ms1.0%
Connection.waitpsycopg/connection.py:4951 ms1.0%
TestOwnerManagement.test_owner_cancels_invitationstarter_packs/tests.py:549 StarterPackInvitation.objects.create(starter_pack=self.pack, invited_user=self.friend, invited_by=self.owner)2 ms2.0%
TestData.__get__django/test/testcases.py:13701 ms1.0%
deepcopy<stdlib>/copy.py:1561 ms1.0%
_reconstruct<stdlib>/copy.py:2541 ms1.0%
deepcopy<stdlib>/copy.py:1301 ms1.0%
_deepcopy_dict<stdlib>/copy.py:2011 ms1.0%
deepcopy<stdlib>/copy.py:1561 ms1.0%
_reconstruct<stdlib>/copy.py:2541 ms1.0%
deepcopy<stdlib>/copy.py:1301 ms1.0%
_deepcopy_dict<stdlib>/copy.py:2011 ms1.0%
deepcopy<stdlib>/copy.py:1301 ms1.0%
_deepcopy_dict<stdlib>/copy.py:2011 ms1.0%
deepcopy<stdlib>/copy.py:1561 ms1.0%
_reconstruct<stdlib>/copy.py:2541 ms1.0%
deepcopy<stdlib>/copy.py:1301 ms1.0%
_deepcopy_dict<stdlib>/copy.py:2011 ms1.0%
deepcopy<stdlib>/copy.py:1561 ms1.0%
_reconstruct<stdlib>/copy.py:2541 ms1.0%
deepcopy<stdlib>/copy.py:1301 ms1.0%
_deepcopy_dict<stdlib>/copy.py:2011 ms1.0%
deepcopy<stdlib>/copy.py:1301 ms1.0%
_deepcopy_dict<stdlib>/copy.py:2011 ms1.0%
deepcopy<stdlib>/copy.py:1561 ms1.0%
_reconstruct<stdlib>/copy.py:2541 ms1.0%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:871 ms1.0%
QuerySet.createdjango/db/models/query.py:7361 ms1.0%
Model.savedjango/db/models/base.py:9041 ms1.0%
Model.save_basedjango/db/models/base.py:9961 ms1.0%
Model._save_tabledjango/db/models/base.py:11991 ms1.0%
Model._do_insertdjango/db/models/base.py:12511 ms1.0%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:871 ms1.0%
QuerySet._insertdjango/db/models/query.py:21411 ms1.0%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19361 ms1.0%
CursorWrapper.executedjango/db/backends/utils.py:791 ms1.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms1.0%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms1.0%
Cursor.executepsycopg/cursor.py:1131 ms1.0%
Connection.waitpsycopg/connection.py:4951 ms1.0%
BaseCursor._execute_genpsycopg/_cursor_base.py:2061 ms1.0%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2861 ms1.0%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:781 ms1.0%
Estimated from 99 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
starter_packs/tests.py:553
self.assertFalse(self.pack.invitations.filter(invited_user=self.friend).exists())
TestOwnerManagement.test_owner_cancels_invitation
· Database
|
55 ms |
|
starter_packs/tests.py:551
response = self.client.post(reverse("cancel_invitation", args=[self.pack.slug, self.friend.id]))
TestOwnerManagement.test_owner_cancels_invitation
· Libraries
|
30 ms |
|
starter_packs/tests.py:550
self.client.force_login(self.owner)
TestOwnerManagement.test_owner_cancels_invitation
· Database
|
16 ms |
|
starter_packs/tests.py:549
StarterPackInvitation.objects.create(starter_pack=self.pack, invited_user=self.friend, invited_by=self.owner)
TestOwnerManagement.test_owner_cancels_invitation
· Deep copies
|
2 ms |
Fixtures
Exact setup time| _dj_autoclear_mailbox function | 0.06 ms |
| _template_string_if_invalid_marker function | 0.06 ms |
| _django_set_urlconf function | 0.05 ms |
| _django_db_marker function | 0.05 ms |
| _live_server_helper function | 0.05 ms |
| _django_isolate_apps function | 0.04 ms |
| _django_clear_site_cache function | 0.04 ms |
| monkeypatch function | 0.03 ms |
Database
28 queries · 26 msNo repeated queries.
Biggest pieces of work
|
call test body
starter_packs/tests.py:553
|
104 ms |
|
call _post_teardown
django/test/testcases.py:1243
|
19 ms |
| setup pytest internals | 1 ms |
Reliability
12 results · 0 CI failures · 0 local failuresThis test hasn't failed recently.
History
Latest 12 results, oldest first in the strip| When | Environment | Outcome | Duration | |
|---|---|---|---|---|
| 7 hours ago | CI github-actions:test | passed | 125 ms | Profile |
| 16 hours ago | CI github-actions:test | passed | 69 ms | Profile |
| 22 hours ago | CI github-actions:test | passed | 261 ms | Profile |
| 1 week, 5 days ago | CI github-actions:test | passed | 206 ms | Profile |
| 2 weeks, 2 days ago | CI github-actions:test | passed | 84 ms | Profile |
| 2 weeks, 2 days ago | CI github-actions:test | passed | 122 ms | Profile |
| 2 weeks, 4 days ago | CI github-actions:test | passed | 109 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 68 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 223 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 215 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 208 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 83 ms | Run |