Tests / starter_packs/tests.py
TestDeleteStarterPack::test_not_owned_starter_pack
First seen 1 year, 10 months ago in 1b5db0c
CI
github-actions:test
4 runs
Average
146 ms
median 147 ms
max 223 ms
max 223 ms
Phases
Setup 2 ms
Call 140 ms
Teardown 4 ms
Categories
Database 32 ms
Factories 0.70 ms
Other (Libraries, pytest, Deep copies, Unsampled) 113 ms
24 database queries per run
Needs 0 KB of memory (max 0 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 8 hours ago ·
open run
setup0.94 ms1.4%
CallInfo.from_call_pytest/runner.py:3610.94 ms1.4%
call_and_report.<locals>.<lambda>_pytest/runner.py:2500.94 ms1.4%
HookCaller.__call__pluggy/_hooks.py:5120.94 ms1.4%
PluginManager._hookexecpluggy/_manager.py:1200.94 ms1.4%
_multicallpluggy/_callers.py:1210.94 ms1.4%
pytest_runtest_setup_pytest/runner.py:1700.94 ms1.4%
SetupState.setup_pytest/runner.py:5360.94 ms1.4%
TestCaseFunction.setup_pytest/unittest.py:2480.94 ms1.4%
Function.setup_pytest/python.py:17100.94 ms1.4%
TopRequest._fillfixtures_pytest/fixtures.py:8060.94 ms1.4%
FixtureRequest.getfixturevalue_pytest/fixtures.py:6300.94 ms1.4%
FixtureRequest._get_active_fixturedef_pytest/fixtures.py:7260.94 ms1.4%
FixtureDef.execute_pytest/fixtures.py:12320.94 ms1.4%
HookCaller.__call__pluggy/_hooks.py:5120.94 ms1.4%
PluginManager._hookexecpluggy/_manager.py:1200.94 ms1.4%
_multicallpluggy/_callers.py:1210.94 ms1.4%
pytest_fixture_setup_pytest/fixtures.py:13110.94 ms1.4%
FixtureRequest.getfixturevalue_pytest/fixtures.py:6300.94 ms1.4%
FixtureRequest._get_active_fixturedef_pytest/fixtures.py:6490.94 ms1.4%
__init____init__:-10.94 ms1.4%
RequestFixtureDef.__init___pytest/fixtures.py:12550.94 ms1.4%
FixtureDef.__init___pytest/fixtures.py:11240.94 ms1.4%
getfuncargnames_pytest/compat.py:1370.94 ms1.4%
signature_pytest/compat.py:710.94 ms1.4%
call65 ms97.5%
CallInfo.from_call_pytest/runner.py:36165 ms97.5%
call_and_report.<locals>.<lambda>_pytest/runner.py:25065 ms97.5%
HookCaller.__call__pluggy/_hooks.py:51265 ms97.5%
PluginManager._hookexecpluggy/_manager.py:12065 ms97.5%
_multicallpluggy/_callers.py:12165 ms97.5%
pytest_runtest_call_pytest/runner.py:18465 ms97.5%
_django_setup_unittest.<locals>.non_debugging_runtestpytest_django/plugin.py:61465 ms97.5%
SimpleTestCase.__call__django/test/testcases.py:31465 ms97.5%
SimpleTestCase._setup_and_calldjango/test/testcases.py:36956 ms84.8%
TestCase.__call__<stdlib>/unittest/case.py:74756 ms84.8%
TestCase.run<stdlib>/unittest/case.py:69156 ms84.8%
TestCase._callTestMethod<stdlib>/unittest/case.py:63756 ms84.8%
TestDeleteStarterPack.test_not_owned_starter_packstarter_packs/tests.py:334 response = self.client.get(reverse("delete_starter_pack", args=[self.starter_pack.slug]))39 ms59.3%
Client.getdjango/test/client.py:113336 ms55.1%
RequestFactory.getdjango/test/client.py:47536 ms55.1%
RequestFactory.genericdjango/test/client.py:67136 ms55.1%
Client.requestdjango/test/client.py:109136 ms55.1%
ClientHandler.__call__django/test/client.py:17328 ms42.4%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6328 ms42.4%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10428 ms42.4%
WhiteNoise.add_fileswhitenoise/base.py:10828 ms42.4%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12014 ms21.2%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13111 ms17.0%
WhiteNoise.get_static_filewhitenoise/base.py:2178 ms12.7%
StaticFile.__init__whitenoise/responders.py:763 ms4.2%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1893 ms4.2%
Headers.__getitem__<stdlib>/wsgiref/headers.py:833 ms4.2%
Headers.get<stdlib>/wsgiref/headers.py:1053 ms4.2%
StaticFile.__init__whitenoise/responders.py:743 ms4.2%
parsedate<stdlib>/email/_parseaddr.py:1853 ms4.2%
parsedate_tz<stdlib>/email/_parseaddr.py:503 ms4.2%
_parsedate_tz<stdlib>/email/_parseaddr.py:1053 ms4.2%
StaticFile.__init__whitenoise/responders.py:723 ms4.2%
StaticFile.get_file_statswhitenoise/responders.py:1613 ms4.2%
WhiteNoise.get_static_filewhitenoise/base.py:2153 ms4.2%
WhiteNoise.update_files_dictionarywhitenoise/base.py:11511 ms17.0%
scantreewhitenoise/base.py:2718 ms12.7%
scantreewhitenoise/base.py:2718 ms12.7%
scantreewhitenoise/base.py:2736 ms8.5%
scantreewhitenoise/base.py:2713 ms4.2%
scantreewhitenoise/base.py:2713 ms4.2%
scantreewhitenoise/base.py:2713 ms4.2%
scantreewhitenoise/base.py:2733 ms4.2%
scantreewhitenoise/base.py:2733 ms4.2%
ClientHandler.__call__django/test/client.py:1866 ms8.5%
BaseHandler.get_responsedjango/core/handlers/base.py:1426 ms8.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:566 ms8.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3806 ms8.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:566 ms8.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3806 ms8.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:566 ms8.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3806 ms8.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:566 ms8.5%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:1236 ms8.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:566 ms8.5%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1456 ms8.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:566 ms8.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3806 ms8.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:566 ms8.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3806 ms8.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:566 ms8.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3806 ms8.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:566 ms8.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3806 ms8.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:566 ms8.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3806 ms8.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:566 ms8.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3806 ms8.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:566 ms8.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3806 ms8.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:566 ms8.5%
BaseHandler._get_responsedjango/core/handlers/base.py:1996 ms8.5%
user_passes_test.<locals>.decorator.<locals>._view_wrapperdjango/contrib/auth/decorators.py:593 ms4.2%
login_required.<locals>.<lambda>django/contrib/auth/decorators.py:823 ms4.2%
new_method_proxy.<locals>.innerdjango/utils/functional.py:2513 ms4.2%
SimpleLazyObject._setupdjango/utils/functional.py:4043 ms4.2%
AuthenticationMiddleware.process_request.<locals>.<lambda>django/contrib/auth/middleware.py:393 ms4.2%
get_userdjango/contrib/auth/middleware.py:193 ms4.2%
get_userdjango/contrib/auth/__init__.py:2873 ms4.2%
_get_user_session_keydjango/contrib/auth/__init__.py:1113 ms4.2%
SessionBase.__getitem__django/contrib/sessions/backends/base.py:553 ms4.2%
SessionBase._get_sessiondjango/contrib/sessions/backends/base.py:2543 ms4.2%
SessionStore.loaddjango/contrib/sessions/backends/db.py:553 ms4.2%
SessionStore._get_session_from_dbdjango/contrib/sessions/backends/db.py:343 ms4.2%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:873 ms4.2%
QuerySet.getdjango/db/models/query.py:7023 ms4.2%
QuerySet.__len__django/db/models/query.py:4213 ms4.2%
QuerySet._fetch_alldjango/db/models/query.py:22623 ms4.2%
ModelIterable.__iter__django/db/models/query.py:1033 ms4.2%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16233 ms4.2%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:263 ms4.2%
BaseDatabaseWrapper.cursordjango/db/backends/base/base.py:3203 ms4.2%
BaseDatabaseWrapper._cursordjango/db/backends/base/base.py:2983 ms4.2%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:263 ms4.2%
DatabaseWrapper.create_cursordjango/db/backends/postgresql/base.py:4423 ms4.2%
Connection.cursorpsycopg/connection.py:2593 ms4.2%
user_passes_test.<locals>.decorator.<locals>._view_wrapperdjango/contrib/auth/decorators.py:623 ms4.2%
delete_starter_packstarter_packs/views.py:9413 ms4.2%
get_editable_packstarter_packs/views.py:60 return get_object_or_404(StarterPack, slug=slug, owners=request.user, **extra)3 ms4.2%
get_object_or_404django/shortcuts.py:903 ms4.2%
_get_querysetdjango/shortcuts.py:753 ms4.2%
BaseManager.alldjango/db/models/manager.py:1643 ms4.2%
ClientHandler.__call__django/test/client.py:1763 ms4.2%
Signal.senddjango/dispatch/dispatcher.py:2493 ms4.2%
reset_queriesdjango/db/__init__.py:483 ms4.2%
BaseConnectionHandler.alldjango/utils/connection.py:803 ms4.2%
Local.__getattr__asgiref/local.py:1573 ms4.2%
TestData.__get__django/test/testcases.py:13703 ms4.2%
deepcopy<stdlib>/copy.py:1573 ms4.2%
_reconstruct<stdlib>/copy.py:2553 ms4.2%
deepcopy<stdlib>/copy.py:1313 ms4.2%
_deepcopy_dict<stdlib>/copy.py:2023 ms4.2%
deepcopy<stdlib>/copy.py:1573 ms4.2%
_reconstruct<stdlib>/copy.py:2553 ms4.2%
deepcopy<stdlib>/copy.py:1313 ms4.2%
_deepcopy_dict<stdlib>/copy.py:2023 ms4.2%
deepcopy<stdlib>/copy.py:1313 ms4.2%
_deepcopy_dict<stdlib>/copy.py:2023 ms4.2%
deepcopy<stdlib>/copy.py:1573 ms4.2%
_reconstruct<stdlib>/copy.py:2553 ms4.2%
deepcopy<stdlib>/copy.py:1313 ms4.2%
_deepcopy_dict<stdlib>/copy.py:2023 ms4.2%
deepcopy<stdlib>/copy.py:1573 ms4.2%
_reconstruct<stdlib>/copy.py:2553 ms4.2%
deepcopy<stdlib>/copy.py:1313 ms4.2%
_deepcopy_dict<stdlib>/copy.py:2023 ms4.2%
deepcopy<stdlib>/copy.py:1313 ms4.2%
_deepcopy_dict<stdlib>/copy.py:2023 ms4.2%
deepcopy<stdlib>/copy.py:1573 ms4.2%
_reconstruct<stdlib>/copy.py:2493 ms4.2%
TestDeleteStarterPack.test_not_owned_starter_packstarter_packs/tests.py:333 self.client.force_login(other_user)14 ms21.2%
ClientMixin.force_logindjango/test/client.py:85814 ms21.2%
ClientMixin._logindjango/test/client.py:8898 ms12.7%
logindjango/contrib/auth/__init__.py:1773 ms4.2%
SessionBase.__contains__django/contrib/sessions/backends/base.py:523 ms4.2%
SessionBase._get_sessiondjango/contrib/sessions/backends/base.py:2543 ms4.2%
SessionStore.loaddjango/contrib/sessions/backends/db.py:553 ms4.2%
SessionStore._get_session_from_dbdjango/contrib/sessions/backends/db.py:343 ms4.2%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:873 ms4.2%
QuerySet.getdjango/db/models/query.py:7023 ms4.2%
QuerySet.__len__django/db/models/query.py:4213 ms4.2%
QuerySet._fetch_alldjango/db/models/query.py:22623 ms4.2%
ModelIterable.__iter__django/db/models/query.py:1033 ms4.2%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16253 ms4.2%
CursorWrapper.executedjango/db/backends/utils.py:793 ms4.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms4.2%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1003 ms4.2%
CursorWrapper._executedjango/db/backends/utils.py:1053 ms4.2%
Cursor.executepsycopg/cursor.py:1133 ms4.2%
Connection.waitpsycopg/connection.py:4953 ms4.2%
BaseCursor._execute_genpsycopg/_cursor_base.py:2063 ms4.2%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2863 ms4.2%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:783 ms4.2%
logindjango/contrib/auth/__init__.py:1893 ms4.2%
SessionBase.cycle_keydjango/contrib/sessions/backends/base.py:4373 ms4.2%
SessionStore.createdjango/contrib/sessions/backends/db.py:703 ms4.2%
SessionBase._get_new_session_keydjango/contrib/sessions/backends/base.py:2013 ms4.2%
SessionStore.existsdjango/contrib/sessions/backends/db.py:633 ms4.2%
QuerySet.existsdjango/db/models/query.py:14583 ms4.2%
Query.has_resultsdjango/db/models/sql/query.py:6873 ms4.2%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15933 ms4.2%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16443 ms4.2%
DatabaseErrorWrapper.__call__.<locals>.innerdjango/db/utils.py:1013 ms4.2%
logindjango/contrib/auth/__init__.py:1983 ms4.2%
Signal.senddjango/dispatch/dispatcher.py:2493 ms4.2%
update_last_logindjango/contrib/auth/models.py:243 ms4.2%
AbstractBaseUser.savedjango/contrib/auth/base_user.py:623 ms4.2%
Model.savedjango/db/models/base.py:9043 ms4.2%
Model.save_basedjango/db/models/base.py:9963 ms4.2%
Model._save_tabledjango/db/models/base.py:11403 ms4.2%
Model._do_updatedjango/db/models/base.py:12213 ms4.2%
QuerySet.filterdjango/db/models/query.py:16763 ms4.2%
QuerySet._filter_or_excludedjango/db/models/query.py:16943 ms4.2%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:17043 ms4.2%
Query.add_qdjango/db/models/sql/query.py:16813 ms4.2%
Query._add_qdjango/db/models/sql/query.py:17133 ms4.2%
Query.build_filterdjango/db/models/sql/query.py:16133 ms4.2%
Query.build_lookupdjango/db/models/sql/query.py:14403 ms4.2%
ClientMixin._logindjango/test/client.py:8843 ms4.2%
ClientMixin.sessiondjango/test/client.py:8153 ms4.2%
SessionStore.savedjango/contrib/sessions/backends/db.py:1213 ms4.2%
SessionStore.createdjango/contrib/sessions/backends/db.py:743 ms4.2%
SessionStore.savedjango/contrib/sessions/backends/db.py:1263 ms4.2%
Atomic.__exit__django/db/transaction.py:2593 ms4.2%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:263 ms4.2%
BaseDatabaseWrapper.savepoint_commitdjango/db/backends/base/base.py:4313 ms4.2%
BaseDatabaseWrapper._savepoint_commitdjango/db/backends/base/base.py:3753 ms4.2%
CursorWrapper.executedjango/db/backends/utils.py:793 ms4.2%
ClientMixin._logindjango/test/client.py:8913 ms4.2%
SessionStore.savedjango/contrib/sessions/backends/db.py:1273 ms4.2%
Model.savedjango/db/models/base.py:9043 ms4.2%
Model.save_basedjango/db/models/base.py:9963 ms4.2%
TestDeleteStarterPack.test_not_owned_starter_packstarter_packs/tests.py:332 other_user = baker.make("auth.User")3 ms4.2%
makemodel_bakery/baker.py:1473 ms4.2%
SimpleTestCase._setup_and_calldjango/test/testcases.py:3728 ms12.7%
TransactionTestCase._post_teardowndjango/test/testcases.py:1243 self._fixture_teardown()8 ms12.7%
TestCase._fixture_teardowndjango/test/testcases.py:15008 ms12.7%
TestCase._rollback_atomicsdjango/test/testcases.py:14088 ms12.7%
Atomic.__exit__django/db/transaction.py:2986 ms8.5%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:266 ms8.5%
BaseDatabaseWrapper.savepoint_commitdjango/db/backends/base/base.py:4316 ms8.5%
BaseDatabaseWrapper._savepoint_commitdjango/db/backends/base/base.py:3756 ms8.5%
CursorWrapper.executedjango/db/backends/utils.py:796 ms8.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:926 ms8.5%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1006 ms8.5%
CursorWrapper._executedjango/db/backends/utils.py:1036 ms8.5%
Cursor.executepsycopg/cursor.py:1136 ms8.5%
Connection.waitpsycopg/connection.py:4956 ms8.5%
BaseCursor._execute_genpsycopg/_cursor_base.py:2066 ms8.5%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2866 ms8.5%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:786 ms8.5%
Atomic.__exit__django/db/transaction.py:2953 ms4.2%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:263 ms4.2%
BaseDatabaseWrapper.savepoint_rollbackdjango/db/backends/base/base.py:4133 ms4.2%
BaseDatabaseWrapper._savepoint_rollbackdjango/db/backends/base/base.py:3713 ms4.2%
CursorWrapper.executedjango/db/backends/utils.py:793 ms4.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms4.2%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1003 ms4.2%
CursorWrapper._executedjango/db/backends/utils.py:1033 ms4.2%
Cursor.executepsycopg/cursor.py:1133 ms4.2%
Connection.waitpsycopg/connection.py:4953 ms4.2%
BaseCursor._execute_genpsycopg/_cursor_base.py:2063 ms4.2%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2863 ms4.2%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:783 ms4.2%
Estimated from 24 samples; phase durations are exact. Frames from pytest and pluggy are
shown
.
Hot lines in your code
|
starter_packs/tests.py:334
response = self.client.get(reverse("delete_starter_pack", args=[self.starter_pack.slug]))
TestDeleteStarterPack.test_not_owned_starter_pack
· Libraries
|
36 ms |
|
starter_packs/tests.py:333
self.client.force_login(other_user)
TestDeleteStarterPack.test_not_owned_starter_pack
· Database
|
14 ms |
|
starter_packs/tests.py:332
other_user = baker.make("auth.User")
TestDeleteStarterPack.test_not_owned_starter_pack
· Factories
|
3 ms |
|
starter_packs/views.py:60
return get_object_or_404(StarterPack, slug=slug, owners=request.user, **extra)
get_editable_pack
· Database
|
3 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.04 ms |
| _django_isolate_apps function | 0.03 ms |
| _live_server_helper function | 0.03 ms |
| _django_set_urlconf function | 0.03 ms |
| _django_clear_site_cache function | 0.03 ms |
| monkeypatch function | 0.02 ms |
Database
24 queries · 8 msNo repeated queries.
Biggest pieces of work
|
call test body
starter_packs/tests.py:334
|
56 ms |
|
call _post_teardown
django/test/testcases.py:1243
|
8 ms |
|
setup __init__
__init__:-1
|
0.94 ms |
Reliability
5 results · 0 CI failures · 0 local failuresThis test hasn't failed recently.
History
Latest 50 results, oldest first in the strip| When | Environment | Outcome | Duration | |
|---|---|---|---|---|
| 8 hours ago | CI github-actions:test | passed | 66 ms | Profile |
| 8 hours ago | CI github-actions:test | passed | 193 ms | Profile |
| 8 hours ago | CI github-actions:test | passed | 100 ms | Profile |
| 13 hours ago | CI github-actions:test | passed | 223 ms | Profile |
| 14 hours ago | CI github-actions:test | passed | 75 ms | Run |
| 3 months, 3 weeks ago | CI github-actions | passed | 55 ms | Run |
| 3 months, 3 weeks ago | CI github-actions | passed | 79 ms | Run |
| 3 months, 3 weeks ago | CI github-actions | passed | 81 ms | Run |
| 3 months, 3 weeks ago | CI github-actions | passed | 95 ms | Run |
| 3 months, 3 weeks ago | CI github-actions | passed | 83 ms | Run |
| 3 months, 3 weeks ago | CI github-actions | passed | 92 ms | Run |
| 3 months, 3 weeks ago | CI github-actions | passed | 81 ms | Run |
| 3 months, 3 weeks ago | CI github-actions | passed | 90 ms | Run |
| 3 months, 3 weeks ago | CI github-actions | passed | 104 ms | Run |
| 3 months, 4 weeks ago | CI github-actions | passed | 94 ms | Run |
| 3 months, 4 weeks ago | CI github-actions | passed | 89 ms | Run |
| 3 months, 4 weeks ago | CI github-actions | passed | 93 ms | Run |
| 3 months, 4 weeks ago | CI github-actions | passed | 89 ms | Run |
| 3 months, 4 weeks ago | CI github-actions | passed | 96 ms | Run |
| 3 months, 4 weeks ago | CI github-actions | passed | 90 ms | Run |