Tests / starter_packs/tests.py
TestEditStarterPackAccounts::test_not_owned_starter_pack
First seen 2 years ago in 1b5db0c
CI
github-actions:test
13 runs
Average
163 ms
median 115 ms
max 436 ms
max 436 ms
Phases
Setup 24 ms
Call 137 ms
Teardown 3 ms
Categories
Database 64 ms
Factories 1 ms
Test code 0.08 ms
Other (Libraries, pytest, Unsampled, Templates, ...) 98 ms
26 database queries per run
Needs 74 KB of memory (max 656 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 2 weeks ago ·
open run
call63 ms96.8%
TransactionTestCase._post_teardowndjango/test/testcases.py:1243 self._fixture_teardown()46 ms69.9%
TestCase._fixture_teardowndjango/test/testcases.py:149846 ms69.9%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:49542 ms64.5%
CursorWrapper.executedjango/db/backends/utils.py:7942 ms64.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9242 ms64.5%
CursorWrapper._executedjango/db/backends/utils.py:10342 ms64.5%
Cursor.executepsycopg/cursor.py:11342 ms64.5%
Connection.waitpsycopg/connection.py:49542 ms64.5%
BaseCursor._execute_genpsycopg/_cursor_base.py:20642 ms64.5%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:28642 ms64.5%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:7842 ms64.5%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4964 ms5.4%
CursorWrapper.executedjango/db/backends/utils.py:794 ms5.4%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:924 ms5.4%
CursorWrapper._executedjango/db/backends/utils.py:1034 ms5.4%
Cursor.executepsycopg/cursor.py:1134 ms5.4%
Connection.waitpsycopg/connection.py:4954 ms5.4%
TestEditStarterPackAccounts.test_not_owned_starter_packstarter_packs/tests.py:262 self.client.force_login(other_user)12 ms17.9%
ClientMixin.force_logindjango/test/client.py:85812 ms17.9%
ClientMixin._logindjango/test/client.py:88911 ms16.1%
logindjango/contrib/auth/__init__.py:1898 ms12.6%
SessionBase.cycle_keydjango/contrib/sessions/backends/base.py:4378 ms12.6%
SessionStore.createdjango/contrib/sessions/backends/db.py:748 ms12.6%
SessionStore.savedjango/contrib/sessions/backends/db.py:1275 ms7.2%
Model.savedjango/db/models/base.py:9045 ms7.2%
Model.save_basedjango/db/models/base.py:9965 ms7.2%
Model._save_tabledjango/db/models/base.py:11995 ms7.2%
Model._do_insertdjango/db/models/base.py:12514 ms5.4%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:874 ms5.4%
QuerySet._insertdjango/db/models/query.py:21414 ms5.4%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19364 ms5.4%
CursorWrapper.executedjango/db/backends/utils.py:794 ms5.4%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:924 ms5.4%
CursorWrapper._executedjango/db/backends/utils.py:1054 ms5.4%
Cursor.executepsycopg/cursor.py:1134 ms5.4%
Connection.waitpsycopg/connection.py:4954 ms5.4%
BaseCursor._execute_genpsycopg/_cursor_base.py:2064 ms5.4%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2864 ms5.4%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:784 ms5.4%
SessionStore.savedjango/contrib/sessions/backends/db.py:1264 ms5.4%
Atomic.__enter__django/db/transaction.py:2232 ms3.6%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms3.6%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4002 ms3.6%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3672 ms3.6%
CursorWrapper.executedjango/db/backends/utils.py:792 ms3.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.6%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms3.6%
Cursor.executepsycopg/cursor.py:1132 ms3.6%
Connection.waitpsycopg/connection.py:4952 ms3.6%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms3.6%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms3.6%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms3.6%
Atomic.__exit__django/db/transaction.py:2591 ms1.8%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:261 ms1.8%
BaseDatabaseWrapper.savepoint_commitdjango/db/backends/base/base.py:4311 ms1.8%
BaseDatabaseWrapper._savepoint_commitdjango/db/backends/base/base.py:3751 ms1.8%
CursorWrapper.executedjango/db/backends/utils.py:791 ms1.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms1.8%
CursorWrapper._executedjango/db/backends/utils.py:1031 ms1.8%
Cursor.executepsycopg/cursor.py:1131 ms1.8%
Connection.waitpsycopg/connection.py:4951 ms1.8%
BaseCursor._execute_genpsycopg/_cursor_base.py:2061 ms1.8%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2861 ms1.8%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:781 ms1.8%
logindjango/contrib/auth/__init__.py:1772 ms3.6%
SessionBase.__contains__django/contrib/sessions/backends/base.py:522 ms3.6%
SessionBase._get_sessiondjango/contrib/sessions/backends/base.py:2542 ms3.6%
SessionStore.loaddjango/contrib/sessions/backends/db.py:552 ms3.6%
SessionStore._get_session_from_dbdjango/contrib/sessions/backends/db.py:342 ms3.6%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms3.6%
QuerySet.getdjango/db/models/query.py:7022 ms3.6%
QuerySet.__len__django/db/models/query.py:4211 ms1.8%
QuerySet._fetch_alldjango/db/models/query.py:22621 ms1.8%
ModelIterable.__iter__django/db/models/query.py:1031 ms1.8%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16251 ms1.8%
CursorWrapper.executedjango/db/backends/utils.py:791 ms1.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms1.8%
ClientMixin._logindjango/test/client.py:8841 ms1.8%
ClientMixin.sessiondjango/test/client.py:8151 ms1.8%
SessionStore.savedjango/contrib/sessions/backends/db.py:1211 ms1.8%
SessionStore.createdjango/contrib/sessions/backends/db.py:741 ms1.8%
SessionStore.savedjango/contrib/sessions/backends/db.py:1261 ms1.8%
Atomic.__exit__django/db/transaction.py:2591 ms1.8%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:261 ms1.8%
BaseDatabaseWrapper.savepoint_commitdjango/db/backends/base/base.py:4311 ms1.8%
BaseDatabaseWrapper._savepoint_commitdjango/db/backends/base/base.py:3751 ms1.8%
CursorWrapper.executedjango/db/backends/utils.py:791 ms1.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms1.8%
CursorWrapper._executedjango/db/backends/utils.py:1031 ms1.8%
Cursor.executepsycopg/cursor.py:1131 ms1.8%
Connection.waitpsycopg/connection.py:4951 ms1.8%
BaseCursor._execute_genpsycopg/_cursor_base.py:2061 ms1.8%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2861 ms1.8%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:781 ms1.8%
TestEditStarterPackAccounts.test_not_owned_starter_packstarter_packs/tests.py:263 response = self.client.get(reverse("edit_accounts_starter_pack", args=[self.starter_pack.slug]))6 ms9.0%
Client.getdjango/test/client.py:11335 ms7.2%
RequestFactory.getdjango/test/client.py:4755 ms7.2%
RequestFactory.genericdjango/test/client.py:6715 ms7.2%
Client.requestdjango/test/client.py:10915 ms7.2%
ClientHandler.__call__django/test/client.py:1735 ms7.2%
BaseHandler.load_middlewaredjango/core/handlers/base.py:635 ms7.2%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:1045 ms7.2%
WhiteNoise.add_fileswhitenoise/base.py:1085 ms7.2%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1154 ms5.4%
scantreewhitenoise/base.py:2714 ms5.4%
scantreewhitenoise/base.py:2712 ms3.6%
scantreewhitenoise/base.py:2732 ms3.6%
scantreewhitenoise/base.py:2731 ms1.8%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1201 ms1.8%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:1311 ms1.8%
WhiteNoise.get_static_filewhitenoise/base.py:2121 ms1.8%
WhiteNoise.add_cache_headerswhitenoise/base.py:2331 ms1.8%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1761 ms1.8%
TestData.__get__django/test/testcases.py:13701 ms1.8%
deepcopy<stdlib>/copy.py:1561 ms1.8%
_reconstruct<stdlib>/copy.py:2541 ms1.8%
deepcopy<stdlib>/copy.py:1301 ms1.8%
_deepcopy_dict<stdlib>/copy.py:2011 ms1.8%
deepcopy<stdlib>/copy.py:1561 ms1.8%
_reconstruct<stdlib>/copy.py:2541 ms1.8%
deepcopy<stdlib>/copy.py:1301 ms1.8%
_deepcopy_dict<stdlib>/copy.py:2011 ms1.8%
deepcopy<stdlib>/copy.py:1301 ms1.8%
_deepcopy_dict<stdlib>/copy.py:2011 ms1.8%
deepcopy<stdlib>/copy.py:1561 ms1.8%
_reconstruct<stdlib>/copy.py:2541 ms1.8%
deepcopy<stdlib>/copy.py:1301 ms1.8%
_deepcopy_dict<stdlib>/copy.py:2011 ms1.8%
deepcopy<stdlib>/copy.py:1561 ms1.8%
_reconstruct<stdlib>/copy.py:2541 ms1.8%
deepcopy<stdlib>/copy.py:1301 ms1.8%
_deepcopy_dict<stdlib>/copy.py:2011 ms1.8%
deepcopy<stdlib>/copy.py:1301 ms1.8%
_deepcopy_dict<stdlib>/copy.py:2011 ms1.8%
deepcopy<stdlib>/copy.py:1561 ms1.8%
_reconstruct<stdlib>/copy.py:2541 ms1.8%
deepcopy<stdlib>/copy.py:1301 ms1.8%
teardown1 ms2.1%
TestCase.tearDownClassdjango/test/testcases.py:1458 conn.close()1 ms2.1%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:261 ms2.1%
BaseDatabaseWrapper.closedjango/db/backends/base/base.py:3551 ms2.1%
DatabaseWrapper._closedjango/db/backends/postgresql/base.py:4081 ms2.1%
Connection.closepsycopg/connection.py:2011 ms2.1%
Estimated from 55 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
starter_packs/tests.py:262
self.client.force_login(other_user)
TestEditStarterPackAccounts.test_not_owned_starter_pack
· Database
|
12 ms |
|
starter_packs/tests.py:263
response = self.client.get(reverse("edit_accounts_starter_pack", args=[self.starter_pack.slug]))
TestEditStarterPackAccounts.test_not_owned_starter_pack
· Libraries
|
6 ms |
Fixtures
Exact setup time| _live_server_helper function | 0.05 ms |
| _dj_autoclear_mailbox function | 0.05 ms |
| _template_string_if_invalid_marker function | 0.04 ms |
| _django_db_marker function | 0.03 ms |
| _django_isolate_apps function | 0.03 ms |
| _django_set_urlconf function | 0.03 ms |
| _django_clear_site_cache function | 0.02 ms |
| monkeypatch function | 0.02 ms |
Database
24 queries · 17 msNo repeated queries.
Biggest pieces of work
|
call _post_teardown
django/test/testcases.py:1243
|
46 ms |
|
call test body
starter_packs/tests.py:262
|
18 ms |
|
teardown tearDownClass
django/test/testcases.py:1458
|
1 ms |
Reliability
14 results · 0 CI failures · 0 local failuresThis test hasn't failed recently.
History
Latest 14 results, oldest first in the strip| When | Environment | Outcome | Duration | |
|---|---|---|---|---|
| 2 weeks ago | CI github-actions:test | passed | 65 ms | Profile |
| 2 weeks, 5 days ago | CI github-actions:test | passed | 107 ms | Profile |
| 2 weeks, 6 days ago | CI github-actions:test | passed | 150 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 245 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 115 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 165 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 87 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 93 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 87 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 58 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 173 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 436 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 340 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 83 ms | Run |