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

ProjectCreatePage::test_first_project_is_onboarding

First seen 1 month, 1 week ago in 78a4357
CI github-actions:test 15 runs
Average
80 ms
median 87 ms
max 108 ms
Phases
Setup 11 ms Call 70 ms Teardown 0.16 ms
Categories
Database 58 ms Test code 0.13 ms App code 0.13 ms Password hashing 0.07 ms Other (Libraries, Templates, pytest, Unsampled, ...) 22 ms

56 database queries per run

Needs 264 KB of memory (max 824 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 2 weeks ago · open run
Show pytest frames
setup9 ms13.8%
TestCase.setUpClassdjango/test/testcases.py:1423 cls.cls_atomics = cls._enter_atomics()8 ms12.3%
TestCase._enter_atomicsdjango/test/testcases.py:13968 ms12.3%
Atomic.__enter__django/db/transaction.py:1988 ms12.3%
BaseDatabaseWrapper.get_autocommitdjango/db/backends/base/base.py:4548 ms12.3%
SimpleTestCase.ensure_connection_patch_method.<locals>.patched_ensure_connectiondjango/test/testcases.py:3038 ms12.3%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:268 ms12.3%
BaseDatabaseWrapper.ensure_connectiondjango/db/backends/base/base.py:2798 ms12.3%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:268 ms12.3%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:2567 ms10.8%
DatabaseWrapper.get_new_connectionft/db/postgresql/base.py:39 return super().get_new_connection(conn_params)7 ms10.8%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:267 ms10.8%
DatabaseWrapper.get_new_connectiondjango/db/backends/postgresql/base.py:3337 ms10.8%
Connection.connectpsycopg/connection.py:1097 ms10.8%
wait_connpsycopg/waiting.py:1414 ms6.2%
EpollSelector.select<stdlib>/selectors.py:4524 ms6.2%
wait_connpsycopg/waiting.py:1453 ms4.6%
BaseConnection._connect_genpsycopg/_connection_base.py:4393 ms4.6%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:2580.97 ms1.5%
DatabaseWrapper.init_connection_statedjango/db/backends/postgresql/base.py:4020.97 ms1.5%
DatabaseWrapper._configure_connectiondjango/db/backends/postgresql/base.py:3740.97 ms1.5%
DatabaseWrapper._configure_timezonedjango/db/backends/postgresql/base.py:3570.97 ms1.5%
Cursor.executepsycopg/cursor.py:1130.97 ms1.5%
Connection.waitpsycopg/connection.py:4950.97 ms1.5%
TestCase.setUpClassdjango/test/testcases.py:1439 cls.setUpTestData()0.97 ms1.5%
ProjectCreatePage.setUpTestDataapps/projects/tests.py:216 cls.user = User.objects.create_user("testuser", email="[email protected]")0.97 ms1.5%
UserManager.create_userdjango/contrib/auth/models.py:1750.97 ms1.5%
UserManager._create_userdjango/contrib/auth/models.py:1630.97 ms1.5%
AbstractBaseUser.savedjango/contrib/auth/base_user.py:620.97 ms1.5%
Model.savedjango/db/models/base.py:8740.97 ms1.5%
Model.save_basedjango/db/models/base.py:9660.97 ms1.5%
Model._save_tabledjango/db/models/base.py:11670.97 ms1.5%
Model._do_insertdjango/db/models/base.py:12180.97 ms1.5%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:870.97 ms1.5%
QuerySet._insertdjango/db/models/query.py:19180.97 ms1.5%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19250.97 ms1.5%
CursorWrapper.executedjango/db/backends/utils.py:790.97 ms1.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:920.97 ms1.5%
CursorWrapper._executedjango/db/backends/utils.py:1050.97 ms1.5%
Cursor.executepsycopg/cursor.py:1130.97 ms1.5%
Connection.waitpsycopg/connection.py:4950.97 ms1.5%
BaseCursor._execute_genpsycopg/_cursor_base.py:2060.97 ms1.5%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2860.97 ms1.5%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:780.97 ms1.5%
call54 ms85.9%
ProjectCreatePage.test_first_project_is_onboardingapps/projects/tests.py:228 response = self.client.get("/projects/create/", follow=True)30 ms46.9%
Client.getdjango/test/client.py:112421 ms33.9%
RequestFactory.getdjango/test/client.py:47521 ms33.9%
RequestFactory.genericdjango/test/client.py:67121 ms33.9%
Client.requestdjango/test/client.py:108221 ms33.9%
ClientHandler.__call__django/test/client.py:17315 ms23.4%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6215 ms23.4%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10415 ms23.4%
WhiteNoise.add_fileswhitenoise/base.py:10815 ms23.4%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12011 ms18.2%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13111 ms18.2%
WhiteNoise.get_static_filewhitenoise/base.py:20810 ms15.6%
StaticFile.__init__whitenoise/responders.py:733 ms5.2%
StaticFile.get_headerswhitenoise/responders.py:1782 ms2.6%
parsedate<stdlib>/email/_parseaddr.py:1852 ms2.6%
StaticFile.get_headerswhitenoise/responders.py:1762 ms2.6%
StaticFile.__init__whitenoise/responders.py:772 ms2.6%
StaticFile.get_alternativeswhitenoise/responders.py:2002 ms2.6%
StaticFile.__init__whitenoise/responders.py:722 ms2.6%
StaticFile.get_file_statswhitenoise/responders.py:1612 ms2.6%
__init____init__:-12 ms2.6%
FileEntry.__init__whitenoise/responders.py:2632 ms2.6%
FileEntry.stat_regular_filewhitenoise/responders.py:2762 ms2.6%
<GC>~2 ms2.6%
WhiteNoise.get_static_filewhitenoise/base.py:2032 ms2.6%
WhiteNoise.add_cache_headerswhitenoise/base.py:2242 ms2.6%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1762 ms2.6%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1972 ms2.6%
URLMixin.urldebug_toolbar/panels/staticfiles.py:202 ms2.6%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1153 ms5.2%
scantreewhitenoise/base.py:2623 ms5.2%
scantreewhitenoise/base.py:2622 ms2.6%
scantreewhitenoise/base.py:2622 ms2.6%
scantreewhitenoise/base.py:2622 ms2.6%
scantreewhitenoise/base.py:2602 ms2.6%
scantreewhitenoise/base.py:2642 ms2.6%
ClientHandler.__call__django/test/client.py:1867 ms10.4%
BaseHandler.get_responsedjango/core/handlers/base.py:1417 ms10.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms10.4%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1307 ms10.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms10.4%
MiddlewareMixin.__call__django/utils/deprecation.py:3097 ms10.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms10.4%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:1237 ms10.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms10.4%
MiddlewareMixin.__call__django/utils/deprecation.py:3097 ms10.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms10.4%
MiddlewareMixin.__call__django/utils/deprecation.py:3097 ms10.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms10.4%
MiddlewareMixin.__call__django/utils/deprecation.py:3097 ms10.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms10.4%
MiddlewareMixin.__call__django/utils/deprecation.py:3097 ms10.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms10.4%
MiddlewareMixin.__call__django/utils/deprecation.py:3097 ms10.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms10.4%
MiddlewareMixin.__call__django/utils/deprecation.py:3097 ms10.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms10.4%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:347 ms10.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms10.4%
BaseHandler._get_responsedjango/core/handlers/base.py:1987 ms10.4%
user_passes_test.<locals>.decorator.<locals>._view_wrapperdjango/contrib/auth/decorators.py:563 ms5.2%
login_required.<locals>.<lambda>django/contrib/auth/decorators.py:793 ms5.2%
new_method_proxy.<locals>.innerdjango/utils/functional.py:2513 ms5.2%
SimpleLazyObject._setupdjango/utils/functional.py:4043 ms5.2%
AuthenticationMiddleware.process_request.<locals>.<lambda>django/contrib/auth/middleware.py:403 ms5.2%
get_userdjango/contrib/auth/middleware.py:203 ms5.2%
get_userdjango/contrib/auth/__init__.py:3112 ms2.6%
_get_user_session_keydjango/contrib/auth/__init__.py:952 ms2.6%
SessionBase.__getitem__django/contrib/sessions/backends/base.py:552 ms2.6%
SessionBase._get_sessiondjango/contrib/sessions/backends/base.py:2512 ms2.6%
SessionStore.loaddjango/contrib/sessions/backends/db.py:552 ms2.6%
SessionStore._get_session_from_dbdjango/contrib/sessions/backends/db.py:342 ms2.6%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms2.6%
QuerySet.getdjango/db/models/query.py:6352 ms2.6%
QuerySet.__len__django/db/models/query.py:3722 ms2.6%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms2.6%
ModelIterable.__iter__django/db/models/query.py:952 ms2.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms2.6%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.6%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms2.6%
Cursor.executepsycopg/cursor.py:1132 ms2.6%
Connection.waitpsycopg/connection.py:4952 ms2.6%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms2.6%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms2.6%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms2.6%
get_userdjango/contrib/auth/__init__.py:3182 ms2.6%
ModelBackend.get_userdjango/contrib/auth/backends.py:2322 ms2.6%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms2.6%
QuerySet.getdjango/db/models/query.py:6352 ms2.6%
QuerySet.__len__django/db/models/query.py:3722 ms2.6%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms2.6%
ModelIterable.__iter__django/db/models/query.py:952 ms2.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms2.6%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.6%
user_passes_test.<locals>.decorator.<locals>._view_wrapperdjango/contrib/auth/decorators.py:593 ms5.2%
<lambda>ft/urls.py:1723 ms5.2%
current_organizationapps/orgs/views.py:543 ms5.2%
ensure_organizationapps/orgs/models.py:126 membership = Membership.objects.filter(user=user).select_related("organization").order_by("id").first()2 ms2.6%
QuerySet.firstdjango/db/models/query.py:11452 ms2.6%
QuerySet.__iter__django/db/models/query.py:3902 ms2.6%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms2.6%
ModelIterable.__iter__django/db/models/query.py:952 ms2.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms2.6%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.6%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms2.6%
Cursor.executepsycopg/cursor.py:1132 ms2.6%
Connection.waitpsycopg/connection.py:4952 ms2.6%
ensure_organizationapps/orgs/models.py:1312 ms2.6%
unique_slugapps/orgs/models.py:46 while slug in reserved or taken.filter(slug=slug).exists():2 ms2.6%
QuerySet.existsdjango/db/models/query.py:13372 ms2.6%
Query.has_resultsdjango/db/models/sql/query.py:6812 ms2.6%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15922 ms2.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms2.6%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.6%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms2.6%
Cursor.executepsycopg/cursor.py:1132 ms2.6%
Connection.waitpsycopg/connection.py:4952 ms2.6%
Client.getdjango/test/client.py:11338 ms13.0%
Client._handle_redirectsdjango/test/client.py:13848 ms13.0%
ClientMixin._follow_redirectdjango/test/client.py:10028 ms13.0%
Client.getdjango/test/client.py:11248 ms13.0%
RequestFactory.getdjango/test/client.py:4758 ms13.0%
RequestFactory.genericdjango/test/client.py:6718 ms13.0%
Client.requestdjango/test/client.py:10828 ms13.0%
ClientHandler.__call__django/test/client.py:1868 ms13.0%
BaseHandler.get_responsedjango/core/handlers/base.py:1418 ms13.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:558 ms13.0%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1308 ms13.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:558 ms13.0%
MiddlewareMixin.__call__django/utils/deprecation.py:3098 ms13.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:558 ms13.0%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:1238 ms13.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:558 ms13.0%
MiddlewareMixin.__call__django/utils/deprecation.py:3097 ms10.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms10.4%
MiddlewareMixin.__call__django/utils/deprecation.py:3097 ms10.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms10.4%
MiddlewareMixin.__call__django/utils/deprecation.py:3097 ms10.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms10.4%
MiddlewareMixin.__call__django/utils/deprecation.py:3097 ms10.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms10.4%
MiddlewareMixin.__call__django/utils/deprecation.py:3097 ms10.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms10.4%
MiddlewareMixin.__call__django/utils/deprecation.py:3097 ms10.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms10.4%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:347 ms10.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms10.4%
BaseHandler._get_responsedjango/core/handlers/base.py:1987 ms10.4%
user_passes_test.<locals>.decorator.<locals>._view_wrapperdjango/contrib/auth/decorators.py:597 ms10.4%
project_createapps/orgs/views.py:1252 ms2.6%
member_organizationapps/orgs/views.py:622 ms2.6%
Organization.is_memberapps/orgs/models.py:62 return user.is_authenticated and self.membership_set.filter(user=user).exists()2 ms2.6%
QuerySet.existsdjango/db/models/query.py:13372 ms2.6%
Query.has_resultsdjango/db/models/sql/query.py:6812 ms2.6%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15922 ms2.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms2.6%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.6%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms2.6%
Cursor.executepsycopg/cursor.py:1132 ms2.6%
Connection.waitpsycopg/connection.py:4952 ms2.6%
BaseCursor._execute_genpsycopg/_cursor_base.py:2052 ms2.6%
BaseCursor._convert_querypsycopg/_cursor_base.py:4652 ms2.6%
PostgresClientQuery.convertpsycopg/_queries.py:2892 ms2.6%
PostgresClientQuery.dumppsycopg/_queries.py:2992 ms2.6%
project_createapps/orgs/views.py:126 first = not Project.objects.filter(organization__membership__user=request.user).exists()2 ms2.6%
QuerySet.existsdjango/db/models/query.py:13372 ms2.6%
Query.has_resultsdjango/db/models/sql/query.py:6812 ms2.6%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15922 ms2.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms2.6%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.6%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms2.6%
Cursor.executepsycopg/cursor.py:1132 ms2.6%
Connection.waitpsycopg/connection.py:4952 ms2.6%
project_createapps/orgs/views.py:1272 ms2.6%
Organization.is_ownerapps/orgs/models.py:65 return user.is_authenticated and self.membership_set.filter(user=user, role=Membership.Role.OWNER).exists()2 ms2.6%
QuerySet.existsdjango/db/models/query.py:13372 ms2.6%
Query.has_resultsdjango/db/models/sql/query.py:6812 ms2.6%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15922 ms2.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms2.6%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.6%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms2.6%
Cursor.executepsycopg/cursor.py:1132 ms2.6%
Connection.waitpsycopg/connection.py:4952 ms2.6%
project_createapps/orgs/views.py:1412 ms2.6%
org_shellapps/orgs/views.py:33 organizations = [] if user.is_anonymous else list(Organization.objects.filter(membership__user=user))2 ms2.6%
QuerySet.__iter__django/db/models/query.py:3902 ms2.6%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms2.6%
ModelIterable.__iter__django/db/models/query.py:952 ms2.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms2.6%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.6%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms2.6%
Cursor.executepsycopg/cursor.py:1132 ms2.6%
Connection.waitpsycopg/connection.py:4952 ms2.6%
MiddlewareMixin.__call__django/utils/deprecation.py:3112 ms2.6%
SessionMiddleware.process_responsedjango/contrib/sessions/middleware.py:592 ms2.6%
SessionStore.savedjango/contrib/sessions/backends/db.py:1262 ms2.6%
Atomic.__enter__django/db/transaction.py:2112 ms2.6%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms2.6%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4002 ms2.6%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3662 ms2.6%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms2.6%
BaseDatabaseWrapper.cursordjango/db/backends/base/base.py:3202 ms2.6%
BaseDatabaseWrapper._cursordjango/db/backends/base/base.py:2982 ms2.6%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms2.6%
DatabaseWrapper.create_cursordjango/db/backends/postgresql/base.py:4302 ms2.6%
ProjectCreatePage.setUpapps/projects/tests.py:219 self.client.force_login(self.user)11 ms18.2%
ClientMixin.force_logindjango/test/client.py:85511 ms18.2%
ClientMixin._logindjango/test/client.py:8817 ms10.4%
logindjango/contrib/auth/__init__.py:1873 ms5.2%
SessionBase.cycle_keydjango/contrib/sessions/backends/base.py:4342 ms2.6%
SessionStore.createdjango/contrib/sessions/backends/db.py:742 ms2.6%
SessionStore.savedjango/contrib/sessions/backends/db.py:1262 ms2.6%
Atomic.__enter__django/db/transaction.py:2112 ms2.6%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms2.6%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4002 ms2.6%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3672 ms2.6%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.6%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms2.6%
Cursor.executepsycopg/cursor.py:1132 ms2.6%
Connection.waitpsycopg/connection.py:4952 ms2.6%
SessionBase.cycle_keydjango/contrib/sessions/backends/base.py:4372 ms2.6%
SessionStore.deletedjango/contrib/sessions/backends/db.py:1752 ms2.6%
Model.deletedjango/db/models/base.py:12982 ms2.6%
Collector.deletedjango/db/models/deletion.py:4432 ms2.6%
logindjango/contrib/auth/__init__.py:1752 ms2.6%
SessionBase.__contains__django/contrib/sessions/backends/base.py:522 ms2.6%
SessionBase._get_sessiondjango/contrib/sessions/backends/base.py:2512 ms2.6%
SessionStore.loaddjango/contrib/sessions/backends/db.py:552 ms2.6%
SessionStore._get_session_from_dbdjango/contrib/sessions/backends/db.py:342 ms2.6%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms2.6%
QuerySet.getdjango/db/models/query.py:6352 ms2.6%
QuerySet.__len__django/db/models/query.py:3722 ms2.6%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms2.6%
ModelIterable.__iter__django/db/models/query.py:952 ms2.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms2.6%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.6%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms2.6%
Cursor.executepsycopg/cursor.py:1132 ms2.6%
Connection.waitpsycopg/connection.py:4952 ms2.6%
logindjango/contrib/auth/__init__.py:1972 ms2.6%
Signal.senddjango/dispatch/dispatcher.py:2092 ms2.6%
update_last_logindjango/contrib/auth/models.py:242 ms2.6%
AbstractBaseUser.savedjango/contrib/auth/base_user.py:622 ms2.6%
Model.savedjango/db/models/base.py:8742 ms2.6%
Model.save_basedjango/db/models/base.py:9662 ms2.6%
Model._save_tabledjango/db/models/base.py:11102 ms2.6%
Model._do_updatedjango/db/models/base.py:12112 ms2.6%
QuerySet._updatedjango/db/models/query.py:13272 ms2.6%
SQLUpdateCompiler.execute_returning_sqldjango/db/models/sql/compiler.py:21402 ms2.6%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21112 ms2.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms2.6%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.6%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms2.6%
Cursor.executepsycopg/cursor.py:1132 ms2.6%
Connection.waitpsycopg/connection.py:4952 ms2.6%
ClientMixin._logindjango/test/client.py:8763 ms5.2%
ClientMixin.sessiondjango/test/client.py:8123 ms5.2%
SessionStore.savedjango/contrib/sessions/backends/db.py:1213 ms5.2%
SessionStore.createdjango/contrib/sessions/backends/db.py:702 ms2.6%
SessionBase._get_new_session_keydjango/contrib/sessions/backends/base.py:1982 ms2.6%
SessionStore.existsdjango/contrib/sessions/backends/db.py:632 ms2.6%
QuerySet.existsdjango/db/models/query.py:13372 ms2.6%
Query.has_resultsdjango/db/models/sql/query.py:6812 ms2.6%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15922 ms2.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16112 ms2.6%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7672 ms2.6%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:862 ms2.6%
SQLCompiler.setup_querydjango/db/models/sql/compiler.py:752 ms2.6%
SQLCompiler.get_selectdjango/db/models/sql/compiler.py:3172 ms2.6%
SessionStore.createdjango/contrib/sessions/backends/db.py:742 ms2.6%
SessionStore.savedjango/contrib/sessions/backends/db.py:1262 ms2.6%
Atomic.__enter__django/db/transaction.py:2112 ms2.6%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms2.6%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4002 ms2.6%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3672 ms2.6%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.6%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms2.6%
Cursor.executepsycopg/cursor.py:1132 ms2.6%
Connection.waitpsycopg/connection.py:4952 ms2.6%
ClientMixin._logindjango/test/client.py:8832 ms2.6%
SessionStore.savedjango/contrib/sessions/backends/db.py:1262 ms2.6%
Atomic.__exit__django/db/transaction.py:2472 ms2.6%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms2.6%
BaseDatabaseWrapper.savepoint_commitdjango/db/backends/base/base.py:4312 ms2.6%
BaseDatabaseWrapper._savepoint_commitdjango/db/backends/base/base.py:3752 ms2.6%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.6%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms2.6%
Cursor.executepsycopg/cursor.py:1132 ms2.6%
Connection.waitpsycopg/connection.py:4952 ms2.6%
ProjectCreatePage.test_first_project_is_onboardingapps/projects/tests.py:235 response = self.client.post(7 ms10.4%
Client.postdjango/test/client.py:11537 ms10.4%
RequestFactory.postdjango/test/client.py:4997 ms10.4%
RequestFactory.genericdjango/test/client.py:6717 ms10.4%
Client.requestdjango/test/client.py:10827 ms10.4%
ClientHandler.__call__django/test/client.py:1867 ms10.4%
BaseHandler.get_responsedjango/core/handlers/base.py:1417 ms10.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms10.4%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1307 ms10.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms10.4%
MiddlewareMixin.__call__django/utils/deprecation.py:3097 ms10.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms10.4%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:1237 ms10.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms10.4%
MiddlewareMixin.__call__django/utils/deprecation.py:3097 ms10.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms10.4%
MiddlewareMixin.__call__django/utils/deprecation.py:3097 ms10.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms10.4%
MiddlewareMixin.__call__django/utils/deprecation.py:3097 ms10.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms10.4%
MiddlewareMixin.__call__django/utils/deprecation.py:3097 ms10.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms10.4%
MiddlewareMixin.__call__django/utils/deprecation.py:3097 ms10.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms10.4%
MiddlewareMixin.__call__django/utils/deprecation.py:3097 ms10.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms10.4%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:347 ms10.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms10.4%
BaseHandler._get_responsedjango/core/handlers/base.py:1987 ms10.4%
user_passes_test.<locals>.decorator.<locals>._view_wrapperdjango/contrib/auth/decorators.py:595 ms7.8%
project_createapps/orgs/views.py:126 first = not Project.objects.filter(organization__membership__user=request.user).exists()2 ms2.6%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms2.6%
QuerySet.filterdjango/db/models/query.py:15422 ms2.6%
QuerySet._filter_or_excludedjango/db/models/query.py:15602 ms2.6%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:15702 ms2.6%
Query.add_qdjango/db/models/sql/query.py:16712 ms2.6%
Query._add_qdjango/db/models/sql/query.py:17032 ms2.6%
Query.build_filterdjango/db/models/sql/query.py:15772 ms2.6%
Query.setup_joinsdjango/db/models/sql/query.py:19872 ms2.6%
Query.joindjango/db/models/sql/query.py:11452 ms2.6%
project_createapps/orgs/views.py:1272 ms2.6%
Organization.is_ownerapps/orgs/models.py:65 return user.is_authenticated and self.membership_set.filter(user=user, role=Membership.Role.OWNER).exists()2 ms2.6%
QuerySet.existsdjango/db/models/query.py:13372 ms2.6%
Query.has_resultsdjango/db/models/sql/query.py:6812 ms2.6%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15922 ms2.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16112 ms2.6%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7672 ms2.6%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:862 ms2.6%
SQLCompiler.setup_querydjango/db/models/sql/compiler.py:752 ms2.6%
cached_property.__get__django/utils/functional.py:472 ms2.6%
BaseExpression.output_fielddjango/db/models/expressions.py:3282 ms2.6%
Value._resolve_output_fielddjango/db/models/expressions.py:12012 ms2.6%
Field.__init__django/db/models/fields/__init__.py:2282 ms2.6%
project_createapps/orgs/views.py:1352 ms2.6%
create_projectapps/orgs/views.py:1142 ms2.6%
unique_slugapps/orgs/models.py:46 while slug in reserved or taken.filter(slug=slug).exists():2 ms2.6%
QuerySet.existsdjango/db/models/query.py:13372 ms2.6%
Query.has_resultsdjango/db/models/sql/query.py:6812 ms2.6%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15922 ms2.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms2.6%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.6%
user_passes_test.<locals>.decorator.<locals>._view_wrapperdjango/contrib/auth/decorators.py:562 ms2.6%
login_required.<locals>.<lambda>django/contrib/auth/decorators.py:792 ms2.6%
new_method_proxy.<locals>.innerdjango/utils/functional.py:2512 ms2.6%
SimpleLazyObject._setupdjango/utils/functional.py:4042 ms2.6%
AuthenticationMiddleware.process_request.<locals>.<lambda>django/contrib/auth/middleware.py:402 ms2.6%
get_userdjango/contrib/auth/middleware.py:202 ms2.6%
get_userdjango/contrib/auth/__init__.py:3112 ms2.6%
_get_user_session_keydjango/contrib/auth/__init__.py:952 ms2.6%
SessionBase.__getitem__django/contrib/sessions/backends/base.py:552 ms2.6%
SessionBase._get_sessiondjango/contrib/sessions/backends/base.py:2512 ms2.6%
SessionStore.loaddjango/contrib/sessions/backends/db.py:552 ms2.6%
SessionStore._get_session_from_dbdjango/contrib/sessions/backends/db.py:342 ms2.6%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms2.6%
QuerySet.getdjango/db/models/query.py:6352 ms2.6%
QuerySet.__len__django/db/models/query.py:3722 ms2.6%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms2.6%
ModelIterable.__iter__django/db/models/query.py:952 ms2.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms2.6%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.6%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms2.6%
Cursor.executepsycopg/cursor.py:1132 ms2.6%
Connection.waitpsycopg/connection.py:4952 ms2.6%
ProjectCreatePage.test_first_project_is_onboardingapps/projects/tests.py:229 organization = Membership.objects.get(user=self.user).organization2 ms2.6%
ForwardManyToOneDescriptor.__get__django/db/models/fields/related_descriptors.py:2572 ms2.6%
ForwardManyToOneDescriptor.get_objectdjango/db/models/fields/related_descriptors.py:2222 ms2.6%
QuerySet.getdjango/db/models/query.py:6352 ms2.6%
QuerySet.__len__django/db/models/query.py:3722 ms2.6%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms2.6%
ModelIterable.__iter__django/db/models/query.py:1282 ms2.6%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15772 ms2.6%
SQLCompiler.get_convertersdjango/db/models/sql/compiler.py:15262 ms2.6%
Col.get_db_convertersdjango/db/models/expressions.py:13392 ms2.6%
ProjectCreatePage.test_first_project_is_onboardingapps/projects/tests.py:238 project = Project.objects.get()2 ms2.6%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms2.6%
QuerySet.getdjango/db/models/query.py:6352 ms2.6%
QuerySet.__len__django/db/models/query.py:3722 ms2.6%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms2.6%
ModelIterable.__iter__django/db/models/query.py:952 ms2.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms2.6%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.6%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms2.6%
Cursor.executepsycopg/cursor.py:1132 ms2.6%
Connection.waitpsycopg/connection.py:4952 ms2.6%
ProjectCreatePage.test_first_project_is_onboardingapps/projects/tests.py:242 self.assertTrue(project.secrettokens_set.exists())2 ms2.6%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms2.6%
QuerySet.existsdjango/db/models/query.py:13372 ms2.6%
Query.has_resultsdjango/db/models/sql/query.py:6812 ms2.6%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15922 ms2.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16112 ms2.6%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7672 ms2.6%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:862 ms2.6%
SQLCompiler.setup_querydjango/db/models/sql/compiler.py:752 ms2.6%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()2 ms2.6%
TestCase._fixture_teardowndjango/test/testcases.py:14952 ms2.6%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4842 ms2.6%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.6%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms2.6%
Cursor.executepsycopg/cursor.py:1132 ms2.6%
Connection.waitpsycopg/connection.py:4952 ms2.6%
Estimated from 42 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

apps/projects/tests.py:228
response = self.client.get("/projects/create/", follow=True)
ProjectCreatePage.test_first_project_is_onboarding · Libraries
20 ms
apps/projects/tests.py:219
self.client.force_login(self.user)
ProjectCreatePage.setUp · Database
11 ms
ft/db/postgresql/base.py:39
return super().get_new_connection(conn_params)
DatabaseWrapper.get_new_connection · Database
7 ms
apps/orgs/models.py:46
while slug in reserved or taken.filter(slug=slug).exists():
unique_slug · Database
3 ms
apps/orgs/views.py:126
first = not Project.objects.filter(organization__membership__user=request.user).exists()
project_create · Database
3 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
3 ms
apps/orgs/models.py:126
membership = Membership.objects.filter(user=user).select_related("organization").order_by("id").first()
ensure_organization · 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/views.py:33
organizations = [] if user.is_anonymous else list(Organization.objects.filter(membership__user=user))
org_shell · Database
2 ms
apps/projects/tests.py:229
organization = Membership.objects.get(user=self.user).organization
ProjectCreatePage.test_first_project_is_onboarding · Database
2 ms

Fixtures

Exact setup time
_unittest_setUpClass_fixture_ProjectCreatePage class 8 ms
_django_setup_unittest class 0.20 ms
_template_string_if_invalid_marker function 0.05 ms
_dj_autoclear_mailbox function 0.04 ms
_django_db_marker function 0.04 ms
_django_set_urlconf function 0.03 ms
_live_server_helper function 0.02 ms
_django_clear_site_cache function 0.02 ms
monkeypatch function 0.01 ms

Database

56 queries · 15 ms

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

4×
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 "auth_user"."id", "auth_user"."password", "auth_user"."last_login", "auth_user"."is_superuser", "auth_user"."username", "auth_user"."first_name", "auth_user"."last_name", "auth_user"."email", "auth_user"."is_staff", "auth_user"."is_active", "auth_user"."date_joined" FROM "auth_user" WHERE "a…
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:228
41 ms
call setUp
apps/projects/tests.py:219
11 ms
setup setUpClass
django/test/testcases.py:1423
9 ms
call _post_teardown
django/test/testcases.py:1240
2 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 63 ms cb18ed3 main Profile
2 weeks, 4 days ago CI github-actions:test passed 92 ms 9bd5864 main Profile
2 weeks, 6 days ago CI github-actions:test passed 50 ms 19dac9b main Profile
3 weeks ago CI github-actions:test passed 87 ms e141198 main Profile
1 month ago CI github-actions:test passed 53 ms 46ec2aa main Profile
1 month ago CI github-actions:test passed 86 ms afde85b main Profile
1 month ago CI github-actions:test passed 82 ms fe29f9d main Profile
1 month ago CI github-actions:test passed 108 ms 044719a main Profile
1 month ago CI github-actions:test passed 67 ms b3fedae main Profile
1 month, 1 week ago CI github-actions:test passed 91 ms 43c4eda main Profile
1 month, 1 week ago CI github-actions:test passed 91 ms 9caa567 main Profile
1 month, 1 week ago CI github-actions:test passed 88 ms ec75501 main Profile
1 month, 1 week ago CI github-actions:test passed 102 ms d2c12e5 main Profile
1 month, 1 week ago CI github-actions:test passed 56 ms 0b902f6 main Profile
1 month, 1 week ago CI github-actions:test passed 91 ms 78a4357 main Profile