Tests / starter_packs/tests.py
TestOwnerManagement::test_decline_invitation_removes_it
First seen 3 weeks ago in 0c23747
CI
github-actions:test
11 runs
Average
124 ms
median 105 ms
max 245 ms
max 245 ms
Phases
Setup 2 ms
Call 121 ms
Teardown 0.38 ms
Categories
Database 42 ms
Other (Libraries, pytest, Deep copies, Unsampled) 82 ms
27 database queries per run
Needs 115 KB of memory (max 360 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 7 hours ago ·
open run
call98 ms98.3%
TestOwnerManagement.test_decline_invitation_removes_itstarter_packs/tests.py:601 self.client.force_login(self.friend)79 ms79.0%
ClientMixin.force_logindjango/test/client.py:85879 ms79.0%
ClientMixin._logindjango/test/client.py:88466 ms66.1%
ClientMixin.sessiondjango/test/client.py:81566 ms66.1%
SessionStore.savedjango/contrib/sessions/backends/db.py:12166 ms66.1%
SessionStore.createdjango/contrib/sessions/backends/db.py:7063 ms62.8%
SessionBase._get_new_session_keydjango/contrib/sessions/backends/base.py:20163 ms62.8%
SessionStore.existsdjango/contrib/sessions/backends/db.py:6363 ms62.8%
QuerySet.existsdjango/db/models/query.py:145863 ms62.8%
Query.has_resultsdjango/db/models/sql/query.py:68763 ms62.8%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:159363 ms62.8%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:162560 ms59.6%
CursorWrapper.executedjango/db/backends/utils.py:7960 ms59.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9260 ms59.6%
CursorWrapper._executedjango/db/backends/utils.py:10560 ms59.6%
Cursor.executepsycopg/cursor.py:11360 ms59.6%
Connection.waitpsycopg/connection.py:49560 ms59.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16123 ms3.2%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:9822 ms1.6%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.6%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.6%
Cursor.executepsycopg/cursor.py:1132 ms1.6%
Connection.waitpsycopg/connection.py:4952 ms1.6%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms1.6%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms1.6%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms1.6%
SessionStore.createdjango/contrib/sessions/backends/db.py:743 ms3.2%
SessionStore.savedjango/contrib/sessions/backends/db.py:1272 ms1.6%
SessionStore.savedjango/contrib/sessions/backends/db.py:1262 ms1.6%
Atomic.__exit__django/db/transaction.py:2592 ms1.6%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms1.6%
BaseDatabaseWrapper.savepoint_commitdjango/db/backends/base/base.py:4312 ms1.6%
BaseDatabaseWrapper._savepoint_commitdjango/db/backends/base/base.py:3752 ms1.6%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.6%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms1.6%
Cursor.executepsycopg/cursor.py:1132 ms1.6%
Connection.waitpsycopg/connection.py:4952 ms1.6%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms1.6%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms1.6%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms1.6%
ClientMixin._logindjango/test/client.py:8898 ms8.1%
logindjango/contrib/auth/__init__.py:1893 ms3.2%
SessionBase.cycle_keydjango/contrib/sessions/backends/base.py:4372 ms1.6%
SessionStore.createdjango/contrib/sessions/backends/db.py:742 ms1.6%
SessionStore.savedjango/contrib/sessions/backends/db.py:1272 ms1.6%
Model.savedjango/db/models/base.py:9042 ms1.6%
Model.save_basedjango/db/models/base.py:9962 ms1.6%
Model._save_tabledjango/db/models/base.py:11992 ms1.6%
Model._do_insertdjango/db/models/base.py:12512 ms1.6%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms1.6%
QuerySet._insertdjango/db/models/query.py:21412 ms1.6%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19352 ms1.6%
SQLInsertCompiler.as_sqldjango/db/models/sql/compiler.py:18802 ms1.6%
SessionBase.cycle_keydjango/contrib/sessions/backends/base.py:4402 ms1.6%
SessionStore.deletedjango/contrib/sessions/backends/db.py:1752 ms1.6%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms1.6%
QuerySet.getdjango/db/models/query.py:7022 ms1.6%
QuerySet.__len__django/db/models/query.py:4212 ms1.6%
QuerySet._fetch_alldjango/db/models/query.py:22622 ms1.6%
ModelIterable.__iter__django/db/models/query.py:1032 ms1.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16252 ms1.6%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.6%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.6%
Cursor.executepsycopg/cursor.py:1132 ms1.6%
Connection.waitpsycopg/connection.py:4952 ms1.6%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms1.6%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms1.6%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms1.6%
logindjango/contrib/auth/__init__.py:1983 ms3.2%
Signal.senddjango/dispatch/dispatcher.py:2493 ms3.2%
update_last_logindjango/contrib/auth/models.py:243 ms3.2%
AbstractBaseUser.savedjango/contrib/auth/base_user.py:623 ms3.2%
Model.savedjango/db/models/base.py:9043 ms3.2%
Model.save_basedjango/db/models/base.py:9963 ms3.2%
Model._save_tabledjango/db/models/base.py:11403 ms3.2%
Model._do_updatedjango/db/models/base.py:12443 ms3.2%
QuerySet._updatedjango/db/models/query.py:14483 ms3.2%
SQLUpdateCompiler.execute_returning_sqldjango/db/models/sql/compiler.py:21503 ms3.2%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21213 ms3.2%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16253 ms3.2%
CursorWrapper.executedjango/db/backends/utils.py:793 ms3.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms3.2%
CursorWrapper._executedjango/db/backends/utils.py:1053 ms3.2%
Cursor.executepsycopg/cursor.py:1133 ms3.2%
Connection.waitpsycopg/connection.py:4953 ms3.2%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms1.6%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms1.6%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms1.6%
logindjango/contrib/auth/__init__.py:1772 ms1.6%
SessionBase.__contains__django/contrib/sessions/backends/base.py:522 ms1.6%
SessionBase._get_sessiondjango/contrib/sessions/backends/base.py:2542 ms1.6%
SessionStore.loaddjango/contrib/sessions/backends/db.py:552 ms1.6%
SessionStore._get_session_from_dbdjango/contrib/sessions/backends/db.py:342 ms1.6%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms1.6%
QuerySet.getdjango/db/models/query.py:7022 ms1.6%
QuerySet.__len__django/db/models/query.py:4212 ms1.6%
QuerySet._fetch_alldjango/db/models/query.py:22622 ms1.6%
ModelIterable.__iter__django/db/models/query.py:1032 ms1.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16122 ms1.6%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7682 ms1.6%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:892 ms1.6%
SQLCompiler.setup_querydjango/db/models/sql/compiler.py:782 ms1.6%
SQLCompiler.get_selectdjango/db/models/sql/compiler.py:3192 ms1.6%
SQLCompiler.compiledjango/db/models/sql/compiler.py:5792 ms1.6%
ClientMixin._logindjango/test/client.py:8915 ms4.8%
SessionStore.savedjango/contrib/sessions/backends/db.py:1273 ms3.2%
Model.savedjango/db/models/base.py:9043 ms3.2%
Model.save_basedjango/db/models/base.py:9963 ms3.2%
Model._save_tabledjango/db/models/base.py:11403 ms3.2%
Model._do_updatedjango/db/models/base.py:12443 ms3.2%
QuerySet._updatedjango/db/models/query.py:14483 ms3.2%
SQLUpdateCompiler.execute_returning_sqldjango/db/models/sql/compiler.py:21503 ms3.2%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21213 ms3.2%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16253 ms3.2%
CursorWrapper.executedjango/db/backends/utils.py:793 ms3.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms3.2%
CursorWrapper._executedjango/db/backends/utils.py:1053 ms3.2%
Cursor.executepsycopg/cursor.py:1133 ms3.2%
Connection.waitpsycopg/connection.py:4953 ms3.2%
BaseCursor._execute_genpsycopg/_cursor_base.py:2063 ms3.2%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2863 ms3.2%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:783 ms3.2%
SessionStore.savedjango/contrib/sessions/backends/db.py:1262 ms1.6%
Atomic.__enter__django/db/transaction.py:2232 ms1.6%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms1.6%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4002 ms1.6%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3672 ms1.6%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.6%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms1.6%
Cursor.executepsycopg/cursor.py:1132 ms1.6%
Connection.waitpsycopg/connection.py:4952 ms1.6%
TestOwnerManagement.test_decline_invitation_removes_itstarter_packs/tests.py:602 response = self.client.post(reverse("decline_invitation", args=[self.pack.slug]))19 ms19.3%
Client.postdjango/test/client.py:116219 ms19.3%
RequestFactory.postdjango/test/client.py:49919 ms19.3%
RequestFactory.genericdjango/test/client.py:67119 ms19.3%
Client.requestdjango/test/client.py:109118 ms17.7%
ClientHandler.__call__django/test/client.py:17318 ms17.7%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6318 ms17.7%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10418 ms17.7%
WhiteNoise.add_fileswhitenoise/base.py:10818 ms17.7%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12010 ms9.7%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13110 ms9.7%
WhiteNoise.get_static_filewhitenoise/base.py:2176 ms6.4%
StaticFile.__init__whitenoise/responders.py:763 ms3.2%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1892 ms1.6%
Headers.__getitem__<stdlib>/wsgiref/headers.py:832 ms1.6%
Headers.get<stdlib>/wsgiref/headers.py:1072 ms1.6%
StaticFile.__init__whitenoise/responders.py:732 ms1.6%
StaticFile.get_headerswhitenoise/responders.py:1782 ms1.6%
StaticFile.__init__whitenoise/responders.py:772 ms1.6%
StaticFile.get_alternativeswhitenoise/responders.py:2002 ms1.6%
WhiteNoise.get_static_filewhitenoise/base.py:2123 ms3.2%
WhiteNoise.add_cache_headerswhitenoise/base.py:2333 ms3.2%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1763 ms3.2%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1973 ms3.2%
URLMixin.urldebug_toolbar/panels/staticfiles.py:203 ms3.2%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:2353 ms3.2%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:2162 ms1.6%
FileSystemStorage.urldjango/core/files/storage/filesystem.py:2022 ms1.6%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1158 ms8.1%
scantreewhitenoise/base.py:2718 ms8.1%
scantreewhitenoise/base.py:2718 ms8.1%
scantreewhitenoise/base.py:2693 ms3.2%
scantreewhitenoise/base.py:2712 ms1.6%
scantreewhitenoise/base.py:2712 ms1.6%
scantreewhitenoise/base.py:2732 ms1.6%
scantreewhitenoise/base.py:2732 ms1.6%
Client.requestdjango/test/client.py:10892 ms1.6%
Estimated from 61 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
starter_packs/tests.py:601
self.client.force_login(self.friend)
TestOwnerManagement.test_decline_invitation_removes_it
· Database
|
79 ms |
|
starter_packs/tests.py:602
response = self.client.post(reverse("decline_invitation", args=[self.pack.slug]))
TestOwnerManagement.test_decline_invitation_removes_it
· Libraries
|
19 ms |
Fixtures
Exact setup time| _template_string_if_invalid_marker function | 0.07 ms |
| _dj_autoclear_mailbox function | 0.06 ms |
| _django_db_marker function | 0.05 ms |
| _django_isolate_apps function | 0.05 ms |
| _live_server_helper function | 0.05 ms |
| _django_set_urlconf function | 0.05 ms |
| _django_clear_site_cache function | 0.04 ms |
| monkeypatch function | 0.03 ms |
Database
27 queries · 18 msNo repeated queries.
Biggest pieces of work
|
call test body
starter_packs/tests.py:601
|
98 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 | 100 ms | Profile |
| 16 hours ago | CI github-actions:test | passed | 77 ms | Profile |
| 22 hours ago | CI github-actions:test | passed | 121 ms | Profile |
| 1 week, 5 days ago | CI github-actions:test | passed | 107 ms | Profile |
| 2 weeks, 2 days ago | CI github-actions:test | passed | 90 ms | Profile |
| 2 weeks, 2 days ago | CI github-actions:test | passed | 99 ms | Profile |
| 2 weeks, 4 days ago | CI github-actions:test | passed | 128 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 82 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 206 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 245 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 105 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 88 ms | Run |