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

ProjectPagesTest::test_configure_public

First seen 1 month, 1 week ago in 78a4357
CI github-actions:test 15 runs
Average
51 ms
median 55 ms
max 66 ms
Phases
Setup 0.67 ms Call 50 ms Teardown 0.17 ms
Categories
Database 30 ms Test code 0.15 ms Other (Libraries, Unsampled, pytest) 21 ms

33 database queries per run

Needs 106 KB of memory (max 364 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 2 weeks ago · open run
Show pytest frames
call48 ms98.4%
ProjectPagesTest.test_configure_publicapps/projects/tests.py:1114 response = self.client.post(self.project.url("project_configure"), {})30 ms61.1%
Client.postdjango/test/client.py:115330 ms61.1%
RequestFactory.postdjango/test/client.py:49930 ms61.1%
RequestFactory.genericdjango/test/client.py:67130 ms61.1%
Client.requestdjango/test/client.py:108228 ms57.7%
ClientHandler.__call__django/test/client.py:18618 ms37.3%
BaseHandler.get_responsedjango/core/handlers/base.py:14118 ms37.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5518 ms37.3%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:13018 ms37.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5518 ms37.3%
MiddlewareMixin.__call__django/utils/deprecation.py:30918 ms37.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5518 ms37.3%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12318 ms37.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5518 ms37.3%
MiddlewareMixin.__call__django/utils/deprecation.py:30918 ms37.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5518 ms37.3%
MiddlewareMixin.__call__django/utils/deprecation.py:30918 ms37.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5518 ms37.3%
MiddlewareMixin.__call__django/utils/deprecation.py:30918 ms37.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5518 ms37.3%
MiddlewareMixin.__call__django/utils/deprecation.py:30918 ms37.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5518 ms37.3%
MiddlewareMixin.__call__django/utils/deprecation.py:30918 ms37.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5518 ms37.3%
MiddlewareMixin.__call__django/utils/deprecation.py:30918 ms37.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5518 ms37.3%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:3418 ms37.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5518 ms37.3%
BaseHandler._get_responsedjango/core/handlers/base.py:19818 ms37.3%
user_passes_test.<locals>.decorator.<locals>._view_wrapperdjango/contrib/auth/decorators.py:5913 ms27.1%
project_configureapps/projects/urls.py:52812 ms23.8%
managed_projectapps/projects/urls.py:61 project = get_object_or_404(10 ms20.4%
get_object_or_404django/shortcuts.py:9010 ms20.4%
QuerySet.getdjango/db/models/query.py:63510 ms20.4%
QuerySet.__len__django/db/models/query.py:37210 ms20.4%
QuerySet._fetch_alldjango/db/models/query.py:200010 ms20.4%
ModelIterable.__iter__django/db/models/query.py:9510 ms20.4%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:162410 ms20.4%
CursorWrapper.executedjango/db/backends/utils.py:7910 ms20.4%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9210 ms20.4%
CursorWrapper._executedjango/db/backends/utils.py:10510 ms20.4%
Cursor.executepsycopg/cursor.py:11310 ms20.4%
Connection.waitpsycopg/connection.py:49510 ms20.4%
BaseCursor._execute_genpsycopg/_cursor_base.py:20610 ms20.4%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:28610 ms20.4%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:7810 ms20.4%
managed_projectapps/projects/urls.py:642 ms3.4%
can_manageapps/projects/urls.py:442 ms3.4%
can_manage_projectapps/projects/urls.py:40 return user.is_superuser or project.organization.membership_set.filter(user=user).exists()2 ms3.4%
QuerySet.existsdjango/db/models/query.py:13372 ms3.4%
Query.has_resultsdjango/db/models/sql/query.py:6812 ms3.4%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15922 ms3.4%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms3.4%
CursorWrapper.executedjango/db/backends/utils.py:792 ms3.4%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.4%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms3.4%
Cursor.executepsycopg/cursor.py:1132 ms3.4%
Connection.waitpsycopg/connection.py:4952 ms3.4%
project_configureapps/projects/urls.py:530 project.public = request.POST.get("public") == "on"2 ms3.4%
WSGIRequest._get_postdjango/core/handlers/wsgi.py:932 ms3.4%
HttpRequest._load_post_and_filesdjango/http/request.py:4322 ms3.4%
HttpRequest.parse_file_uploaddjango/http/request.py:3772 ms3.4%
MultiPartParser.parsedjango/http/multipartparser.py:1252 ms3.4%
MultiPartParser._parsedjango/http/multipartparser.py:1742 ms3.4%
user_passes_test.<locals>.decorator.<locals>._view_wrapperdjango/contrib/auth/decorators.py:565 ms10.2%
login_required.<locals>.<lambda>django/contrib/auth/decorators.py:795 ms10.2%
new_method_proxy.<locals>.innerdjango/utils/functional.py:2515 ms10.2%
SimpleLazyObject._setupdjango/utils/functional.py:4045 ms10.2%
AuthenticationMiddleware.process_request.<locals>.<lambda>django/contrib/auth/middleware.py:405 ms10.2%
get_userdjango/contrib/auth/middleware.py:205 ms10.2%
get_userdjango/contrib/auth/__init__.py:3185 ms10.2%
ModelBackend.get_userdjango/contrib/auth/backends.py:2325 ms10.2%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:875 ms10.2%
QuerySet.getdjango/db/models/query.py:6353 ms6.8%
QuerySet.__len__django/db/models/query.py:3723 ms6.8%
QuerySet._fetch_alldjango/db/models/query.py:20003 ms6.8%
ModelIterable.__iter__django/db/models/query.py:953 ms6.8%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16112 ms3.4%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7952 ms3.4%
SQLCompiler.compiledjango/db/models/sql/compiler.py:5782 ms3.4%
WhereNode.as_sqldjango/db/models/sql/where.py:1512 ms3.4%
SQLCompiler.compiledjango/db/models/sql/compiler.py:5782 ms3.4%
Exact.as_sqldjango/db/models/lookups.py:4072 ms3.4%
BuiltinLookup.as_sqldjango/db/models/lookups.py:2382 ms3.4%
BuiltinLookup.process_lhsdjango/db/models/lookups.py:2302 ms3.4%
Lookup.process_lhsdjango/db/models/lookups.py:1092 ms3.4%
BaseExpression.resolve_expressiondjango/db/models/expressions.py:2972 ms3.4%
BaseExpression.copydjango/db/models/expressions.py:4442 ms3.4%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16222 ms3.4%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms3.4%
BaseDatabaseWrapper.cursordjango/db/backends/base/base.py:3202 ms3.4%
BaseDatabaseWrapper._cursordjango/db/backends/base/base.py:2962 ms3.4%
SimpleTestCase.ensure_connection_patch_method.<locals>.patched_ensure_connectiondjango/test/testcases.py:3032 ms3.4%
QuerySet.getdjango/db/models/query.py:6252 ms3.4%
QuerySet.filterdjango/db/models/query.py:15422 ms3.4%
QuerySet._filter_or_excludedjango/db/models/query.py:15602 ms3.4%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:15702 ms3.4%
Query.add_qdjango/db/models/sql/query.py:16712 ms3.4%
Query._add_qdjango/db/models/sql/query.py:17032 ms3.4%
Query.build_filterdjango/db/models/sql/query.py:16132 ms3.4%
Query.build_lookupdjango/db/models/sql/query.py:14302 ms3.4%
BaseExpression.get_lookupdjango/db/models/expressions.py:4042 ms3.4%
RegisterLookupMixin.get_lookupdjango/db/models/query_utils.py:3282 ms3.4%
ClientHandler.__call__django/test/client.py:17310 ms20.4%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6210 ms20.4%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10410 ms20.4%
WhiteNoise.add_fileswhitenoise/base.py:10810 ms20.4%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1207 ms13.6%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:1317 ms13.6%
WhiteNoise.get_static_filewhitenoise/base.py:2087 ms13.6%
StaticFile.__init__whitenoise/responders.py:772 ms3.4%
StaticFile.get_alternativeswhitenoise/responders.py:2002 ms3.4%
__init____init__:-12 ms3.4%
StaticFile.__init__whitenoise/responders.py:722 ms3.4%
StaticFile.get_file_statswhitenoise/responders.py:1612 ms3.4%
__init____init__:-12 ms3.4%
FileEntry.__init__whitenoise/responders.py:2632 ms3.4%
StaticFile.__init__whitenoise/responders.py:742 ms3.4%
parsedate<stdlib>/email/_parseaddr.py:1852 ms3.4%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1153 ms6.8%
scantreewhitenoise/base.py:2623 ms6.8%
scantreewhitenoise/base.py:2623 ms6.8%
scantreewhitenoise/base.py:2603 ms6.8%
Client.requestdjango/test/client.py:10772 ms3.4%
ProjectPagesTest.setUpapps/projects/tests.py:954 self.client.force_login(self.user)8 ms17.0%
ClientMixin.force_logindjango/test/client.py:8558 ms17.0%
ClientMixin._logindjango/test/client.py:8817 ms13.6%
logindjango/contrib/auth/__init__.py:1873 ms6.8%
SessionBase.cycle_keydjango/contrib/sessions/backends/base.py:4342 ms3.4%
SessionStore.createdjango/contrib/sessions/backends/db.py:742 ms3.4%
SessionStore.savedjango/contrib/sessions/backends/db.py:1232 ms3.4%
SessionStore.create_model_instancedjango/contrib/sessions/backends/db.py:1022 ms3.4%
SessionBase.encodedjango/contrib/sessions/backends/base.py:1262 ms3.4%
dumpsdjango/core/signing.py:1512 ms3.4%
Signer.sign_objectdjango/core/signing.py:2392 ms3.4%
TimestampSigner.signdjango/core/signing.py:2612 ms3.4%
Signer.signdjango/core/signing.py:2052 ms3.4%
Signer.signaturedjango/core/signing.py:2022 ms3.4%
SessionBase.cycle_keydjango/contrib/sessions/backends/base.py:4372 ms3.4%
SessionStore.deletedjango/contrib/sessions/backends/db.py:1752 ms3.4%
Model.deletedjango/db/models/base.py:12982 ms3.4%
Collector.deletedjango/db/models/deletion.py:4522 ms3.4%
DeleteQuery.delete_batchdjango/db/models/sql/subqueries.py:432 ms3.4%
DeleteQuery.do_querydjango/db/models/sql/subqueries.py:252 ms3.4%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms3.4%
CursorWrapper.executedjango/db/backends/utils.py:792 ms3.4%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.4%
logindjango/contrib/auth/__init__.py:1752 ms3.4%
SessionBase.__contains__django/contrib/sessions/backends/base.py:522 ms3.4%
SessionBase._get_sessiondjango/contrib/sessions/backends/base.py:2512 ms3.4%
SessionStore.loaddjango/contrib/sessions/backends/db.py:552 ms3.4%
SessionStore._get_session_from_dbdjango/contrib/sessions/backends/db.py:342 ms3.4%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms3.4%
QuerySet.getdjango/db/models/query.py:6352 ms3.4%
QuerySet.__len__django/db/models/query.py:3722 ms3.4%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms3.4%
ModelIterable.__iter__django/db/models/query.py:952 ms3.4%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms3.4%
CursorWrapper.executedjango/db/backends/utils.py:792 ms3.4%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.4%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms3.4%
Cursor.executepsycopg/cursor.py:1132 ms3.4%
Connection.waitpsycopg/connection.py:4952 ms3.4%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms3.4%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms3.4%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms3.4%
logindjango/contrib/auth/__init__.py:1972 ms3.4%
Signal.senddjango/dispatch/dispatcher.py:2092 ms3.4%
update_last_logindjango/contrib/auth/models.py:242 ms3.4%
AbstractBaseUser.savedjango/contrib/auth/base_user.py:622 ms3.4%
Model.savedjango/db/models/base.py:8742 ms3.4%
Model.save_basedjango/db/models/base.py:9662 ms3.4%
Model._save_tabledjango/db/models/base.py:11102 ms3.4%
Model._do_updatedjango/db/models/base.py:12112 ms3.4%
QuerySet._updatedjango/db/models/query.py:13272 ms3.4%
SQLUpdateCompiler.execute_returning_sqldjango/db/models/sql/compiler.py:21402 ms3.4%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21112 ms3.4%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms3.4%
CursorWrapper.executedjango/db/backends/utils.py:792 ms3.4%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.4%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms3.4%
Cursor.executepsycopg/cursor.py:1132 ms3.4%
Connection.waitpsycopg/connection.py:4952 ms3.4%
ClientMixin._logindjango/test/client.py:8762 ms3.4%
ClientMixin.sessiondjango/test/client.py:8122 ms3.4%
SessionStore.savedjango/contrib/sessions/backends/db.py:1212 ms3.4%
SessionStore.createdjango/contrib/sessions/backends/db.py:702 ms3.4%
SessionBase._get_new_session_keydjango/contrib/sessions/backends/base.py:1982 ms3.4%
SessionStore.existsdjango/contrib/sessions/backends/db.py:632 ms3.4%
QuerySet.existsdjango/db/models/query.py:13372 ms3.4%
Query.has_resultsdjango/db/models/sql/query.py:6812 ms3.4%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15922 ms3.4%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms3.4%
CursorWrapper.executedjango/db/backends/utils.py:792 ms3.4%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.4%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms3.4%
Cursor.executepsycopg/cursor.py:1132 ms3.4%
Connection.waitpsycopg/connection.py:4952 ms3.4%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms3.4%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:3122 ms3.4%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms3.4%
ProjectPagesTest.test_configure_publicapps/projects/tests.py:1118 self.client.post(self.project.url("project_configure"), {"public": "on"})7 ms13.6%
Client.postdjango/test/client.py:11535 ms10.2%
RequestFactory.postdjango/test/client.py:4995 ms10.2%
RequestFactory.genericdjango/test/client.py:6715 ms10.2%
Client.requestdjango/test/client.py:10825 ms10.2%
ClientHandler.__call__django/test/client.py:1865 ms10.2%
BaseHandler.get_responsedjango/core/handlers/base.py:1415 ms10.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms10.2%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1305 ms10.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms10.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3095 ms10.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms10.2%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:1235 ms10.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms10.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3095 ms10.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms10.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3095 ms10.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms10.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3095 ms10.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms10.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3095 ms10.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms10.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3095 ms10.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms10.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3095 ms10.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms10.2%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:345 ms10.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms10.2%
BaseHandler._get_responsedjango/core/handlers/base.py:1985 ms10.2%
user_passes_test.<locals>.decorator.<locals>._view_wrapperdjango/contrib/auth/decorators.py:593 ms6.8%
project_configureapps/projects/urls.py:5282 ms3.4%
managed_projectapps/projects/urls.py:61 project = get_object_or_404(2 ms3.4%
get_object_or_404django/shortcuts.py:902 ms3.4%
QuerySet.getdjango/db/models/query.py:6352 ms3.4%
QuerySet.__len__django/db/models/query.py:3722 ms3.4%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms3.4%
ModelIterable.__iter__django/db/models/query.py:952 ms3.4%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms3.4%
CursorWrapper.executedjango/db/backends/utils.py:792 ms3.4%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.4%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms3.4%
Cursor.executepsycopg/cursor.py:1132 ms3.4%
Connection.waitpsycopg/connection.py:4952 ms3.4%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms3.4%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms3.4%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms3.4%
project_configureapps/projects/urls.py:531 project.save(update_fields=["public"])2 ms3.4%
Model.savedjango/db/models/base.py:8742 ms3.4%
Model.save_basedjango/db/models/base.py:9662 ms3.4%
Model._save_tabledjango/db/models/base.py:11102 ms3.4%
Model._do_updatedjango/db/models/base.py:12112 ms3.4%
QuerySet._updatedjango/db/models/query.py:13272 ms3.4%
SQLUpdateCompiler.execute_returning_sqldjango/db/models/sql/compiler.py:21402 ms3.4%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21112 ms3.4%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms3.4%
CursorWrapper.executedjango/db/backends/utils.py:792 ms3.4%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.4%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms3.4%
Cursor.executepsycopg/cursor.py:1132 ms3.4%
Connection.waitpsycopg/connection.py:4952 ms3.4%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms3.4%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:3122 ms3.4%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms3.4%
user_passes_test.<locals>.decorator.<locals>._view_wrapperdjango/contrib/auth/decorators.py:562 ms3.4%
login_required.<locals>.<lambda>django/contrib/auth/decorators.py:792 ms3.4%
new_method_proxy.<locals>.innerdjango/utils/functional.py:2512 ms3.4%
SimpleLazyObject._setupdjango/utils/functional.py:4042 ms3.4%
AuthenticationMiddleware.process_request.<locals>.<lambda>django/contrib/auth/middleware.py:402 ms3.4%
get_userdjango/contrib/auth/middleware.py:202 ms3.4%
get_userdjango/contrib/auth/__init__.py:3112 ms3.4%
_get_user_session_keydjango/contrib/auth/__init__.py:952 ms3.4%
SessionBase.__getitem__django/contrib/sessions/backends/base.py:552 ms3.4%
SessionBase._get_sessiondjango/contrib/sessions/backends/base.py:2512 ms3.4%
SessionStore.loaddjango/contrib/sessions/backends/db.py:552 ms3.4%
SessionStore._get_session_from_dbdjango/contrib/sessions/backends/db.py:342 ms3.4%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms3.4%
QuerySet.getdjango/db/models/query.py:6352 ms3.4%
QuerySet.__len__django/db/models/query.py:3722 ms3.4%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms3.4%
ModelIterable.__iter__django/db/models/query.py:952 ms3.4%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms3.4%
CursorWrapper.executedjango/db/backends/utils.py:792 ms3.4%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.4%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms3.4%
Cursor.executepsycopg/cursor.py:1132 ms3.4%
Connection.waitpsycopg/connection.py:4952 ms3.4%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms3.4%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms3.4%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms3.4%
Project.urlapps/projects/models.py:59 return reverse(name, args=[self.organization.slug, self.slug, *args])2 ms3.4%
ForwardManyToOneDescriptor.__get__django/db/models/fields/related_descriptors.py:2572 ms3.4%
ForwardManyToOneDescriptor.get_objectdjango/db/models/fields/related_descriptors.py:2222 ms3.4%
QuerySet.getdjango/db/models/query.py:6352 ms3.4%
QuerySet.__len__django/db/models/query.py:3722 ms3.4%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms3.4%
ModelIterable.__iter__django/db/models/query.py:952 ms3.4%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms3.4%
CursorWrapper.executedjango/db/backends/utils.py:792 ms3.4%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.4%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms3.4%
Cursor.executepsycopg/cursor.py:1132 ms3.4%
Connection.waitpsycopg/connection.py:4952 ms3.4%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms3.4%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms3.4%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms3.4%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()3 ms6.8%
TestCase._fixture_teardowndjango/test/testcases.py:14953 ms6.8%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4833 ms6.8%
CursorWrapper.executedjango/db/backends/utils.py:793 ms6.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms6.8%
CursorWrapper._executedjango/db/backends/utils.py:1033 ms6.8%
Cursor.executepsycopg/cursor.py:1133 ms6.8%
Connection.waitpsycopg/connection.py:4953 ms6.8%
Estimated from 29 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

apps/projects/tests.py:1114
response = self.client.post(self.project.url("project_configure"), {})
ProjectPagesTest.test_configure_public · Libraries
16 ms
apps/projects/urls.py:61
project = get_object_or_404(
managed_project · Database
12 ms
apps/projects/tests.py:954
self.client.force_login(self.user)
ProjectPagesTest.setUp · Database
8 ms
apps/projects/urls.py:40
return user.is_superuser or project.organization.membership_set.filter(user=user).exists()
can_manage_project · Database
2 ms
apps/projects/urls.py:530
project.public = request.POST.get("public") == "on"
project_configure · Libraries
2 ms
apps/projects/models.py:59
return reverse(name, args=[self.organization.slug, self.slug, *args])
Project.url · Database
2 ms
apps/projects/tests.py:1118
self.client.post(self.project.url("project_configure"), {"public": "on"})
ProjectPagesTest.test_configure_public · Database
2 ms
apps/projects/urls.py:531
project.save(update_fields=["public"])
project_configure · Database
2 ms

Fixtures

Exact setup time
_dj_autoclear_mailbox function 0.09 ms
_template_string_if_invalid_marker function 0.04 ms
_django_db_marker function 0.03 ms
_django_set_urlconf function 0.03 ms
_live_server_helper function 0.03 ms
_django_clear_site_cache function 0.02 ms
monkeypatch function 0.02 ms

Database

33 queries · 9 ms

Repeated queries are usually N+1 lookups: fetch them once with select_related / prefetch_related (or selectinload).

3×
SELECT "django_session"."session_key", "django_session"."session_data", "django_session"."expire_date" FROM "django_session" WHERE ("django_session"."expire_date" > %s AND "django_session"."session_key" = %s) LIMIT ?

Biggest pieces of work

call test body
apps/projects/tests.py:1114
36 ms
call setUp
apps/projects/tests.py:954
8 ms
call _post_teardown
django/test/testcases.py:1240
3 ms

Reliability

15 results · 0 CI failures · 0 local failures

This test hasn't failed recently.

History

Latest 15 results, oldest first in the strip
When Environment Outcome Duration Commit
2 weeks ago CI github-actions:test passed 48 ms cb18ed3 main Profile
2 weeks, 4 days ago CI github-actions:test passed 55 ms 9bd5864 main Profile
2 weeks, 6 days ago CI github-actions:test passed 39 ms 19dac9b main Profile
3 weeks ago CI github-actions:test passed 59 ms e141198 main Profile
1 month ago CI github-actions:test passed 33 ms 46ec2aa main Profile
1 month ago CI github-actions:test passed 53 ms afde85b main Profile
1 month ago CI github-actions:test passed 47 ms fe29f9d main Profile
1 month ago CI github-actions:test passed 66 ms 044719a main Profile
1 month ago CI github-actions:test passed 35 ms b3fedae main Profile
1 month, 1 week ago CI github-actions:test passed 60 ms 43c4eda main Profile
1 month, 1 week ago CI github-actions:test passed 63 ms 9caa567 main Profile
1 month, 1 week ago CI github-actions:test passed 59 ms ec75501 main Profile
1 month, 1 week ago CI github-actions:test passed 59 ms d2c12e5 main Profile
1 month, 1 week ago CI github-actions:test passed 32 ms 0b902f6 main Profile
1 month, 1 week ago CI github-actions:test passed 60 ms 78a4357 main Profile