Tests / apps/projects/tests.py
ProjectCreatePage::test_next_project
First seen 1 month, 1 week ago in 78a4357
CI
github-actions:test
15 runs
Average
64 ms
median 72 ms
max 84 ms
max 84 ms
Phases
Setup 0.68 ms
Call 63 ms
Teardown 0.17 ms
Categories
Database 37 ms
Other (Libraries, Templates, Unsampled, pytest, ...) 27 ms
53 database queries per run
Needs 243 KB of memory (max 680 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 2 weeks ago ·
open run
call53 ms98.6%
ProjectCreatePage.test_next_projectapps/projects/tests.py:247 response = self.client.get(url)25 ms45.8%
Client.getdjango/test/client.py:112425 ms45.8%
RequestFactory.getdjango/test/client.py:47525 ms45.8%
RequestFactory.genericdjango/test/client.py:67125 ms45.8%
Client.requestdjango/test/client.py:108225 ms45.8%
ClientHandler.__call__django/test/client.py:17315 ms28.2%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6215 ms28.2%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10413 ms24.7%
WhiteNoise.add_fileswhitenoise/base.py:10813 ms24.7%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12010 ms17.6%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13110 ms17.6%
WhiteNoise.get_static_filewhitenoise/base.py:20810 ms17.6%
StaticFile.__init__whitenoise/responders.py:774 ms7.0%
StaticFile.get_alternativeswhitenoise/responders.py:1982 ms3.5%
StaticFile.get_alternatives.<locals>.<lambda>whitenoise/responders.py:1982 ms3.5%
<GC>~2 ms3.5%
StaticFile.get_alternativeswhitenoise/responders.py:2042 ms3.5%
compile<stdlib>/re/__init__.py:2912 ms3.5%
StaticFile.__init__whitenoise/responders.py:762 ms3.5%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1882 ms3.5%
StaticFile.__init__whitenoise/responders.py:722 ms3.5%
StaticFile.get_file_statswhitenoise/responders.py:1612 ms3.5%
StaticFile.__init__whitenoise/responders.py:732 ms3.5%
StaticFile.get_headerswhitenoise/responders.py:1672 ms3.5%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1154 ms7.0%
scantreewhitenoise/base.py:2624 ms7.0%
scantreewhitenoise/base.py:2622 ms3.5%
scantreewhitenoise/base.py:2602 ms3.5%
scantreewhitenoise/base.py:2642 ms3.5%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:1112 ms3.5%
WhiteNoise.add_fileswhitenoise/base.py:1082 ms3.5%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1152 ms3.5%
scantreewhitenoise/base.py:2602 ms3.5%
ClientHandler.__call__django/test/client.py:18610 ms17.6%
BaseHandler.get_responsedjango/core/handlers/base.py:14110 ms17.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5510 ms17.6%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:13010 ms17.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5510 ms17.6%
MiddlewareMixin.__call__django/utils/deprecation.py:30910 ms17.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5510 ms17.6%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12310 ms17.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5510 ms17.6%
MiddlewareMixin.__call__django/utils/deprecation.py:30910 ms17.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5510 ms17.6%
MiddlewareMixin.__call__django/utils/deprecation.py:30910 ms17.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5510 ms17.6%
MiddlewareMixin.__call__django/utils/deprecation.py:30910 ms17.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5510 ms17.6%
MiddlewareMixin.__call__django/utils/deprecation.py:30910 ms17.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5510 ms17.6%
MiddlewareMixin.__call__django/utils/deprecation.py:30910 ms17.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5510 ms17.6%
MiddlewareMixin.__call__django/utils/deprecation.py:30910 ms17.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5510 ms17.6%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:3410 ms17.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5510 ms17.6%
BaseHandler._get_responsedjango/core/handlers/base.py:19810 ms17.6%
user_passes_test.<locals>.decorator.<locals>._view_wrapperdjango/contrib/auth/decorators.py:596 ms10.6%
project_createapps/orgs/views.py:1252 ms3.5%
member_organizationapps/orgs/views.py:59 organization = get_object_or_404(Organization, slug=org_slug)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:16622 ms3.5%
project_createapps/orgs/views.py:126 first = not Project.objects.filter(organization__membership__user=request.user).exists()2 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%
SQLCompiler.get_selectdjango/db/models/sql/compiler.py:3172 ms3.5%
SQLCompiler.compiledjango/db/models/sql/compiler.py:5782 ms3.5%
Value.as_sqldjango/db/models/expressions.py:11702 ms3.5%
BaseExpression._output_field_or_nonedjango/db/models/expressions.py:3422 ms3.5%
cached_property.__get__django/utils/functional.py:472 ms3.5%
BaseExpression.output_fielddjango/db/models/expressions.py:3282 ms3.5%
Value._resolve_output_fielddjango/db/models/expressions.py:12012 ms3.5%
Field.__init__django/db/models/fields/__init__.py:2282 ms3.5%
project_createapps/orgs/views.py:1412 ms3.5%
org_shellapps/orgs/views.py:33 organizations = [] if user.is_anonymous else list(Organization.objects.filter(membership__user=user))2 ms3.5%
QuerySet.__iter__django/db/models/query.py:3902 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%
user_passes_test.<locals>.decorator.<locals>._view_wrapperdjango/contrib/auth/decorators.py:564 ms7.0%
login_required.<locals>.<lambda>django/contrib/auth/decorators.py:794 ms7.0%
new_method_proxy.<locals>.innerdjango/utils/functional.py:2514 ms7.0%
SimpleLazyObject._setupdjango/utils/functional.py:4044 ms7.0%
AuthenticationMiddleware.process_request.<locals>.<lambda>django/contrib/auth/middleware.py:404 ms7.0%
get_userdjango/contrib/auth/middleware.py:204 ms7.0%
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:16112 ms3.5%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7952 ms3.5%
SQLCompiler.compiledjango/db/models/sql/compiler.py:5782 ms3.5%
WhereNode.as_sqldjango/db/models/sql/where.py:1512 ms3.5%
SQLCompiler.compiledjango/db/models/sql/compiler.py:5782 ms3.5%
BuiltinLookup.as_sqldjango/db/models/lookups.py:2382 ms3.5%
BuiltinLookup.process_lhsdjango/db/models/lookups.py:2302 ms3.5%
Lookup.process_lhsdjango/db/models/lookups.py:1092 ms3.5%
BaseExpression.resolve_expressiondjango/db/models/expressions.py:2972 ms3.5%
BaseExpression.copydjango/db/models/expressions.py:4442 ms3.5%
copy<stdlib>/copy.py:1002 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:16112 ms3.5%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7952 ms3.5%
SQLCompiler.compiledjango/db/models/sql/compiler.py:5782 ms3.5%
WhereNode.as_sqldjango/db/models/sql/where.py:1512 ms3.5%
SQLCompiler.compiledjango/db/models/sql/compiler.py:5782 ms3.5%
ProjectCreatePage.test_next_projectapps/projects/tests.py:250 self.client.post(url, {"name": "First"})15 ms28.2%
Client.postdjango/test/client.py:115315 ms28.2%
RequestFactory.postdjango/test/client.py:49915 ms28.2%
RequestFactory.genericdjango/test/client.py:67115 ms28.2%
Client.requestdjango/test/client.py:108215 ms28.2%
ClientHandler.__call__django/test/client.py:18615 ms28.2%
BaseHandler.get_responsedjango/core/handlers/base.py:14115 ms28.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5515 ms28.2%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:13015 ms28.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5515 ms28.2%
MiddlewareMixin.__call__django/utils/deprecation.py:30915 ms28.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5515 ms28.2%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12315 ms28.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5515 ms28.2%
MiddlewareMixin.__call__django/utils/deprecation.py:30915 ms28.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5515 ms28.2%
MiddlewareMixin.__call__django/utils/deprecation.py:30915 ms28.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5515 ms28.2%
MiddlewareMixin.__call__django/utils/deprecation.py:30915 ms28.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5515 ms28.2%
MiddlewareMixin.__call__django/utils/deprecation.py:30915 ms28.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5515 ms28.2%
MiddlewareMixin.__call__django/utils/deprecation.py:30915 ms28.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5515 ms28.2%
MiddlewareMixin.__call__django/utils/deprecation.py:30915 ms28.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5515 ms28.2%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:3415 ms28.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5515 ms28.2%
BaseHandler._get_responsedjango/core/handlers/base.py:19815 ms28.2%
user_passes_test.<locals>.decorator.<locals>._view_wrapperdjango/contrib/auth/decorators.py:5915 ms28.2%
project_createapps/orgs/views.py:12510 ms17.6%
member_organizationapps/orgs/views.py:59 organization = get_object_or_404(Organization, slug=org_slug)8 ms14.1%
get_object_or_404django/shortcuts.py:908 ms14.1%
QuerySet.getdjango/db/models/query.py:6358 ms14.1%
QuerySet.__len__django/db/models/query.py:3728 ms14.1%
QuerySet._fetch_alldjango/db/models/query.py:20008 ms14.1%
ModelIterable.__iter__django/db/models/query.py:958 ms14.1%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16248 ms14.1%
CursorWrapper.executedjango/db/backends/utils.py:798 ms14.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:928 ms14.1%
CursorWrapper._executedjango/db/backends/utils.py:1058 ms14.1%
Cursor.executepsycopg/cursor.py:1138 ms14.1%
Connection.waitpsycopg/connection.py:4958 ms14.1%
BaseCursor._execute_genpsycopg/_cursor_base.py:2068 ms14.1%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2868 ms14.1%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:788 ms14.1%
member_organizationapps/orgs/views.py:622 ms3.5%
Organization.is_memberapps/orgs/models.py:62 return user.is_authenticated and self.membership_set.filter(user=user).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:15412 ms3.5%
QuerySet._not_support_combined_queriesdjango/db/models/query.py:20742 ms3.5%
QuerySet.querydjango/db/models/query.py:3062 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%
Query.build_filterdjango/db/models/sql/query.py:15512 ms3.5%
Query.solve_lookup_typedjango/db/models/sql/query.py:13582 ms3.5%
Query.names_to_pathdjango/db/models/sql/query.py:18612 ms3.5%
project_createapps/orgs/views.py:126 first = not Project.objects.filter(organization__membership__user=request.user).exists()2 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: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%
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%
project_createapps/orgs/views.py:1272 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%
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: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_createapps/orgs/views.py:1352 ms3.5%
create_projectapps/orgs/views.py:111 project = Project.objects.create(2 ms3.5%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms3.5%
QuerySet.createdjango/db/models/query.py:6692 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%
ProjectCreatePage.setUpapps/projects/tests.py:219 self.client.force_login(self.user)8 ms14.1%
ClientMixin.force_logindjango/test/client.py:8558 ms14.1%
ClientMixin._logindjango/test/client.py:8816 ms10.6%
logindjango/contrib/auth/__init__.py:1752 ms3.5%
SessionBase.__contains__django/contrib/sessions/backends/base.py:522 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%
logindjango/contrib/auth/__init__.py:1872 ms3.5%
SessionBase.cycle_keydjango/contrib/sessions/backends/base.py:4342 ms3.5%
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: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%
logindjango/contrib/auth/__init__.py:1972 ms3.5%
Signal.senddjango/dispatch/dispatcher.py:2092 ms3.5%
update_last_logindjango/contrib/auth/models.py:242 ms3.5%
AbstractBaseUser.savedjango/contrib/auth/base_user.py:622 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%
ClientMixin._logindjango/test/client.py:8762 ms3.5%
ClientMixin.sessiondjango/test/client.py:8122 ms3.5%
SessionStore.savedjango/contrib/sessions/backends/db.py:1212 ms3.5%
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: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%
ProjectCreatePage.test_next_projectapps/projects/tests.py:2452 ms3.5%
make_projectapps/projects/testing.py:712 ms3.5%
add_memberapps/projects/testing.py:76 membership, _ = Membership.objects.get_or_create(2 ms3.5%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms3.5%
QuerySet.get_or_createdjango/db/models/query.py:9942 ms3.5%
QuerySet.createdjango/db/models/query.py:6692 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%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()2 ms3.5%
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%
Estimated from 28 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
apps/projects/tests.py:247
response = self.client.get(url)
ProjectCreatePage.test_next_project
· Libraries
|
19 ms |
|
apps/orgs/views.py:59
organization = get_object_or_404(Organization, slug=org_slug)
member_organization
· Database
|
10 ms |
|
apps/projects/tests.py:219
self.client.force_login(self.user)
ProjectCreatePage.setUp
· Database
|
8 ms |
|
apps/orgs/views.py:126
first = not Project.objects.filter(organization__membership__user=request.user).exists()
project_create
· Database
|
4 ms |
|
apps/projects/testing.py:76
membership, _ = Membership.objects.get_or_create(
add_member
· Database
|
2 ms |
|
apps/orgs/views.py:33
organizations = [] if user.is_anonymous else list(Organization.objects.filter(membership__user=user))
org_shell
· Database
|
2 ms |
|
apps/orgs/models.py:62
return user.is_authenticated and self.membership_set.filter(user=user).exists()
Organization.is_member
· 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 |
|
apps/orgs/views.py:111
project = Project.objects.create(
create_project
· Database
|
2 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.03 ms |
| _live_server_helper function | 0.03 ms |
| _django_set_urlconf function | 0.03 ms |
| _django_clear_site_cache function | 0.02 ms |
| monkeypatch function | 0.02 ms |
Database
53 queries · 11 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 ?
3×
SELECT %s AS "a" FROM "projects_project" WHERE ("projects_project"."organization_id" = %s AND "projects_project"."slug" = %s) LIMIT ?
3×
SELECT %s AS "a" FROM "orgs_membership" WHERE ("orgs_membership"."organization_id" = %s AND "orgs_membership"."role" = %s AND "orgs_membership"."user_id" = %s) LIMIT ?
Biggest pieces of work
|
call test body
apps/projects/tests.py:250
|
42 ms |
|
call setUp
apps/projects/tests.py:219
|
8 ms |
| call pytest internals | 2 ms |
|
call _post_teardown
django/test/testcases.py:1240
|
2 ms |
Reliability
15 results · 0 CI failures · 0 local failuresThis test hasn't failed recently.
History
Latest 15 results, oldest first in the strip| When | Environment | Outcome | Duration | |
|---|---|---|---|---|
| 2 weeks ago | CI github-actions:test | passed | 54 ms | Profile |
| 2 weeks, 4 days ago | CI github-actions:test | passed | 68 ms | Profile |
| 2 weeks, 6 days ago | CI github-actions:test | passed | 39 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 77 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 38 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 81 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 57 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 84 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 40 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 76 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 77 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 72 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 80 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 41 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 76 ms | Profile |