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

TestEditStarterPackAccounts::test_not_owned_starter_pack

First seen 1 year, 10 months ago in 1b5db0c
CI github-actions:test 5 runs
Average
219 ms
median 173 ms
max 436 ms
Phases
Setup 50 ms Call 167 ms Teardown 2 ms
Categories
Database 77 ms Factories 3 ms Other (Libraries, pytest, Imports, Deep copies, ...) 139 ms

28 database queries per run

Needs 161 KB of memory (max 656 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.2%
__init____init__:-11 ms1.2%
signature<stdlib>/inspect.py:33401 ms1.2%
Signature.from_callable<stdlib>/inspect.py:30551 ms1.2%
_signature_from_callable<stdlib>/inspect.py:25251 ms1.2%
_signature_from_function<stdlib>/inspect.py:24121 ms1.2%
Signature.__init__<stdlib>/inspect.py:30451 ms1.2%
Signature.__init__.<locals>.<genexpr><stdlib>/inspect.py:30451 ms1.2%
call84 ms97.0%
TestEditStarterPackAccounts.test_not_owned_starter_packstarter_packs/tests.py:263 response = self.client.get(reverse("edit_accounts_starter_pack", args=[self.starter_pack.slug]))69 ms79.9%
Client.getdjango/test/client.py:113367 ms77.0%
RequestFactory.getdjango/test/client.py:47567 ms77.0%
RequestFactory.genericdjango/test/client.py:67167 ms77.0%
Client.requestdjango/test/client.py:109167 ms77.0%
ClientHandler.__call__django/test/client.py:17355 ms62.8%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6355 ms62.8%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10455 ms62.8%
WhiteNoise.add_fileswhitenoise/base.py:10855 ms62.8%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12042 ms48.5%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13140 ms45.6%
WhiteNoise.get_static_filewhitenoise/base.py:21730 ms34.2%
StaticFile.__init__whitenoise/responders.py:7710 ms11.4%
StaticFile.get_alternativeswhitenoise/responders.py:2045 ms5.7%
compile<stdlib>/re/__init__.py:2915 ms5.7%
StaticFile.get_alternativeswhitenoise/responders.py:2012 ms2.9%
Headers.__setitem__<stdlib>/wsgiref/headers.py:622 ms2.9%
Headers.__delitem__<stdlib>/wsgiref/headers.py:722 ms2.9%
StaticFile.get_alternativeswhitenoise/responders.py:1982 ms2.9%
<GC>~2 ms2.9%
StaticFile.__init__whitenoise/responders.py:727 ms8.6%
StaticFile.get_file_statswhitenoise/responders.py:1615 ms5.7%
__init____init__:-15 ms5.7%
FileEntry.__init__whitenoise/responders.py:2635 ms5.7%
FileEntry.stat_regular_filewhitenoise/responders.py:2765 ms5.7%
<GC>~5 ms5.7%
StaticFile.__init__whitenoise/responders.py:767 ms8.6%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1895 ms5.7%
Headers.__getitem__<stdlib>/wsgiref/headers.py:835 ms5.7%
Headers.get<stdlib>/wsgiref/headers.py:1045 ms5.7%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1882 ms2.9%
StaticFile.__init__whitenoise/responders.py:732 ms2.9%
StaticFile.get_headerswhitenoise/responders.py:1762 ms2.9%
formatdate<stdlib>/email/utils.py:2662 ms2.9%
WhiteNoise.get_static_filewhitenoise/base.py:2115 ms5.7%
WhiteNoise.add_mime_headerswhitenoise/base.py:2302 ms2.9%
Headers.add_header<stdlib>/wsgiref/headers.py:1872 ms2.9%
WhiteNoise.get_static_filewhitenoise/base.py:2122 ms2.9%
WhiteNoise.add_cache_headerswhitenoise/base.py:2332 ms2.9%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1762 ms2.9%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1972 ms2.9%
WhiteNoise.update_files_dictionarywhitenoise/base.py:11510 ms11.4%
scantreewhitenoise/base.py:27110 ms11.4%
scantreewhitenoise/base.py:2717 ms8.6%
scantreewhitenoise/base.py:2732 ms2.9%
scantreewhitenoise/base.py:2692 ms2.9%
scantreewhitenoise/base.py:2712 ms2.9%
scantreewhitenoise/base.py:2712 ms2.9%
scantreewhitenoise/base.py:2712 ms2.9%
scantreewhitenoise/base.py:2732 ms2.9%
ClientHandler.__call__django/test/client.py:18612 ms14.3%
BaseHandler.get_responsedjango/core/handlers/base.py:14212 ms14.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5612 ms14.3%
MiddlewareMixin.__call__django/utils/deprecation.py:38012 ms14.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5612 ms14.3%
MiddlewareMixin.__call__django/utils/deprecation.py:38012 ms14.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5612 ms14.3%
MiddlewareMixin.__call__django/utils/deprecation.py:38012 ms14.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5612 ms14.3%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12312 ms14.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5612 ms14.3%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:14512 ms14.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5612 ms14.3%
MiddlewareMixin.__call__django/utils/deprecation.py:38012 ms14.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5612 ms14.3%
MiddlewareMixin.__call__django/utils/deprecation.py:38012 ms14.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5612 ms14.3%
MiddlewareMixin.__call__django/utils/deprecation.py:38012 ms14.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5612 ms14.3%
MiddlewareMixin.__call__django/utils/deprecation.py:38012 ms14.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5612 ms14.3%
MiddlewareMixin.__call__django/utils/deprecation.py:38012 ms14.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5612 ms14.3%
MiddlewareMixin.__call__django/utils/deprecation.py:38012 ms14.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5612 ms14.3%
MiddlewareMixin.__call__django/utils/deprecation.py:38012 ms14.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5612 ms14.3%
BaseHandler._get_responsedjango/core/handlers/base.py:19910 ms11.4%
user_passes_test.<locals>.decorator.<locals>._view_wrapperdjango/contrib/auth/decorators.py:5910 ms11.4%
login_required.<locals>.<lambda>django/contrib/auth/decorators.py:8210 ms11.4%
new_method_proxy.<locals>.innerdjango/utils/functional.py:25110 ms11.4%
SimpleLazyObject._setupdjango/utils/functional.py:40410 ms11.4%
AuthenticationMiddleware.process_request.<locals>.<lambda>django/contrib/auth/middleware.py:3910 ms11.4%
get_userdjango/contrib/auth/middleware.py:1910 ms11.4%
get_userdjango/contrib/auth/__init__.py:2947 ms8.6%
ModelBackend.get_userdjango/contrib/auth/backends.py:2377 ms8.6%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:877 ms8.6%
QuerySet.getdjango/db/models/query.py:7027 ms8.6%
QuerySet.__len__django/db/models/query.py:4217 ms8.6%
QuerySet._fetch_alldjango/db/models/query.py:22627 ms8.6%
ModelIterable.__iter__django/db/models/query.py:992 ms2.9%
Query.get_compilerdjango/db/models/sql/query.py:3742 ms2.9%
BaseConnectionHandler.__getitem__django/utils/connection.py:582 ms2.9%
ModelIterable.__iter__django/db/models/query.py:1352 ms2.9%
ModelIterable.__iter__django/db/models/query.py:1032 ms2.9%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16122 ms2.9%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:9792 ms2.9%
get_userdjango/contrib/auth/__init__.py:2872 ms2.9%
_get_user_session_keydjango/contrib/auth/__init__.py:1112 ms2.9%
SessionBase.__getitem__django/contrib/sessions/backends/base.py:552 ms2.9%
SessionBase._get_sessiondjango/contrib/sessions/backends/base.py:2542 ms2.9%
SessionStore.loaddjango/contrib/sessions/backends/db.py:552 ms2.9%
SessionStore._get_session_from_dbdjango/contrib/sessions/backends/db.py:342 ms2.9%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms2.9%
QuerySet.getdjango/db/models/query.py:7022 ms2.9%
QuerySet.__len__django/db/models/query.py:4212 ms2.9%
QuerySet._fetch_alldjango/db/models/query.py:22622 ms2.9%
ModelIterable.__iter__django/db/models/query.py:1032 ms2.9%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16252 ms2.9%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.9%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms2.9%
Cursor.executepsycopg/cursor.py:1132 ms2.9%
Connection.waitpsycopg/connection.py:4952 ms2.9%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms2.9%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms2.9%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms2.9%
BaseHandler._get_responsedjango/core/handlers/base.py:1832 ms2.9%
BaseHandler.resolve_requestdjango/core/handlers/base.py:3152 ms2.9%
URLResolver.resolvedjango/urls/resolvers.py:6782 ms2.9%
URLPattern.resolvedjango/urls/resolvers.py:4722 ms2.9%
RoutePattern.matchdjango/urls/resolvers.py:3272 ms2.9%
TestData.__get__django/test/testcases.py:13702 ms2.9%
deepcopy<stdlib>/copy.py:1572 ms2.9%
_reconstruct<stdlib>/copy.py:2552 ms2.9%
deepcopy<stdlib>/copy.py:1312 ms2.9%
_deepcopy_dict<stdlib>/copy.py:2022 ms2.9%
deepcopy<stdlib>/copy.py:1572 ms2.9%
TestEditStarterPackAccounts.test_not_owned_starter_packstarter_packs/tests.py:262 self.client.force_login(other_user)10 ms11.4%
ClientMixin.force_logindjango/test/client.py:85810 ms11.4%
ClientMixin._logindjango/test/client.py:8895 ms5.7%
logindjango/contrib/auth/__init__.py:1895 ms5.7%
SessionBase.cycle_keydjango/contrib/sessions/backends/base.py:4375 ms5.7%
SessionStore.createdjango/contrib/sessions/backends/db.py:705 ms5.7%
SessionBase._get_new_session_keydjango/contrib/sessions/backends/base.py:2015 ms5.7%
SessionStore.existsdjango/contrib/sessions/backends/db.py:635 ms5.7%
QuerySet.existsdjango/db/models/query.py:14585 ms5.7%
Query.has_resultsdjango/db/models/sql/query.py:6875 ms5.7%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15935 ms5.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16255 ms5.7%
CursorWrapper.executedjango/db/backends/utils.py:795 ms5.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:925 ms5.7%
CursorWrapper._executedjango/db/backends/utils.py:1055 ms5.7%
Cursor.executepsycopg/cursor.py:1135 ms5.7%
Connection.waitpsycopg/connection.py:4955 ms5.7%
BaseCursor._execute_genpsycopg/_cursor_base.py:2065 ms5.7%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2865 ms5.7%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:785 ms5.7%
ClientMixin._logindjango/test/client.py:8845 ms5.7%
ClientMixin.sessiondjango/test/client.py:8155 ms5.7%
SessionStore.savedjango/contrib/sessions/backends/db.py:1215 ms5.7%
SessionStore.createdjango/contrib/sessions/backends/db.py:702 ms2.9%
SessionBase._get_new_session_keydjango/contrib/sessions/backends/base.py:2012 ms2.9%
SessionStore.existsdjango/contrib/sessions/backends/db.py:632 ms2.9%
QuerySet.existsdjango/db/models/query.py:14582 ms2.9%
Query.has_resultsdjango/db/models/sql/query.py:6872 ms2.9%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15932 ms2.9%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16252 ms2.9%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.9%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms2.9%
Cursor.executepsycopg/cursor.py:1132 ms2.9%
Connection.waitpsycopg/connection.py:4952 ms2.9%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms2.9%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms2.9%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms2.9%
SessionStore.createdjango/contrib/sessions/backends/db.py:742 ms2.9%
SessionStore.savedjango/contrib/sessions/backends/db.py:1232 ms2.9%
SessionStore.create_model_instancedjango/contrib/sessions/backends/db.py:1002 ms2.9%
Model.__init__django/db/models/base.py:5882 ms2.9%
TransactionTestCase._pre_setupdjango/test/testcases.py:1167 cls._fixture_setup()2 ms2.9%
TestCase._fixture_setupdjango/test/testcases.py:14812 ms2.9%
TestCase._enter_atomicsdjango/test/testcases.py:13992 ms2.9%
Atomic.__enter__django/db/transaction.py:2232 ms2.9%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms2.9%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4002 ms2.9%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3672 ms2.9%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.9%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms2.9%
Cursor.executepsycopg/cursor.py:1132 ms2.9%
Connection.waitpsycopg/connection.py:4952 ms2.9%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms2.9%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms2.9%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms2.9%
TransactionTestCase._post_teardowndjango/test/testcases.py:1243 self._fixture_teardown()2 ms2.9%
TestCase._fixture_teardowndjango/test/testcases.py:14982 ms2.9%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4952 ms2.9%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.9%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms2.9%
Cursor.executepsycopg/cursor.py:1132 ms2.9%
Connection.waitpsycopg/connection.py:4952 ms2.9%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms2.9%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms2.9%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms2.9%
teardown2 ms1.8%
TestCase.tearDownClassdjango/test/testcases.py:1456 cls._rollback_atomics(cls.cls_atomics)2 ms1.8%
TestCase._rollback_atomicsdjango/test/testcases.py:14082 ms1.8%
Atomic.__exit__django/db/transaction.py:3072 ms1.8%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms1.8%
BaseDatabaseWrapper.rollbackdjango/db/backends/base/base.py:3372 ms1.8%
BaseDatabaseWrapper._rollbackdjango/db/backends/base/base.py:3082 ms1.8%
Connection.rollbackpsycopg/connection.py:3142 ms1.8%
Connection.waitpsycopg/connection.py:4952 ms1.8%
BaseConnection._rollback_genpsycopg/_connection_base.py:6172 ms1.8%
BaseConnection._exec_commandpsycopg/_connection_base.py:4742 ms1.8%
Estimated from 36 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

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
69 ms
starter_packs/tests.py:262
self.client.force_login(other_user)
TestEditStarterPackAccounts.test_not_owned_starter_pack · Database
10 ms

Fixtures

Exact setup time
_django_set_urlconf function 0.17 ms
_dj_autoclear_mailbox function 0.06 ms
_template_string_if_invalid_marker function 0.05 ms
_django_db_marker function 0.04 ms
_live_server_helper function 0.04 ms
_django_isolate_apps function 0.04 ms
_django_clear_site_cache function 0.03 ms
monkeypatch function 0.02 ms

Database

24 queries · 8 ms
No repeated queries.

Biggest pieces of work

call test body
starter_packs/tests.py:262
79 ms
call _pre_setup
django/test/testcases.py:1167
2 ms
call _post_teardown
django/test/testcases.py:1243
2 ms
teardown tearDownClass
django/test/testcases.py:1456
2 ms
setup __init__
__init__:-1
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 87 ms 615a272 main Profile
4 days, 2 hours ago CI github-actions:test passed 58 ms d923a46 main Profile
4 days, 2 hours ago CI github-actions:test passed 173 ms 82997f8 main Profile
4 days, 3 hours ago CI github-actions:test passed 436 ms 623aa3e main Profile
4 days, 7 hours ago CI github-actions:test passed 340 ms ab6465a main Profile
4 days, 8 hours ago CI github-actions:test passed 83 ms 0c23747 main Run