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

ProjectsPageTest::test_multiple_projects

First seen 2 years, 11 months ago in b9e98d9
CI github-actions:test 15 runs
Average
79 ms
median 87 ms
max 124 ms
Phases
Setup 10 ms Call 69 ms Teardown 0.17 ms
Categories
Database 55 ms App code 0.35 ms Other (Libraries, pytest, Templates, Unsampled, ...) 24 ms

49 database queries per run

Needs 85 KB of memory (max 660 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 2 weeks ago · open run
Show pytest frames
setup8 ms13.0%
TestCase.setUpClassdjango/test/testcases.py:1423 cls.cls_atomics = cls._enter_atomics()7 ms10.8%
TestCase._enter_atomicsdjango/test/testcases.py:13967 ms10.8%
Atomic.__enter__django/db/transaction.py:1987 ms10.8%
BaseDatabaseWrapper.get_autocommitdjango/db/backends/base/base.py:4547 ms10.8%
SimpleTestCase.ensure_connection_patch_method.<locals>.patched_ensure_connectiondjango/test/testcases.py:3037 ms10.8%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:267 ms10.8%
BaseDatabaseWrapper.ensure_connectiondjango/db/backends/base/base.py:2797 ms10.8%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:267 ms10.8%
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:1415 ms8.6%
EpollSelector.select<stdlib>/selectors.py:4525 ms8.6%
wait_connpsycopg/waiting.py:1451 ms2.2%
BaseConnection._connect_genpsycopg/_connection_base.py:4391 ms2.2%
TestCase.setUpClassdjango/test/testcases.py:1439 cls.setUpTestData()1 ms2.2%
ProjectsPageTest.setUpTestDataapps/projects/tests.py:98 cls.user = User.objects.create_user("testuser")1 ms2.2%
UserManager.create_userdjango/contrib/auth/models.py:1751 ms2.2%
UserManager._create_userdjango/contrib/auth/models.py:1620.68 ms1.1%
UserManager._create_user_objectdjango/contrib/auth/models.py:1540.68 ms1.1%
Model.__init__django/db/models/base.py:5580.68 ms1.1%
UserManager._create_userdjango/contrib/auth/models.py:1630.68 ms1.1%
AbstractBaseUser.savedjango/contrib/auth/base_user.py:620.68 ms1.1%
Model.savedjango/db/models/base.py:8740.68 ms1.1%
Model.save_basedjango/db/models/base.py:9660.68 ms1.1%
Model._save_tabledjango/db/models/base.py:11670.68 ms1.1%
Model._do_insertdjango/db/models/base.py:12180.68 ms1.1%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:870.68 ms1.1%
QuerySet._insertdjango/db/models/query.py:19180.68 ms1.1%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19250.68 ms1.1%
CursorWrapper.executedjango/db/backends/utils.py:790.68 ms1.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:920.68 ms1.1%
CursorWrapper._executedjango/db/backends/utils.py:1050.68 ms1.1%
Cursor.executepsycopg/cursor.py:1130.68 ms1.1%
Connection.waitpsycopg/connection.py:4950.68 ms1.1%
call55 ms86.8%
ProjectsPageTest.test_multiple_projectsapps/projects/tests.py:131 response = self.client.get("/projects/", follow=True)43 ms68.2%
Client.getdjango/test/client.py:112437 ms58.9%
RequestFactory.getdjango/test/client.py:47537 ms58.9%
RequestFactory.genericdjango/test/client.py:67137 ms58.9%
Client.requestdjango/test/client.py:108237 ms58.9%
ClientHandler.__call__django/test/client.py:17327 ms43.4%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6225 ms40.3%
__init____init__:-125 ms40.3%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10425 ms40.3%
WhiteNoise.add_fileswhitenoise/base.py:10825 ms40.3%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12012 ms18.6%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13110 ms15.5%
WhiteNoise.get_static_filewhitenoise/base.py:2088 ms12.4%
StaticFile.__init__whitenoise/responders.py:762 ms3.1%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1902 ms3.1%
Response.__init__whitenoise/responders.py:182 ms3.1%
<GC>~2 ms3.1%
StaticFile.__init__whitenoise/responders.py:772 ms3.1%
StaticFile.get_alternativeswhitenoise/responders.py:1982 ms3.1%
StaticFile.__init__whitenoise/responders.py:732 ms3.1%
StaticFile.get_headerswhitenoise/responders.py:1762 ms3.1%
formatdate<stdlib>/email/utils.py:2662 ms3.1%
WhiteNoise.get_static_filewhitenoise/base.py:2032 ms3.1%
WhiteNoise.add_cache_headerswhitenoise/base.py:2242 ms3.1%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1762 ms3.1%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1972 ms3.1%
URLMixin.urldebug_toolbar/panels/staticfiles.py:202 ms3.1%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:2052 ms3.1%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:1782 ms3.1%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1152 ms3.1%
scantreewhitenoise/base.py:2622 ms3.1%
scantreewhitenoise/base.py:2622 ms3.1%
scantreewhitenoise/base.py:2622 ms3.1%
scantreewhitenoise/base.py:2622 ms3.1%
scantreewhitenoise/base.py:2622 ms3.1%
scantreewhitenoise/base.py:2642 ms3.1%
BaseHandler.load_middlewaredjango/core/handlers/base.py:962 ms3.1%
ClientHandler.__call__django/test/client.py:18610 ms15.5%
BaseHandler.get_responsedjango/core/handlers/base.py:14110 ms15.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5510 ms15.5%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:13010 ms15.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5510 ms15.5%
MiddlewareMixin.__call__django/utils/deprecation.py:30910 ms15.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5510 ms15.5%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12310 ms15.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5510 ms15.5%
MiddlewareMixin.__call__django/utils/deprecation.py:30910 ms15.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5510 ms15.5%
MiddlewareMixin.__call__django/utils/deprecation.py:30910 ms15.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5510 ms15.5%
MiddlewareMixin.__call__django/utils/deprecation.py:30910 ms15.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5510 ms15.5%
MiddlewareMixin.__call__django/utils/deprecation.py:30910 ms15.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5510 ms15.5%
MiddlewareMixin.__call__django/utils/deprecation.py:30910 ms15.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5510 ms15.5%
MiddlewareMixin.__call__django/utils/deprecation.py:30910 ms15.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5510 ms15.5%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:3410 ms15.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5510 ms15.5%
BaseHandler._get_responsedjango/core/handlers/base.py:19810 ms15.5%
user_passes_test.<locals>.decorator.<locals>._view_wrapperdjango/contrib/auth/decorators.py:596 ms9.3%
homeapps/orgs/views.py:722 ms3.1%
current_organizationapps/orgs/views.py:542 ms3.1%
ensure_organizationapps/orgs/models.py:126 membership = Membership.objects.filter(user=user).select_related("organization").order_by("id").first()2 ms3.1%
QuerySet.firstdjango/db/models/query.py:11452 ms3.1%
QuerySet.__iter__django/db/models/query.py:3902 ms3.1%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms3.1%
ModelIterable.__iter__django/db/models/query.py:952 ms3.1%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms3.1%
CursorWrapper.executedjango/db/backends/utils.py:792 ms3.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.1%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms3.1%
Cursor.executepsycopg/cursor.py:1132 ms3.1%
Connection.waitpsycopg/connection.py:4952 ms3.1%
homeapps/orgs/views.py:74 if not projects.exists():2 ms3.1%
QuerySet.existsdjango/db/models/query.py:13372 ms3.1%
Query.has_resultsdjango/db/models/sql/query.py:6812 ms3.1%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15922 ms3.1%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms3.1%
CursorWrapper.executedjango/db/backends/utils.py:792 ms3.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.1%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms3.1%
Cursor.executepsycopg/cursor.py:1132 ms3.1%
Connection.waitpsycopg/connection.py:4952 ms3.1%
homeapps/orgs/views.py:77 if in_organization.count() == 1:2 ms3.1%
QuerySet.countdjango/db/models/query.py:6102 ms3.1%
Query.get_countdjango/db/models/sql/query.py:6512 ms3.1%
Query.get_aggregationdjango/db/models/sql/query.py:6332 ms3.1%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms3.1%
CursorWrapper.executedjango/db/backends/utils.py:792 ms3.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.1%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms3.1%
Cursor.executepsycopg/cursor.py:1132 ms3.1%
Connection.waitpsycopg/connection.py:4952 ms3.1%
user_passes_test.<locals>.decorator.<locals>._view_wrapperdjango/contrib/auth/decorators.py:564 ms6.2%
login_required.<locals>.<lambda>django/contrib/auth/decorators.py:794 ms6.2%
new_method_proxy.<locals>.innerdjango/utils/functional.py:2514 ms6.2%
SimpleLazyObject._setupdjango/utils/functional.py:4044 ms6.2%
AuthenticationMiddleware.process_request.<locals>.<lambda>django/contrib/auth/middleware.py:404 ms6.2%
get_userdjango/contrib/auth/middleware.py:204 ms6.2%
get_userdjango/contrib/auth/__init__.py:3112 ms3.1%
_get_user_session_keydjango/contrib/auth/__init__.py:952 ms3.1%
SessionBase.__getitem__django/contrib/sessions/backends/base.py:552 ms3.1%
SessionBase._get_sessiondjango/contrib/sessions/backends/base.py:2512 ms3.1%
SessionStore.loaddjango/contrib/sessions/backends/db.py:552 ms3.1%
SessionStore._get_session_from_dbdjango/contrib/sessions/backends/db.py:342 ms3.1%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms3.1%
QuerySet.getdjango/db/models/query.py:6352 ms3.1%
QuerySet.__len__django/db/models/query.py:3722 ms3.1%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms3.1%
ModelIterable.__iter__django/db/models/query.py:952 ms3.1%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms3.1%
CursorWrapper.executedjango/db/backends/utils.py:792 ms3.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.1%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms3.1%
Cursor.executepsycopg/cursor.py:1132 ms3.1%
Connection.waitpsycopg/connection.py:4952 ms3.1%
get_userdjango/contrib/auth/__init__.py:3182 ms3.1%
ModelBackend.get_userdjango/contrib/auth/backends.py:2322 ms3.1%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms3.1%
QuerySet.getdjango/db/models/query.py:6352 ms3.1%
QuerySet.__len__django/db/models/query.py:3722 ms3.1%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms3.1%
ModelIterable.__iter__django/db/models/query.py:952 ms3.1%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16622 ms3.1%
cursor_iterdjango/db/models/sql/compiler.py:22542 ms3.1%
cursor_iter.<locals>.<lambda>django/db/models/sql/compiler.py:22542 ms3.1%
DatabaseErrorWrapper.__call__.<locals>.innerdjango/db/utils.py:1012 ms3.1%
Cursor.fetchmanypsycopg/cursor.py:2682 ms3.1%
Client.getdjango/test/client.py:11336 ms9.3%
Client._handle_redirectsdjango/test/client.py:13846 ms9.3%
ClientMixin._follow_redirectdjango/test/client.py:10026 ms9.3%
Client.getdjango/test/client.py:11246 ms9.3%
RequestFactory.getdjango/test/client.py:4756 ms9.3%
RequestFactory.genericdjango/test/client.py:6716 ms9.3%
Client.requestdjango/test/client.py:10826 ms9.3%
ClientHandler.__call__django/test/client.py:1866 ms9.3%
BaseHandler.get_responsedjango/core/handlers/base.py:1416 ms9.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:556 ms9.3%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1306 ms9.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:556 ms9.3%
MiddlewareMixin.__call__django/utils/deprecation.py:3096 ms9.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:556 ms9.3%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:1236 ms9.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:556 ms9.3%
MiddlewareMixin.__call__django/utils/deprecation.py:3096 ms9.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:556 ms9.3%
MiddlewareMixin.__call__django/utils/deprecation.py:3096 ms9.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:556 ms9.3%
MiddlewareMixin.__call__django/utils/deprecation.py:3096 ms9.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:556 ms9.3%
MiddlewareMixin.__call__django/utils/deprecation.py:3096 ms9.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:556 ms9.3%
MiddlewareMixin.__call__django/utils/deprecation.py:3096 ms9.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:556 ms9.3%
MiddlewareMixin.__call__django/utils/deprecation.py:3096 ms9.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:556 ms9.3%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:346 ms9.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:556 ms9.3%
BaseHandler._get_responsedjango/core/handlers/base.py:1986 ms9.3%
user_passes_test.<locals>.decorator.<locals>._view_wrapperdjango/contrib/auth/decorators.py:596 ms9.3%
org_projectsapps/orgs/views.py:974 ms6.2%
org_shellapps/orgs/views.py:33 organizations = [] if user.is_anonymous else list(Organization.objects.filter(membership__user=user))2 ms3.1%
QuerySet.__iter__django/db/models/query.py:3902 ms3.1%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms3.1%
ModelIterable.__iter__django/db/models/query.py:952 ms3.1%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16112 ms3.1%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7952 ms3.1%
SQLCompiler.compiledjango/db/models/sql/compiler.py:5782 ms3.1%
WhereNode.as_sqldjango/db/models/sql/where.py:1512 ms3.1%
SQLCompiler.compiledjango/db/models/sql/compiler.py:5782 ms3.1%
RelatedLookupMixin.as_sqldjango/db/models/fields/related_lookups.py:1282 ms3.1%
org_shellapps/orgs/views.py:40 "org_projects": list(organization.project_set.order_by("name")) if member else [],2 ms3.1%
QuerySet.__iter__django/db/models/query.py:3902 ms3.1%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms3.1%
ModelIterable.__iter__django/db/models/query.py:952 ms3.1%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms3.1%
CursorWrapper.executedjango/db/backends/utils.py:792 ms3.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.1%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms3.1%
Cursor.executepsycopg/cursor.py:1132 ms3.1%
Connection.waitpsycopg/connection.py:4952 ms3.1%
org_projectsapps/orgs/views.py:96 cards = [{"project": project, **analytics.project_card(project)} for project in projects]2 ms3.1%
QuerySet.__iter__django/db/models/query.py:3902 ms3.1%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms3.1%
ModelIterable.__iter__django/db/models/query.py:952 ms3.1%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms3.1%
CursorWrapper.executedjango/db/backends/utils.py:792 ms3.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.1%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms3.1%
Cursor.executepsycopg/cursor.py:1132 ms3.1%
Connection.waitpsycopg/connection.py:4952 ms3.1%
ProjectsPageTest.setUpapps/projects/tests.py:101 self.client.force_login(self.user)6 ms9.3%
ClientMixin.force_logindjango/test/client.py:8556 ms9.3%
ClientMixin._logindjango/test/client.py:8764 ms6.2%
ClientMixin.sessiondjango/test/client.py:8124 ms6.2%
SessionStore.savedjango/contrib/sessions/backends/db.py:1214 ms6.2%
SessionStore.createdjango/contrib/sessions/backends/db.py:702 ms3.1%
SessionBase._get_new_session_keydjango/contrib/sessions/backends/base.py:1982 ms3.1%
SessionStore.existsdjango/contrib/sessions/backends/db.py:632 ms3.1%
QuerySet.existsdjango/db/models/query.py:13372 ms3.1%
Query.has_resultsdjango/db/models/sql/query.py:6812 ms3.1%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15922 ms3.1%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms3.1%
CursorWrapper.executedjango/db/backends/utils.py:792 ms3.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.1%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms3.1%
Cursor.executepsycopg/cursor.py:1132 ms3.1%
Connection.waitpsycopg/connection.py:4952 ms3.1%
SessionStore.createdjango/contrib/sessions/backends/db.py:742 ms3.1%
SessionStore.savedjango/contrib/sessions/backends/db.py:1262 ms3.1%
Atomic.__exit__django/db/transaction.py:2472 ms3.1%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms3.1%
BaseDatabaseWrapper.savepoint_commitdjango/db/backends/base/base.py:4312 ms3.1%
BaseDatabaseWrapper._savepoint_commitdjango/db/backends/base/base.py:3752 ms3.1%
CursorWrapper.executedjango/db/backends/utils.py:792 ms3.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.1%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms3.1%
Cursor.executepsycopg/cursor.py:1132 ms3.1%
Connection.waitpsycopg/connection.py:4952 ms3.1%
ClientMixin._logindjango/test/client.py:8812 ms3.1%
logindjango/contrib/auth/__init__.py:1962 ms3.1%
ProjectsPageTest.test_multiple_projectsapps/projects/tests.py:1294 ms6.2%
make_projectapps/projects/testing.py:622 ms3.1%
unique_slugapps/orgs/models.py:46 while slug in reserved or taken.filter(slug=slug).exists():2 ms3.1%
QuerySet.existsdjango/db/models/query.py:13372 ms3.1%
Query.has_resultsdjango/db/models/sql/query.py:6812 ms3.1%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15922 ms3.1%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms3.1%
CursorWrapper.executedjango/db/backends/utils.py:792 ms3.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.1%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms3.1%
Cursor.executepsycopg/cursor.py:1132 ms3.1%
Connection.waitpsycopg/connection.py:4952 ms3.1%
make_projectapps/projects/testing.py:672 ms3.1%
unique_slugapps/orgs/models.py:46 while slug in reserved or taken.filter(slug=slug).exists():2 ms3.1%
QuerySet.filterdjango/db/models/query.py:15422 ms3.1%
QuerySet._filter_or_excludedjango/db/models/query.py:15602 ms3.1%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:15702 ms3.1%
Query.add_qdjango/db/models/sql/query.py:16712 ms3.1%
Estimated from 40 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

apps/projects/tests.py:131
response = self.client.get("/projects/", follow=True)
ProjectsPageTest.test_multiple_projects · Libraries
31 ms
ft/db/postgresql/base.py:39
return super().get_new_connection(conn_params)
DatabaseWrapper.get_new_connection · Database
7 ms
apps/projects/tests.py:101
self.client.force_login(self.user)
ProjectsPageTest.setUp · Database
6 ms
apps/orgs/models.py:46
while slug in reserved or taken.filter(slug=slug).exists():
unique_slug · Database
4 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/views.py:74
if not projects.exists():
home · Database
2 ms
apps/orgs/views.py:77
if in_organization.count() == 1:
home · Database
2 ms
apps/orgs/views.py:96
cards = [{"project": project, **analytics.project_card(project)} for project in projects]
org_projects · 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/views.py:40
"org_projects": list(organization.project_set.order_by("name")) if member else [],
org_shell · Database
2 ms

Fixtures

Exact setup time
_unittest_setUpClass_fixture_ProjectsPageTest class 7 ms
_django_setup_unittest class 0.21 ms
_dj_autoclear_mailbox function 0.04 ms
_django_db_marker function 0.03 ms
_template_string_if_invalid_marker function 0.03 ms
_live_server_helper function 0.03 ms
_django_set_urlconf function 0.02 ms
_django_clear_site_cache function 0.02 ms
monkeypatch function 0.01 ms

Database

49 queries · 15 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:131
47 ms
setup setUpClass
django/test/testcases.py:1423
8 ms
call setUp
apps/projects/tests.py:101
6 ms
call pytest internals 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 87 ms 9bd5864 main Profile
2 weeks, 6 days ago CI github-actions:test passed 48 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 51 ms 46ec2aa main Profile
1 month ago CI github-actions:test passed 89 ms afde85b main Profile
1 month ago CI github-actions:test passed 66 ms fe29f9d main Profile
1 month ago CI github-actions:test passed 124 ms 044719a main Profile
1 month ago CI github-actions:test passed 60 ms b3fedae main Profile
1 month, 1 week ago CI github-actions:test passed 87 ms 43c4eda main Profile
1 month, 1 week ago CI github-actions:test passed 87 ms 9caa567 main Profile
1 month, 1 week ago CI github-actions:test passed 110 ms ec75501 main Profile
1 month, 1 week ago CI github-actions:test passed 100 ms d2c12e5 main Profile
1 month, 1 week ago CI github-actions:test passed 50 ms 0b902f6 main Profile
1 month, 1 week ago CI github-actions:test passed 82 ms 78a4357 main Profile