flakytest.dev anze3db flakytest
Tests / apps/projects/tests.py

ProjectDeletePage::test_project

First seen 2 years, 9 months ago in b9e98d9
CI github-actions:test 5 runs
Average
55 ms
median 60 ms
max 63 ms
Phases
Setup 0.72 ms Call 54 ms Teardown 0.16 ms
Categories
Database 22 ms Other (Libraries, pytest, Templates, Unsampled) 33 ms

31 database queries per run

Needs 2 KB of memory (max 12 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 44 minutes ago · open run
Show pytest frames
call59 ms98.3%
ProjectDeletePage.test_projectapps/projects/tests.py:202 response = self.client.get(self.project.url("project_delete"))46 ms77.2%
Client.getdjango/test/client.py:112446 ms77.2%
RequestFactory.getdjango/test/client.py:47544 ms73.7%
RequestFactory.genericdjango/test/client.py:67144 ms73.7%
Client.requestdjango/test/client.py:108244 ms73.7%
ClientHandler.__call__django/test/client.py:17331 ms52.7%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6231 ms52.7%
__init____init__:-131 ms52.7%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10431 ms52.7%
WhiteNoise.add_fileswhitenoise/base.py:10831 ms52.7%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12025 ms42.1%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13125 ms42.1%
WhiteNoise.get_static_filewhitenoise/base.py:20821 ms35.1%
StaticFile.__init__whitenoise/responders.py:7713 ms21.1%
StaticFile.get_alternativeswhitenoise/responders.py:1988 ms14.0%
StaticFile.get_alternatives.<locals>.<lambda>whitenoise/responders.py:1988 ms14.0%
<GC>~8 ms14.0%
StaticFile.get_alternativeswhitenoise/responders.py:2014 ms7.0%
StaticFile.__init__whitenoise/responders.py:724 ms7.0%
StaticFile.get_file_statswhitenoise/responders.py:1614 ms7.0%
StaticFile.__init__whitenoise/responders.py:762 ms3.5%
WhiteNoise.get_static_filewhitenoise/base.py:2034 ms7.0%
WhiteNoise.add_cache_headerswhitenoise/base.py:2244 ms7.0%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1762 ms3.5%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1972 ms3.5%
URLMixin.urldebug_toolbar/panels/staticfiles.py:202 ms3.5%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:2052 ms3.5%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:1862 ms3.5%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1154 ms7.0%
scantreewhitenoise/base.py:2622 ms3.5%
scantreewhitenoise/base.py:2622 ms3.5%
scantreewhitenoise/base.py:2622 ms3.5%
scantreewhitenoise/base.py:2642 ms3.5%
scantreewhitenoise/base.py:2642 ms3.5%
ClientHandler.__call__django/test/client.py:18613 ms21.1%
BaseHandler.get_responsedjango/core/handlers/base.py:1418 ms14.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:558 ms14.0%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1308 ms14.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:558 ms14.0%
MiddlewareMixin.__call__django/utils/deprecation.py:3098 ms14.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:558 ms14.0%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:1238 ms14.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:558 ms14.0%
MiddlewareMixin.__call__django/utils/deprecation.py:3096 ms10.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:556 ms10.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3096 ms10.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:556 ms10.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3096 ms10.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:556 ms10.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3096 ms10.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:556 ms10.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3096 ms10.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:556 ms10.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3096 ms10.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:556 ms10.5%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:346 ms10.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:556 ms10.5%
BaseHandler._get_responsedjango/core/handlers/base.py:1986 ms10.5%
user_passes_test.<locals>.decorator.<locals>._view_wrapperdjango/contrib/auth/decorators.py:594 ms7.0%
project_deleteapps/projects/urls.py:6542 ms3.5%
managed_projectapps/projects/urls.py:61 project = get_object_or_404(2 ms3.5%
get_object_or_404django/shortcuts.py:902 ms3.5%
QuerySet.getdjango/db/models/query.py:6352 ms3.5%
QuerySet.__len__django/db/models/query.py:3722 ms3.5%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms3.5%
ModelIterable.__iter__django/db/models/query.py:952 ms3.5%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms3.5%
CursorWrapper.executedjango/db/backends/utils.py:792 ms3.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.5%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms3.5%
Cursor.executepsycopg/cursor.py:1132 ms3.5%
Connection.waitpsycopg/connection.py:4952 ms3.5%
project_deleteapps/projects/urls.py:6592 ms3.5%
shellapps/projects/urls.py:71 return org_shell(request, project.organization if project else None, section) | {2 ms3.5%
org_shellapps/orgs/views.py:422 ms3.5%
Organization.is_ownerapps/orgs/models.py:65 return user.is_authenticated and self.membership_set.filter(user=user, role=Membership.Role.OWNER).exists()2 ms3.5%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms3.5%
QuerySet.filterdjango/db/models/query.py:15422 ms3.5%
QuerySet._filter_or_excludedjango/db/models/query.py:15602 ms3.5%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:15702 ms3.5%
Query.add_qdjango/db/models/sql/query.py:16712 ms3.5%
Query._add_qdjango/db/models/sql/query.py:17032 ms3.5%
user_passes_test.<locals>.decorator.<locals>._view_wrapperdjango/contrib/auth/decorators.py:562 ms3.5%
login_required.<locals>.<lambda>django/contrib/auth/decorators.py:792 ms3.5%
new_method_proxy.<locals>.innerdjango/utils/functional.py:2512 ms3.5%
SimpleLazyObject._setupdjango/utils/functional.py:4042 ms3.5%
AuthenticationMiddleware.process_request.<locals>.<lambda>django/contrib/auth/middleware.py:402 ms3.5%
get_userdjango/contrib/auth/middleware.py:202 ms3.5%
get_userdjango/contrib/auth/__init__.py:3182 ms3.5%
ModelBackend.get_userdjango/contrib/auth/backends.py:2322 ms3.5%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms3.5%
QuerySet.getdjango/db/models/query.py:6352 ms3.5%
QuerySet.__len__django/db/models/query.py:3722 ms3.5%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms3.5%
ModelIterable.__iter__django/db/models/query.py:952 ms3.5%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms3.5%
CursorWrapper.executedjango/db/backends/utils.py:792 ms3.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.5%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms3.5%
Cursor.executepsycopg/cursor.py:1132 ms3.5%
Connection.waitpsycopg/connection.py:4952 ms3.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3112 ms3.5%
SessionMiddleware.process_responsedjango/contrib/sessions/middleware.py:592 ms3.5%
SessionStore.savedjango/contrib/sessions/backends/db.py:1272 ms3.5%
Model.savedjango/db/models/base.py:8742 ms3.5%
Model.save_basedjango/db/models/base.py:9662 ms3.5%
Model._save_tabledjango/db/models/base.py:11102 ms3.5%
Model._do_updatedjango/db/models/base.py:12112 ms3.5%
QuerySet._updatedjango/db/models/query.py:13272 ms3.5%
SQLUpdateCompiler.execute_returning_sqldjango/db/models/sql/compiler.py:21402 ms3.5%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21112 ms3.5%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms3.5%
CursorWrapper.executedjango/db/backends/utils.py:792 ms3.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.5%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms3.5%
Cursor.executepsycopg/cursor.py:1132 ms3.5%
Connection.waitpsycopg/connection.py:4952 ms3.5%
BaseHandler.get_responsedjango/core/handlers/base.py:1404 ms7.0%
set_urlconfdjango/urls/base.py:1552 ms3.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms3.5%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1302 ms3.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms3.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms3.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms3.5%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:1232 ms3.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms3.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms3.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms3.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms3.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms3.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms3.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms3.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms3.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms3.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms3.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms3.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms3.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms3.5%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:342 ms3.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms3.5%
BaseHandler._get_responsedjango/core/handlers/base.py:1982 ms3.5%
user_passes_test.<locals>.decorator.<locals>._view_wrapperdjango/contrib/auth/decorators.py:562 ms3.5%
login_required.<locals>.<lambda>django/contrib/auth/decorators.py:792 ms3.5%
new_method_proxy.<locals>.innerdjango/utils/functional.py:2512 ms3.5%
SimpleLazyObject._setupdjango/utils/functional.py:4042 ms3.5%
AuthenticationMiddleware.process_request.<locals>.<lambda>django/contrib/auth/middleware.py:402 ms3.5%
get_userdjango/contrib/auth/middleware.py:202 ms3.5%
get_userdjango/contrib/auth/__init__.py:3112 ms3.5%
_get_user_session_keydjango/contrib/auth/__init__.py:952 ms3.5%
SessionBase.__getitem__django/contrib/sessions/backends/base.py:552 ms3.5%
SessionBase._get_sessiondjango/contrib/sessions/backends/base.py:2512 ms3.5%
SessionStore.loaddjango/contrib/sessions/backends/db.py:552 ms3.5%
SessionStore._get_session_from_dbdjango/contrib/sessions/backends/db.py:342 ms3.5%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms3.5%
QuerySet.getdjango/db/models/query.py:6352 ms3.5%
QuerySet.__len__django/db/models/query.py:3722 ms3.5%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms3.5%
ModelIterable.__iter__django/db/models/query.py:952 ms3.5%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms3.5%
CursorWrapper.executedjango/db/backends/utils.py:792 ms3.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.5%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms3.5%
Cursor.executepsycopg/cursor.py:1132 ms3.5%
Connection.waitpsycopg/connection.py:4952 ms3.5%
ProjectDeletePage.setUpapps/projects/tests.py:187 self.client.force_login(self.user)8 ms14.0%
ClientMixin.force_logindjango/test/client.py:8558 ms14.0%
ClientMixin._logindjango/test/client.py:8818 ms14.0%
logindjango/contrib/auth/__init__.py:1876 ms10.5%
SessionBase.cycle_keydjango/contrib/sessions/backends/base.py:4344 ms7.0%
SessionStore.createdjango/contrib/sessions/backends/db.py:702 ms3.5%
SessionBase._get_new_session_keydjango/contrib/sessions/backends/base.py:1982 ms3.5%
SessionStore.existsdjango/contrib/sessions/backends/db.py:632 ms3.5%
QuerySet.existsdjango/db/models/query.py:13372 ms3.5%
Query.has_resultsdjango/db/models/sql/query.py:6812 ms3.5%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15922 ms3.5%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16112 ms3.5%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7672 ms3.5%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:862 ms3.5%
SQLCompiler.setup_querydjango/db/models/sql/compiler.py:752 ms3.5%
SessionStore.createdjango/contrib/sessions/backends/db.py:742 ms3.5%
SessionStore.savedjango/contrib/sessions/backends/db.py:1272 ms3.5%
Model.savedjango/db/models/base.py:8742 ms3.5%
Model.save_basedjango/db/models/base.py:9662 ms3.5%
Model._save_tabledjango/db/models/base.py:11672 ms3.5%
Model._do_insertdjango/db/models/base.py:12182 ms3.5%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms3.5%
QuerySet._insertdjango/db/models/query.py:19182 ms3.5%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19252 ms3.5%
CursorWrapper.executedjango/db/backends/utils.py:792 ms3.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.5%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms3.5%
Cursor.executepsycopg/cursor.py:1132 ms3.5%
Connection.waitpsycopg/connection.py:4952 ms3.5%
SessionBase.cycle_keydjango/contrib/sessions/backends/base.py:4372 ms3.5%
SessionStore.deletedjango/contrib/sessions/backends/db.py:1752 ms3.5%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms3.5%
QuerySet.getdjango/db/models/query.py:6352 ms3.5%
QuerySet.__len__django/db/models/query.py:3722 ms3.5%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms3.5%
ModelIterable.__iter__django/db/models/query.py:952 ms3.5%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms3.5%
CursorWrapper.executedjango/db/backends/utils.py:792 ms3.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.5%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms3.5%
Cursor.executepsycopg/cursor.py:1132 ms3.5%
Connection.waitpsycopg/connection.py:4952 ms3.5%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()4 ms7.0%
TestCase._fixture_teardowndjango/test/testcases.py:14952 ms3.5%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4832 ms3.5%
CursorWrapper.executedjango/db/backends/utils.py:792 ms3.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.5%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms3.5%
Cursor.executepsycopg/cursor.py:1132 ms3.5%
Connection.waitpsycopg/connection.py:4952 ms3.5%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms3.5%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms3.5%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms3.5%
TestCase._fixture_teardowndjango/test/testcases.py:14972 ms3.5%
TestCase._rollback_atomicsdjango/test/testcases.py:14052 ms3.5%
Atomic.__exit__django/db/transaction.py:2862 ms3.5%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms3.5%
BaseDatabaseWrapper.savepoint_commitdjango/db/backends/base/base.py:4312 ms3.5%
BaseDatabaseWrapper._savepoint_commitdjango/db/backends/base/base.py:3752 ms3.5%
CursorWrapper.executedjango/db/backends/utils.py:792 ms3.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.5%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms3.5%
Cursor.executepsycopg/cursor.py:1132 ms3.5%
Connection.waitpsycopg/connection.py:4952 ms3.5%
Estimated from 28 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

apps/projects/tests.py:202
response = self.client.get(self.project.url("project_delete"))
ProjectDeletePage.test_project · Libraries
42 ms
apps/projects/tests.py:187
self.client.force_login(self.user)
ProjectDeletePage.setUp · Database
8 ms
apps/projects/urls.py:61
project = get_object_or_404(
managed_project · Database
2 ms
apps/orgs/models.py:65
return user.is_authenticated and self.membership_set.filter(user=user, role=Membership.Role.OWNER).exists()
Organization.is_owner · Database
2 ms

Fixtures

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

Database

31 queries · 10 ms
No repeated queries.

Biggest pieces of work

call test body
apps/projects/tests.py:202
46 ms
call setUp
apps/projects/tests.py:187
8 ms
call _post_teardown
django/test/testcases.py:1240
4 ms

Reliability

5 results · 0 CI failures · 0 local failures

This test hasn't failed recently.

History

Latest 50 results, oldest first in the strip
When Environment Outcome Duration Commit
44 minutes ago CI github-actions:test passed 60 ms 9caa567 main Profile
an hour ago CI github-actions:test passed 58 ms ec75501 main Profile
7 hours ago CI github-actions:test passed 62 ms d2c12e5 main Profile
8 hours ago CI github-actions:test passed 30 ms 0b902f6 main Profile
8 hours ago CI github-actions:test passed 63 ms 78a4357 main Profile
2 years ago CI github-actions passed 115 ms 61209a6 main Run
2 years, 2 months ago CI github-actions passed 112 ms 55ca4c2 main Run
2 years, 3 months ago CI github-actions passed 123 ms d007c85 main Run
2 years, 4 months ago CI github-actions passed 121 ms 3d86013 main Run
2 years, 4 months ago CI github-actions passed 118 ms bed0acb main Run
2 years, 4 months ago CI github-actions passed 118 ms 78c1737 main Run
2 years, 4 months ago CI github-actions passed 112 ms 1a5664b main Run
2 years, 5 months ago CI github-actions passed 112 ms c3680ac main Run
2 years, 5 months ago CI github-actions passed 110 ms 06a1df4 main Run
2 years, 5 months ago CI github-actions passed 113 ms a29c34e main Run
2 years, 5 months ago CI github-actions passed 182 ms e55e63f main Run
2 years, 5 months ago CI github-actions passed 173 ms ba5cb67 main Run
2 years, 6 months ago CI github-actions passed 193 ms 7c123d8 main Run
2 years, 6 months ago CI github-actions passed 156 ms 5ae45e1 main Run
2 years, 6 months ago CI github-actions passed 184 ms 1680367 main Run