flakytest.dev anze3db fedidevs
Tests / starter_packs/tests.py

TestDeleteStarterPack::test_not_owned_starter_pack

First seen 1 year, 10 months ago in 1b5db0c
CI github-actions:test 5 runs
Average
136 ms
median 100 ms
max 223 ms
Phases
Setup 2 ms Call 130 ms Teardown 4 ms
Categories
Database 31 ms Factories 0.56 ms Other (Libraries, pytest, Deep copies, Unsampled) 104 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, 2 days ago · open run
Show pytest frames
setup1 ms1.4%
call94 ms94.0%
TestDeleteStarterPack.test_not_owned_starter_packstarter_packs/tests.py:334 response = self.client.get(reverse("delete_starter_pack", args=[self.starter_pack.slug]))72 ms71.9%
Client.getdjango/test/client.py:113369 ms69.0%
RequestFactory.getdjango/test/client.py:47569 ms69.0%
RequestFactory.genericdjango/test/client.py:67169 ms69.0%
Client.requestdjango/test/client.py:109169 ms69.0%
ClientHandler.__call__django/test/client.py:17362 ms61.7%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6362 ms61.7%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10460 ms60.2%
WhiteNoise.add_fileswhitenoise/base.py:10860 ms60.2%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12054 ms54.3%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13154 ms54.3%
WhiteNoise.get_static_filewhitenoise/base.py:21731 ms30.8%
StaticFile.__init__whitenoise/responders.py:779 ms8.8%
StaticFile.get_alternativeswhitenoise/responders.py:2007 ms7.3%
__init____init__:-14 ms4.4%
Headers.__init__<stdlib>/wsgiref/headers.py:431 ms1.5%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:501 ms1.5%
Headers.__init__<stdlib>/wsgiref/headers.py:441 ms1.5%
StaticFile.get_alternativeswhitenoise/responders.py:2031 ms1.5%
Headers.__setitem__<stdlib>/wsgiref/headers.py:601 ms1.5%
<GC>~1 ms1.5%
StaticFile.__init__whitenoise/responders.py:766 ms5.9%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1893 ms2.9%
Headers.__getitem__<stdlib>/wsgiref/headers.py:833 ms2.9%
Headers.get<stdlib>/wsgiref/headers.py:1061 ms1.5%
Headers.get<stdlib>/wsgiref/headers.py:1041 ms1.5%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:501 ms1.5%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1881 ms1.5%
Headers.__contains__<stdlib>/wsgiref/headers.py:871 ms1.5%
Headers.get<stdlib>/wsgiref/headers.py:1051 ms1.5%
StaticFile.__init__whitenoise/responders.py:736 ms5.9%
StaticFile.get_headerswhitenoise/responders.py:1761 ms1.5%
formatdate<stdlib>/email/utils.py:2661 ms1.5%
format_datetime<stdlib>/email/utils.py:2841 ms1.5%
_format_timetuple_and_zone<stdlib>/email/utils.py:2301 ms1.5%
StaticFile.get_headerswhitenoise/responders.py:1801 ms1.5%
StaticFile.get_headerswhitenoise/responders.py:1781 ms1.5%
parsedate<stdlib>/email/_parseaddr.py:1851 ms1.5%
parsedate_tz<stdlib>/email/_parseaddr.py:501 ms1.5%
_parsedate_tz<stdlib>/email/_parseaddr.py:1441 ms1.5%
StaticFile.__init__whitenoise/responders.py:723 ms2.9%
StaticFile.get_file_statswhitenoise/responders.py:1613 ms2.9%
StaticFile.__init__whitenoise/responders.py:743 ms2.9%
parsedate<stdlib>/email/_parseaddr.py:1851 ms1.5%
parsedate_tz<stdlib>/email/_parseaddr.py:501 ms1.5%
Headers.__getitem__<stdlib>/wsgiref/headers.py:831 ms1.5%
StaticFile.__init__whitenoise/responders.py:753 ms2.9%
Headers.__getitem__<stdlib>/wsgiref/headers.py:831 ms1.5%
Headers.get<stdlib>/wsgiref/headers.py:1041 ms1.5%
WhiteNoise.get_static_filewhitenoise/base.py:21213 ms13.2%
WhiteNoise.add_cache_headerswhitenoise/base.py:23313 ms13.2%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1769 ms8.8%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1979 ms8.8%
URLMixin.urldebug_toolbar/panels/staticfiles.py:207 ms7.3%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:2354 ms4.4%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:2163 ms2.9%
FileSystemStorage.urldjango/core/files/storage/filesystem.py:2071 ms1.5%
URLMixin.urldebug_toolbar/panels/staticfiles.py:211 ms1.5%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1731 ms1.5%
WhiteNoiseMiddleware.get_name_without_hashwhitenoise/middleware.py:1911 ms1.5%
splitext<frozen posixpath>:1261 ms1.5%
_splitext<frozen genericpath>:1741 ms1.5%
WhiteNoise.get_static_filewhitenoise/base.py:2117 ms7.3%
WhiteNoise.add_mime_headerswhitenoise/base.py:2306 ms5.9%
Headers.add_header<stdlib>/wsgiref/headers.py:1923 ms2.9%
WhiteNoise.add_mime_headerswhitenoise/base.py:2251 ms1.5%
MediaTypes.get_typewhitenoise/media_types.py:171 ms1.5%
WhiteNoise.get_static_filewhitenoise/base.py:2141 ms1.5%
Headers.__setitem__<stdlib>/wsgiref/headers.py:621 ms1.5%
Headers.__delitem__<stdlib>/wsgiref/headers.py:711 ms1.5%
WhiteNoise.get_static_filewhitenoise/base.py:2211 ms1.5%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1156 ms5.9%
scantreewhitenoise/base.py:2716 ms5.9%
scantreewhitenoise/base.py:2716 ms5.9%
scantreewhitenoise/base.py:2693 ms2.9%
scantreewhitenoise/base.py:2731 ms1.5%
scantreewhitenoise/base.py:2711 ms1.5%
scantreewhitenoise/base.py:2711 ms1.5%
scantreewhitenoise/base.py:2711 ms1.5%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:1111 ms1.5%
WhiteNoise.add_fileswhitenoise/base.py:1081 ms1.5%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1201 ms1.5%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:1311 ms1.5%
WhiteNoise.get_static_filewhitenoise/base.py:2171 ms1.5%
StaticFile.__init__whitenoise/responders.py:741 ms1.5%
parsedate<stdlib>/email/_parseaddr.py:1851 ms1.5%
ClientHandler.__call__django/test/client.py:1867 ms7.3%
BaseHandler.get_responsedjango/core/handlers/base.py:1427 ms7.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:567 ms7.3%
MiddlewareMixin.__call__django/utils/deprecation.py:3807 ms7.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:567 ms7.3%
MiddlewareMixin.__call__django/utils/deprecation.py:3806 ms5.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:566 ms5.9%
MiddlewareMixin.__call__django/utils/deprecation.py:3806 ms5.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:566 ms5.9%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:1236 ms5.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:566 ms5.9%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1456 ms5.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:566 ms5.9%
MiddlewareMixin.__call__django/utils/deprecation.py:3806 ms5.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:566 ms5.9%
MiddlewareMixin.__call__django/utils/deprecation.py:3806 ms5.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:566 ms5.9%
MiddlewareMixin.__call__django/utils/deprecation.py:3806 ms5.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:566 ms5.9%
MiddlewareMixin.__call__django/utils/deprecation.py:3806 ms5.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:566 ms5.9%
MiddlewareMixin.__call__django/utils/deprecation.py:3806 ms5.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:566 ms5.9%
MiddlewareMixin.__call__django/utils/deprecation.py:3806 ms5.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:566 ms5.9%
MiddlewareMixin.__call__django/utils/deprecation.py:3806 ms5.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:566 ms5.9%
BaseHandler._get_responsedjango/core/handlers/base.py:1996 ms5.9%
user_passes_test.<locals>.decorator.<locals>._view_wrapperdjango/contrib/auth/decorators.py:594 ms4.4%
login_required.<locals>.<lambda>django/contrib/auth/decorators.py:824 ms4.4%
new_method_proxy.<locals>.innerdjango/utils/functional.py:2514 ms4.4%
SimpleLazyObject._setupdjango/utils/functional.py:4044 ms4.4%
AuthenticationMiddleware.process_request.<locals>.<lambda>django/contrib/auth/middleware.py:394 ms4.4%
get_userdjango/contrib/auth/middleware.py:194 ms4.4%
get_userdjango/contrib/auth/__init__.py:2873 ms2.9%
_get_user_session_keydjango/contrib/auth/__init__.py:1113 ms2.9%
SessionBase.__getitem__django/contrib/sessions/backends/base.py:553 ms2.9%
SessionBase._get_sessiondjango/contrib/sessions/backends/base.py:2543 ms2.9%
SessionStore.loaddjango/contrib/sessions/backends/db.py:553 ms2.9%
SessionStore._get_session_from_dbdjango/contrib/sessions/backends/db.py:343 ms2.9%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:873 ms2.9%
QuerySet.getdjango/db/models/query.py:6921 ms1.5%
QuerySet.filterdjango/db/models/query.py:16761 ms1.5%
QuerySet._filter_or_excludedjango/db/models/query.py:16941 ms1.5%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:17041 ms1.5%
Query.add_qdjango/db/models/sql/query.py:16811 ms1.5%
Query._add_qdjango/db/models/sql/query.py:17131 ms1.5%
Query.build_filterdjango/db/models/sql/query.py:16051 ms1.5%
QuerySet.getdjango/db/models/query.py:7021 ms1.5%
QuerySet.__len__django/db/models/query.py:4211 ms1.5%
QuerySet._fetch_alldjango/db/models/query.py:22621 ms1.5%
ModelIterable.__iter__django/db/models/query.py:1031 ms1.5%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16251 ms1.5%
CursorWrapper.executedjango/db/backends/utils.py:791 ms1.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms1.5%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms1.5%
Cursor.executepsycopg/cursor.py:1131 ms1.5%
Connection.waitpsycopg/connection.py:4951 ms1.5%
BaseCursor._execute_genpsycopg/_cursor_base.py:2061 ms1.5%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2861 ms1.5%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:781 ms1.5%
get_userdjango/contrib/auth/__init__.py:2941 ms1.5%
ModelBackend.get_userdjango/contrib/auth/backends.py:2371 ms1.5%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:871 ms1.5%
QuerySet.getdjango/db/models/query.py:7021 ms1.5%
QuerySet.__len__django/db/models/query.py:4211 ms1.5%
QuerySet._fetch_alldjango/db/models/query.py:22621 ms1.5%
ModelIterable.__iter__django/db/models/query.py:1031 ms1.5%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16251 ms1.5%
CursorWrapper.executedjango/db/backends/utils.py:791 ms1.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms1.5%
user_passes_test.<locals>.decorator.<locals>._view_wrapperdjango/contrib/auth/decorators.py:621 ms1.5%
delete_starter_packstarter_packs/views.py:9411 ms1.5%
get_editable_packstarter_packs/views.py:60 return get_object_or_404(StarterPack, slug=slug, owners=request.user, **extra)1 ms1.5%
get_object_or_404django/shortcuts.py:1001 ms1.5%
QuerySet.getdjango/db/models/query.py:7021 ms1.5%
QuerySet.__len__django/db/models/query.py:4211 ms1.5%
QuerySet._fetch_alldjango/db/models/query.py:22621 ms1.5%
ModelIterable.__iter__django/db/models/query.py:1031 ms1.5%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16251 ms1.5%
CursorWrapper.executedjango/db/backends/utils.py:791 ms1.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms1.5%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms1.5%
Cursor.executepsycopg/cursor.py:1131 ms1.5%
Connection.waitpsycopg/connection.py:4951 ms1.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3821 ms1.5%
CSPMiddleware.process_responsecsp/middleware.py:831 ms1.5%
build_policycsp/utils.py:1221 ms1.5%
TestData.__get__django/test/testcases.py:13703 ms2.9%
deepcopy<stdlib>/copy.py:1461 ms1.5%
Model.__reduce__django/db/models/base.py:6541 ms1.5%
Model.__getstate__django/db/models/base.py:6621 ms1.5%
copy<stdlib>/copy.py:1001 ms1.5%
deepcopy<stdlib>/copy.py:1571 ms1.5%
_reconstruct<stdlib>/copy.py:2551 ms1.5%
deepcopy<stdlib>/copy.py:1311 ms1.5%
_deepcopy_dict<stdlib>/copy.py:2021 ms1.5%
deepcopy<stdlib>/copy.py:1571 ms1.5%
_reconstruct<stdlib>/copy.py:2551 ms1.5%
deepcopy<stdlib>/copy.py:1311 ms1.5%
_deepcopy_dict<stdlib>/copy.py:2021 ms1.5%
deepcopy<stdlib>/copy.py:1311 ms1.5%
_deepcopy_dict<stdlib>/copy.py:2021 ms1.5%
deepcopy<stdlib>/copy.py:1571 ms1.5%
_reconstruct<stdlib>/copy.py:2551 ms1.5%
deepcopy<stdlib>/copy.py:1311 ms1.5%
_deepcopy_dict<stdlib>/copy.py:2021 ms1.5%
deepcopy<stdlib>/copy.py:1571 ms1.5%
_reconstruct<stdlib>/copy.py:2551 ms1.5%
deepcopy<stdlib>/copy.py:1311 ms1.5%
_deepcopy_dict<stdlib>/copy.py:2021 ms1.5%
deepcopy<stdlib>/copy.py:1311 ms1.5%
_deepcopy_dict<stdlib>/copy.py:2021 ms1.5%
deepcopy<stdlib>/copy.py:1571 ms1.5%
_reconstruct<stdlib>/copy.py:2551 ms1.5%
deepcopy<stdlib>/copy.py:1311 ms1.5%
_deepcopy_dict<stdlib>/copy.py:2021 ms1.5%
deepcopy<stdlib>/copy.py:1571 ms1.5%
_reconstruct<stdlib>/copy.py:2551 ms1.5%
deepcopy<stdlib>/copy.py:1311 ms1.5%
_deepcopy_dict<stdlib>/copy.py:2021 ms1.5%
deepcopy<stdlib>/copy.py:1311 ms1.5%
_deepcopy_dict<stdlib>/copy.py:2021 ms1.5%
deepcopy<stdlib>/copy.py:1571 ms1.5%
_reconstruct<stdlib>/copy.py:2491 ms1.5%
model_unpickledjango/db/models/base.py:25671 ms1.5%
TestDeleteStarterPack.test_not_owned_starter_packstarter_packs/tests.py:333 self.client.force_login(other_user)13 ms13.2%
ClientMixin.force_logindjango/test/client.py:85813 ms13.2%
ClientMixin._logindjango/test/client.py:8899 ms8.8%
logindjango/contrib/auth/__init__.py:1894 ms4.4%
SessionBase.cycle_keydjango/contrib/sessions/backends/base.py:4374 ms4.4%
SessionStore.createdjango/contrib/sessions/backends/db.py:743 ms2.9%
SessionStore.savedjango/contrib/sessions/backends/db.py:1231 ms1.5%
SessionStore.create_model_instancedjango/contrib/sessions/backends/db.py:1021 ms1.5%
SessionBase.encodedjango/contrib/sessions/backends/base.py:1291 ms1.5%
dumpsdjango/core/signing.py:1911 ms1.5%
Signer.sign_objectdjango/core/signing.py:2791 ms1.5%
TimestampSigner.signdjango/core/signing.py:3011 ms1.5%
Signer.signdjango/core/signing.py:2451 ms1.5%
Signer.signaturedjango/core/signing.py:2421 ms1.5%
base64_hmacdjango/core/signing.py:1141 ms1.5%
salted_hmacdjango/utils/crypto.py:611 ms1.5%
new<stdlib>/hmac.py:2301 ms1.5%
SessionStore.savedjango/contrib/sessions/backends/db.py:1261 ms1.5%
Atomic.__exit__django/db/transaction.py:2591 ms1.5%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:261 ms1.5%
BaseDatabaseWrapper.savepoint_commitdjango/db/backends/base/base.py:4311 ms1.5%
BaseDatabaseWrapper._savepoint_commitdjango/db/backends/base/base.py:3751 ms1.5%
CursorWrapper.executedjango/db/backends/utils.py:791 ms1.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms1.5%
CursorWrapper._executedjango/db/backends/utils.py:1031 ms1.5%
Cursor.executepsycopg/cursor.py:1131 ms1.5%
Connection.waitpsycopg/connection.py:4951 ms1.5%
BaseCursor._execute_genpsycopg/_cursor_base.py:2051 ms1.5%
BaseCursor._convert_querypsycopg/_cursor_base.py:4651 ms1.5%
PostgresClientQuery.convertpsycopg/_queries.py:2731 ms1.5%
PostgresQuery._ensure_bytespsycopg/_queries.py:1671 ms1.5%
conn_encodingpsycopg/_encodings.py:871 ms1.5%
SessionStore.createdjango/contrib/sessions/backends/db.py:701 ms1.5%
SessionBase._get_new_session_keydjango/contrib/sessions/backends/base.py:2011 ms1.5%
SessionStore.existsdjango/contrib/sessions/backends/db.py:631 ms1.5%
QuerySet.existsdjango/db/models/query.py:14581 ms1.5%
Query.has_resultsdjango/db/models/sql/query.py:6871 ms1.5%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15931 ms1.5%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16251 ms1.5%
CursorWrapper.executedjango/db/backends/utils.py:791 ms1.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms1.5%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms1.5%
Cursor.executepsycopg/cursor.py:1131 ms1.5%
Connection.waitpsycopg/connection.py:4951 ms1.5%
logindjango/contrib/auth/__init__.py:1771 ms1.5%
SessionBase.__contains__django/contrib/sessions/backends/base.py:521 ms1.5%
SessionBase._get_sessiondjango/contrib/sessions/backends/base.py:2541 ms1.5%
SessionStore.loaddjango/contrib/sessions/backends/db.py:551 ms1.5%
SessionStore._get_session_from_dbdjango/contrib/sessions/backends/db.py:341 ms1.5%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:871 ms1.5%
QuerySet.getdjango/db/models/query.py:7021 ms1.5%
QuerySet.__len__django/db/models/query.py:4211 ms1.5%
QuerySet._fetch_alldjango/db/models/query.py:22621 ms1.5%
ModelIterable.__iter__django/db/models/query.py:1031 ms1.5%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16121 ms1.5%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7961 ms1.5%
SQLCompiler.compiledjango/db/models/sql/compiler.py:5791 ms1.5%
WhereNode.as_sqldjango/db/models/sql/where.py:1511 ms1.5%
SQLCompiler.compiledjango/db/models/sql/compiler.py:5791 ms1.5%
Exact.as_sqldjango/db/models/lookups.py:4071 ms1.5%
logindjango/contrib/auth/__init__.py:1971 ms1.5%
rotate_tokendjango/middleware/csrf.py:1221 ms1.5%
logindjango/contrib/auth/__init__.py:1981 ms1.5%
Signal.senddjango/dispatch/dispatcher.py:2491 ms1.5%
update_last_logindjango/contrib/auth/models.py:241 ms1.5%
AbstractBaseUser.savedjango/contrib/auth/base_user.py:621 ms1.5%
Model.savedjango/db/models/base.py:9041 ms1.5%
Model.save_basedjango/db/models/base.py:9961 ms1.5%
Model._save_tabledjango/db/models/base.py:11401 ms1.5%
Model._do_updatedjango/db/models/base.py:12441 ms1.5%
QuerySet._updatedjango/db/models/query.py:14481 ms1.5%
SQLUpdateCompiler.execute_returning_sqldjango/db/models/sql/compiler.py:21501 ms1.5%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21211 ms1.5%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16251 ms1.5%
CursorWrapper.executedjango/db/backends/utils.py:791 ms1.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms1.5%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms1.5%
Cursor.executepsycopg/cursor.py:1131 ms1.5%
Connection.waitpsycopg/connection.py:4951 ms1.5%
ClientMixin._logindjango/test/client.py:8844 ms4.4%
ClientMixin.sessiondjango/test/client.py:8154 ms4.4%
SessionStore.savedjango/contrib/sessions/backends/db.py:1214 ms4.4%
SessionStore.createdjango/contrib/sessions/backends/db.py:703 ms2.9%
SessionBase._get_new_session_keydjango/contrib/sessions/backends/base.py:2001 ms1.5%
get_random_stringdjango/utils/crypto.py:781 ms1.5%
get_random_string.<locals>.<genexpr>django/utils/crypto.py:781 ms1.5%
Random.choice<stdlib>/random.py:3541 ms1.5%
Random._randbelow_with_getrandbits<stdlib>/random.py:2511 ms1.5%
SystemRandom.getrandbits<stdlib>/random.py:9151 ms1.5%
SessionBase._get_new_session_keydjango/contrib/sessions/backends/base.py:2011 ms1.5%
SessionStore.existsdjango/contrib/sessions/backends/db.py:631 ms1.5%
QuerySet.existsdjango/db/models/query.py:14581 ms1.5%
Query.has_resultsdjango/db/models/sql/query.py:6871 ms1.5%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15931 ms1.5%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16251 ms1.5%
CursorWrapper.executedjango/db/backends/utils.py:791 ms1.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms1.5%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms1.5%
Cursor.executepsycopg/cursor.py:1131 ms1.5%
Connection.waitpsycopg/connection.py:4951 ms1.5%
BaseCursor._execute_genpsycopg/_cursor_base.py:2061 ms1.5%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2861 ms1.5%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:781 ms1.5%
SessionStore.createdjango/contrib/sessions/backends/db.py:741 ms1.5%
SessionStore.savedjango/contrib/sessions/backends/db.py:1271 ms1.5%
Model.savedjango/db/models/base.py:9041 ms1.5%
Model.save_basedjango/db/models/base.py:9961 ms1.5%
Model._save_tabledjango/db/models/base.py:11991 ms1.5%
Model._do_insertdjango/db/models/base.py:12511 ms1.5%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:871 ms1.5%
QuerySet._insertdjango/db/models/query.py:21411 ms1.5%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19361 ms1.5%
CursorWrapper.executedjango/db/backends/utils.py:791 ms1.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms1.5%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms1.5%
Cursor.executepsycopg/cursor.py:1131 ms1.5%
Connection.waitpsycopg/connection.py:4951 ms1.5%
BaseCursor._execute_genpsycopg/_cursor_base.py:2061 ms1.5%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2861 ms1.5%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:781 ms1.5%
TransactionTestCase._post_teardowndjango/test/testcases.py:1243 self._fixture_teardown()6 ms5.9%
TestCase._fixture_teardowndjango/test/testcases.py:14986 ms5.9%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4954 ms4.4%
CursorWrapper.executedjango/db/backends/utils.py:794 ms4.4%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:924 ms4.4%
CursorWrapper._executedjango/db/backends/utils.py:1034 ms4.4%
Cursor.executepsycopg/cursor.py:1134 ms4.4%
Connection.waitpsycopg/connection.py:4954 ms4.4%
BaseCursor._execute_genpsycopg/_cursor_base.py:2063 ms2.9%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2863 ms2.9%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:783 ms2.9%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4961 ms1.5%
CursorWrapper.executedjango/db/backends/utils.py:791 ms1.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms1.5%
CursorWrapper._executedjango/db/backends/utils.py:1031 ms1.5%
Cursor.executepsycopg/cursor.py:1131 ms1.5%
Connection.waitpsycopg/connection.py:4951 ms1.5%
TransactionTestCase._pre_setupdjango/test/testcases.py:1167 cls._fixture_setup()1 ms1.5%
TestCase._fixture_setupdjango/test/testcases.py:14811 ms1.5%
TestCase._enter_atomicsdjango/test/testcases.py:14001 ms1.5%
TestDeleteStarterPack.test_not_owned_starter_packstarter_packs/tests.py:332 other_user = baker.make("auth.User")1 ms1.5%
makemodel_bakery/baker.py:1751 ms1.5%
Baker.makemodel_bakery/baker.py:4541 ms1.5%
Baker._makemodel_bakery/baker.py:5421 ms1.5%
Baker.instancemodel_bakery/baker.py:6591 ms1.5%
AbstractBaseUser.savedjango/contrib/auth/base_user.py:621 ms1.5%
Model.savedjango/db/models/base.py:9041 ms1.5%
Model.save_basedjango/db/models/base.py:9961 ms1.5%
Model._save_tabledjango/db/models/base.py:11991 ms1.5%
Model._do_insertdjango/db/models/base.py:12511 ms1.5%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:871 ms1.5%
QuerySet._insertdjango/db/models/query.py:21411 ms1.5%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19361 ms1.5%
CursorWrapper.executedjango/db/backends/utils.py:791 ms1.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms1.5%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms1.5%
Cursor.executepsycopg/cursor.py:1131 ms1.5%
Connection.waitpsycopg/connection.py:4951 ms1.5%
BaseCursor._execute_genpsycopg/_cursor_base.py:2051 ms1.5%
BaseCursor._convert_querypsycopg/_cursor_base.py:4651 ms1.5%
PostgresClientQuery.convertpsycopg/_queries.py:2891 ms1.5%
PostgresClientQuery.dumppsycopg/_queries.py:2991 ms1.5%
PostgresClientQuery.dump.<locals>.<genexpr>psycopg/_queries.py:3001 ms1.5%
teardown5 ms4.6%
TestCase.tearDownClassdjango/test/testcases.py:1458 conn.close()3 ms3.4%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:263 ms3.4%
BaseDatabaseWrapper.closedjango/db/backends/base/base.py:3553 ms3.4%
DatabaseWrapper._closedjango/db/backends/postgresql/base.py:4083 ms3.4%
Connection.closepsycopg/connection.py:2013 ms3.4%
TestCase.tearDownClassdjango/test/testcases.py:1456 cls._rollback_atomics(cls.cls_atomics)1 ms1.1%
TestCase._rollback_atomicsdjango/test/testcases.py:14081 ms1.1%
Atomic.__exit__django/db/transaction.py:3071 ms1.1%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:261 ms1.1%
BaseDatabaseWrapper.rollbackdjango/db/backends/base/base.py:3371 ms1.1%
BaseDatabaseWrapper._rollbackdjango/db/backends/base/base.py:3081 ms1.1%
Connection.rollbackpsycopg/connection.py:3141 ms1.1%
Connection.waitpsycopg/connection.py:4951 ms1.1%
BaseConnection._rollback_genpsycopg/_connection_base.py:6171 ms1.1%
BaseConnection._exec_commandpsycopg/_connection_base.py:4741 ms1.1%
Estimated from 70 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

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
70 ms
starter_packs/tests.py:333
self.client.force_login(other_user)
TestDeleteStarterPack.test_not_owned_starter_pack · Database
13 ms
starter_packs/tests.py:332
other_user = baker.make("auth.User")
TestDeleteStarterPack.test_not_owned_starter_pack · Database
1 ms
starter_packs/views.py:60
return get_object_or_404(StarterPack, slug=slug, owners=request.user, **extra)
get_editable_pack · Database
1 ms

Fixtures

Exact setup time
_template_string_if_invalid_marker function 0.22 ms
_dj_autoclear_mailbox function 0.07 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.04 ms
_django_clear_site_cache function 0.03 ms
monkeypatch function 0.03 ms

Database

24 queries · 11 ms
No repeated queries.

Biggest pieces of work

call test body
starter_packs/tests.py:334
86 ms
call _post_teardown
django/test/testcases.py:1243
6 ms
teardown tearDownClass
django/test/testcases.py:1458
5 ms
call _pre_setup
django/test/testcases.py:1167
1 ms
setup pytest internals 1 ms

Reliability

6 results · 0 CI failures · 0 local failures

This test hasn't failed recently.

History

Latest 6 results, oldest first in the strip
When Environment Outcome Duration Commit
2 days ago CI github-actions:test passed 100 ms 615a272 main Profile
4 days, 2 hours ago CI github-actions:test passed 66 ms d923a46 main Profile
4 days, 2 hours ago CI github-actions:test passed 193 ms 82997f8 main Profile
4 days, 3 hours ago CI github-actions:test passed 100 ms 623aa3e main Profile
4 days, 7 hours ago CI github-actions:test passed 223 ms ab6465a main Profile
4 days, 8 hours ago CI github-actions:test passed 75 ms 0c23747 main Run