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

ProjectTestsPage::test_not_logged_in

First seen 2 years, 10 months ago in d87c7a8
CI github-actions:test 15 runs
Average
62 ms
median 66 ms
max 93 ms
Phases
Setup 19 ms Call 43 ms Teardown 0.16 ms
Categories
Database 37 ms App code 0.16 ms Password hashing 0.06 ms Other (Libraries, pytest, Deep copies, Unsampled) 25 ms

37 database queries per run

Needs 481 KB of memory (max 936 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 11 hours ago · open run
Show pytest frames
setup25 ms38.3%
TestCase.setUpClassdjango/test/testcases.py:1439 cls.setUpTestData()13 ms19.1%
ProjectTestsPage.setUpTestDataapps/projects/tests.py:3335 ms8.0%
make_projectapps/projects/testing.py:672 ms3.2%
unique_slugapps/orgs/models.py:46 while slug in reserved or taken.filter(slug=slug).exists():2 ms3.2%
QuerySet.filterdjango/db/models/query.py:15411 ms1.6%
QuerySet._not_support_combined_queriesdjango/db/models/query.py:20741 ms1.6%
QuerySet.querydjango/db/models/query.py:3061 ms1.6%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:15701 ms1.6%
Query.add_qdjango/db/models/sql/query.py:16711 ms1.6%
Query._add_qdjango/db/models/sql/query.py:17031 ms1.6%
Query.build_filterdjango/db/models/sql/query.py:15771 ms1.6%
Query.setup_joinsdjango/db/models/sql/query.py:19911 ms1.6%
<lambda><string>:11 ms1.6%
QuerySet.existsdjango/db/models/query.py:13371 ms1.6%
Query.has_resultsdjango/db/models/sql/query.py:6811 ms1.6%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15921 ms1.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16241 ms1.6%
CursorWrapper.executedjango/db/backends/utils.py:791 ms1.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms1.6%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms1.6%
Cursor.executepsycopg/cursor.py:1131 ms1.6%
Connection.waitpsycopg/connection.py:4951 ms1.6%
make_projectapps/projects/testing.py:621 ms1.6%
unique_slugapps/orgs/models.py:46 while slug in reserved or taken.filter(slug=slug).exists():1 ms1.6%
QuerySet.existsdjango/db/models/query.py:13371 ms1.6%
Query.has_resultsdjango/db/models/sql/query.py:6811 ms1.6%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15921 ms1.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16241 ms1.6%
CursorWrapper.executedjango/db/backends/utils.py:791 ms1.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms1.6%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms1.6%
Cursor.executepsycopg/cursor.py:1131 ms1.6%
Connection.waitpsycopg/connection.py:4951 ms1.6%
BaseCursor._execute_genpsycopg/_cursor_base.py:2061 ms1.6%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2861 ms1.6%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:781 ms1.6%
make_projectapps/projects/testing.py:61 organization = Organization.objects.create(1 ms1.6%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:871 ms1.6%
QuerySet.createdjango/db/models/query.py:6691 ms1.6%
Model.savedjango/db/models/base.py:8741 ms1.6%
Model.save_basedjango/db/models/base.py:9661 ms1.6%
Model._save_tabledjango/db/models/base.py:11671 ms1.6%
Model._do_insertdjango/db/models/base.py:12181 ms1.6%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:871 ms1.6%
QuerySet._insertdjango/db/models/query.py:19181 ms1.6%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19251 ms1.6%
CursorWrapper.executedjango/db/backends/utils.py:791 ms1.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms1.6%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms1.6%
Cursor.executepsycopg/cursor.py:1131 ms1.6%
Connection.waitpsycopg/connection.py:4951 ms1.6%
make_projectapps/projects/testing.py:64 project = Project.objects.create(1 ms1.6%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:871 ms1.6%
QuerySet.createdjango/db/models/query.py:6691 ms1.6%
Model.savedjango/db/models/base.py:8741 ms1.6%
Model.save_basedjango/db/models/base.py:9661 ms1.6%
Model._save_tabledjango/db/models/base.py:11671 ms1.6%
Model._do_insertdjango/db/models/base.py:12181 ms1.6%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:871 ms1.6%
QuerySet._insertdjango/db/models/query.py:19181 ms1.6%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19251 ms1.6%
CursorWrapper.executedjango/db/backends/utils.py:791 ms1.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms1.6%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms1.6%
Cursor.executepsycopg/cursor.py:1131 ms1.6%
Connection.waitpsycopg/connection.py:4951 ms1.6%
ProjectTestsPage.setUpTestDataapps/projects/tests.py:3353 ms4.8%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:873 ms4.8%
QuerySet.createdjango/db/models/query.py:6693 ms4.8%
Test.saveapps/projects/models.py:2932 ms3.2%
TestManager.slugs_forapps/projects/models.py:240 existing = dict(self.filter(project_id=project_id, name__in=names).values_list("name", "slug"))2 ms3.2%
QuerySet.__iter__django/db/models/query.py:3902 ms3.2%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms3.2%
ValuesListIterable.__iter__django/db/models/query.py:2381 ms1.6%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15731 ms1.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16241 ms1.6%
CursorWrapper.executedjango/db/backends/utils.py:791 ms1.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms1.6%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms1.6%
Cursor.executepsycopg/cursor.py:1131 ms1.6%
Connection.waitpsycopg/connection.py:4951 ms1.6%
Test.saveapps/projects/models.py:294 super().save(*args, **kwargs)1 ms1.6%
Model.savedjango/db/models/base.py:8281 ms1.6%
Model._prepare_related_fields_for_savedjango/db/models/base.py:12451 ms1.6%
FieldCacheMixin.is_cacheddjango/db/models/fields/mixins.py:281 ms1.6%
ProjectTestsPage.setUpTestDataapps/projects/tests.py:332 cls.user = User.objects.create_user("testuser")2 ms3.2%
UserManager.create_userdjango/contrib/auth/models.py:1752 ms3.2%
UserManager._create_userdjango/contrib/auth/models.py:1632 ms3.2%
AbstractBaseUser.savedjango/contrib/auth/base_user.py:622 ms3.2%
Model.savedjango/db/models/base.py:8742 ms3.2%
Model.save_basedjango/db/models/base.py:9662 ms3.2%
Model._save_tabledjango/db/models/base.py:11672 ms3.2%
Model._do_insertdjango/db/models/base.py:12182 ms3.2%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms3.2%
QuerySet._insertdjango/db/models/query.py:19182 ms3.2%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19252 ms3.2%
CursorWrapper.executedjango/db/backends/utils.py:792 ms3.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.2%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms3.2%
Cursor.executepsycopg/cursor.py:1132 ms3.2%
Connection.waitpsycopg/connection.py:4952 ms3.2%
BaseCursor._execute_genpsycopg/_cursor_base.py:2041 ms1.6%
BaseCursor._start_querypsycopg/_cursor_base.py:3871 ms1.6%
BaseConnection._start_querypsycopg/_connection_base.py:5531 ms1.6%
BaseConnection._exec_commandpsycopg/_connection_base.py:4741 ms1.6%
ProjectTestsPage.setUpTestDataapps/projects/tests.py:3342 ms3.2%
add_memberapps/projects/testing.py:76 membership, _ = Membership.objects.get_or_create(2 ms3.2%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms3.2%
QuerySet.get_or_createdjango/db/models/query.py:9871 ms1.6%
QuerySet.getdjango/db/models/query.py:6351 ms1.6%
QuerySet.__len__django/db/models/query.py:3721 ms1.6%
QuerySet._fetch_alldjango/db/models/query.py:20001 ms1.6%
ModelIterable.__iter__django/db/models/query.py:951 ms1.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16241 ms1.6%
CursorWrapper.executedjango/db/backends/utils.py:791 ms1.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms1.6%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms1.6%
Cursor.executepsycopg/cursor.py:1131 ms1.6%
Connection.waitpsycopg/connection.py:4951 ms1.6%
QuerySet.get_or_createdjango/db/models/query.py:9941 ms1.6%
QuerySet.createdjango/db/models/query.py:6691 ms1.6%
Model.savedjango/db/models/base.py:8741 ms1.6%
Model.save_basedjango/db/models/base.py:9661 ms1.6%
Model._save_tabledjango/db/models/base.py:11671 ms1.6%
Model._do_insertdjango/db/models/base.py:12181 ms1.6%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:871 ms1.6%
QuerySet._insertdjango/db/models/query.py:19181 ms1.6%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19251 ms1.6%
CursorWrapper.executedjango/db/backends/utils.py:791 ms1.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms1.6%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms1.6%
Cursor.executepsycopg/cursor.py:1131 ms1.6%
Connection.waitpsycopg/connection.py:4951 ms1.6%
BaseCursor._execute_genpsycopg/_cursor_base.py:2061 ms1.6%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2861 ms1.6%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:781 ms1.6%
TestCase.setUpClassdjango/test/testcases.py:1423 cls.cls_atomics = cls._enter_atomics()13 ms19.1%
TestCase._enter_atomicsdjango/test/testcases.py:139613 ms19.1%
Atomic.__enter__django/db/transaction.py:19813 ms19.1%
BaseDatabaseWrapper.get_autocommitdjango/db/backends/base/base.py:45413 ms19.1%
SimpleTestCase.ensure_connection_patch_method.<locals>.patched_ensure_connectiondjango/test/testcases.py:30313 ms19.1%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2613 ms19.1%
BaseDatabaseWrapper.ensure_connectiondjango/db/backends/base/base.py:27913 ms19.1%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2613 ms19.1%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:25612 ms17.5%
DatabaseWrapper.get_new_connectionft/db/postgresql/base.py:39 return super().get_new_connection(conn_params)12 ms17.5%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2612 ms17.5%
DatabaseWrapper.get_new_connectiondjango/db/backends/postgresql/base.py:33312 ms17.5%
Connection.connectpsycopg/connection.py:10912 ms17.5%
wait_connpsycopg/waiting.py:1418 ms12.8%
EpollSelector.select<stdlib>/selectors.py:4528 ms12.8%
wait_connpsycopg/waiting.py:1453 ms4.8%
BaseConnection._connect_genpsycopg/_connection_base.py:4393 ms4.8%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:2581 ms1.6%
DatabaseWrapper.init_connection_statedjango/db/backends/postgresql/base.py:4021 ms1.6%
DatabaseWrapper._configure_connectiondjango/db/backends/postgresql/base.py:3741 ms1.6%
DatabaseWrapper._configure_timezonedjango/db/backends/postgresql/base.py:3571 ms1.6%
Cursor.executepsycopg/cursor.py:1131 ms1.6%
Connection.waitpsycopg/connection.py:4951 ms1.6%
call41 ms61.5%
ProjectTestsPage.test_not_logged_inapps/projects/tests.py:343 response = self.client.get(self.url)26 ms39.1%
Client.getdjango/test/client.py:112426 ms39.1%
RequestFactory.getdjango/test/client.py:47526 ms39.1%
RequestFactory.genericdjango/test/client.py:67126 ms39.1%
Client.requestdjango/test/client.py:108226 ms39.1%
ClientHandler.__call__django/test/client.py:18614 ms20.5%
BaseHandler.get_responsedjango/core/handlers/base.py:14114 ms20.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5514 ms20.5%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:13014 ms20.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5514 ms20.5%
MiddlewareMixin.__call__django/utils/deprecation.py:30914 ms20.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5514 ms20.5%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12314 ms20.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5514 ms20.5%
MiddlewareMixin.__call__django/utils/deprecation.py:30914 ms20.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5514 ms20.5%
MiddlewareMixin.__call__django/utils/deprecation.py:30914 ms20.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5514 ms20.5%
MiddlewareMixin.__call__django/utils/deprecation.py:30914 ms20.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5514 ms20.5%
MiddlewareMixin.__call__django/utils/deprecation.py:30914 ms20.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5514 ms20.5%
MiddlewareMixin.__call__django/utils/deprecation.py:30914 ms20.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5514 ms20.5%
MiddlewareMixin.__call__django/utils/deprecation.py:30914 ms20.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5514 ms20.5%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:3414 ms20.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5514 ms20.5%
BaseHandler._get_responsedjango/core/handlers/base.py:19814 ms20.5%
project_testsapps/projects/urls.py:17714 ms20.5%
find_projectapps/projects/urls.py:49 project = get_object_or_404(14 ms20.5%
get_object_or_404django/shortcuts.py:9014 ms20.5%
QuerySet.getdjango/db/models/query.py:63514 ms20.5%
QuerySet.__len__django/db/models/query.py:37214 ms20.5%
QuerySet._fetch_alldjango/db/models/query.py:200014 ms20.5%
ModelIterable.__iter__django/db/models/query.py:9514 ms20.5%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:162414 ms20.5%
CursorWrapper.executedjango/db/backends/utils.py:7914 ms20.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9214 ms20.5%
CursorWrapper._executedjango/db/backends/utils.py:10514 ms20.5%
Cursor.executepsycopg/cursor.py:11314 ms20.5%
Connection.waitpsycopg/connection.py:49514 ms20.5%
ClientHandler.__call__django/test/client.py:17311 ms16.8%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6211 ms16.8%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10411 ms16.8%
WhiteNoise.add_fileswhitenoise/base.py:10811 ms16.8%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1209 ms13.0%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:1319 ms13.0%
WhiteNoise.get_static_filewhitenoise/base.py:2086 ms9.3%
StaticFile.__init__whitenoise/responders.py:734 ms5.6%
StaticFile.get_headerswhitenoise/responders.py:1762 ms3.7%
formatdate<stdlib>/email/utils.py:2662 ms3.7%
format_datetime<stdlib>/email/utils.py:2841 ms1.9%
StaticFile.get_headerswhitenoise/responders.py:1781 ms1.9%
parsedate<stdlib>/email/_parseaddr.py:1851 ms1.9%
StaticFile.__init__whitenoise/responders.py:751 ms1.9%
StaticFile.__init__whitenoise/responders.py:761 ms1.9%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1891 ms1.9%
<GC>~1 ms1.9%
WhiteNoise.get_static_filewhitenoise/base.py:2021 ms1.9%
WhiteNoise.add_mime_headerswhitenoise/base.py:2211 ms1.9%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1152 ms3.7%
scantreewhitenoise/base.py:2622 ms3.7%
scantreewhitenoise/base.py:2621 ms1.9%
scantreewhitenoise/base.py:2601 ms1.9%
scantreewhitenoise/base.py:2641 ms1.9%
ClientHandler.__call__django/test/client.py:2081 ms1.9%
Signal.connectdjango/dispatch/dispatcher.py:1101 ms1.9%
iscoroutinefunction<stdlib>/inspect.py:336 return _has_code_flag(obj, CO_COROUTINE) or _has_coroutine_mark(obj)1 ms1.9%
ProjectTestsPage.setUpapps/projects/tests.py:338 self.client.force_login(self.user)9 ms13.0%
ClientMixin.force_logindjango/test/client.py:8559 ms13.0%
ClientMixin._logindjango/test/client.py:8764 ms5.6%
ClientMixin.sessiondjango/test/client.py:8124 ms5.6%
SessionStore.savedjango/contrib/sessions/backends/db.py:1214 ms5.6%
SessionStore.createdjango/contrib/sessions/backends/db.py:742 ms3.7%
SessionStore.savedjango/contrib/sessions/backends/db.py:1262 ms3.7%
Atomic.__enter__django/db/transaction.py:2111 ms1.9%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:261 ms1.9%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4001 ms1.9%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3671 ms1.9%
CursorWrapper.executedjango/db/backends/utils.py:791 ms1.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms1.9%
CursorWrapper._executedjango/db/backends/utils.py:1031 ms1.9%
Cursor.executepsycopg/cursor.py:1131 ms1.9%
Connection.waitpsycopg/connection.py:4951 ms1.9%
BaseCursor._execute_genpsycopg/_cursor_base.py:2061 ms1.9%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2861 ms1.9%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:781 ms1.9%
Atomic.__exit__django/db/transaction.py:2471 ms1.9%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:261 ms1.9%
BaseDatabaseWrapper.savepoint_commitdjango/db/backends/base/base.py:4311 ms1.9%
BaseDatabaseWrapper._savepoint_commitdjango/db/backends/base/base.py:3751 ms1.9%
CursorWrapper.executedjango/db/backends/utils.py:791 ms1.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms1.9%
SessionStore.createdjango/contrib/sessions/backends/db.py:701 ms1.9%
SessionBase._get_new_session_keydjango/contrib/sessions/backends/base.py:1981 ms1.9%
SessionStore.existsdjango/contrib/sessions/backends/db.py:631 ms1.9%
QuerySet.existsdjango/db/models/query.py:13371 ms1.9%
Query.has_resultsdjango/db/models/sql/query.py:6801 ms1.9%
Query.get_compilerdjango/db/models/sql/query.py:3691 ms1.9%
BaseConnectionHandler.__getitem__django/utils/connection.py:581 ms1.9%
Local.__getattr__asgiref/local.py:1201 ms1.9%
ClientMixin._logindjango/test/client.py:8814 ms5.6%
logindjango/contrib/auth/__init__.py:1872 ms3.7%
SessionBase.cycle_keydjango/contrib/sessions/backends/base.py:4341 ms1.9%
SessionStore.createdjango/contrib/sessions/backends/db.py:701 ms1.9%
SessionBase._get_new_session_keydjango/contrib/sessions/backends/base.py:1981 ms1.9%
SessionStore.existsdjango/contrib/sessions/backends/db.py:631 ms1.9%
QuerySet.existsdjango/db/models/query.py:13371 ms1.9%
Query.has_resultsdjango/db/models/sql/query.py:6811 ms1.9%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15921 ms1.9%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16241 ms1.9%
CursorWrapper.executedjango/db/backends/utils.py:791 ms1.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms1.9%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms1.9%
Cursor.executepsycopg/cursor.py:1131 ms1.9%
Connection.waitpsycopg/connection.py:4951 ms1.9%
SessionBase.cycle_keydjango/contrib/sessions/backends/base.py:4371 ms1.9%
SessionStore.deletedjango/contrib/sessions/backends/db.py:1751 ms1.9%
Model.deletedjango/db/models/base.py:12981 ms1.9%
Collector.deletedjango/db/models/deletion.py:4521 ms1.9%
DeleteQuery.delete_batchdjango/db/models/sql/subqueries.py:431 ms1.9%
DeleteQuery.do_querydjango/db/models/sql/subqueries.py:251 ms1.9%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16241 ms1.9%
CursorWrapper.executedjango/db/backends/utils.py:791 ms1.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms1.9%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms1.9%
Cursor.executepsycopg/cursor.py:1131 ms1.9%
Connection.waitpsycopg/connection.py:4951 ms1.9%
logindjango/contrib/auth/__init__.py:1751 ms1.9%
SessionBase.__contains__django/contrib/sessions/backends/base.py:521 ms1.9%
SessionBase._get_sessiondjango/contrib/sessions/backends/base.py:2511 ms1.9%
SessionStore.loaddjango/contrib/sessions/backends/db.py:551 ms1.9%
SessionStore._get_session_from_dbdjango/contrib/sessions/backends/db.py:341 ms1.9%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:871 ms1.9%
QuerySet.getdjango/db/models/query.py:6351 ms1.9%
QuerySet.__len__django/db/models/query.py:3721 ms1.9%
QuerySet._fetch_alldjango/db/models/query.py:20001 ms1.9%
ModelIterable.__iter__django/db/models/query.py:951 ms1.9%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16241 ms1.9%
CursorWrapper.executedjango/db/backends/utils.py:791 ms1.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms1.9%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms1.9%
Cursor.executepsycopg/cursor.py:1131 ms1.9%
Connection.waitpsycopg/connection.py:4951 ms1.9%
ClientMixin._logindjango/test/client.py:8831 ms1.9%
SessionStore.savedjango/contrib/sessions/backends/db.py:1261 ms1.9%
Atomic.__enter__django/db/transaction.py:2111 ms1.9%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:261 ms1.9%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4001 ms1.9%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3671 ms1.9%
CursorWrapper.executedjango/db/backends/utils.py:791 ms1.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms1.9%
CursorWrapper._executedjango/db/backends/utils.py:1031 ms1.9%
Cursor.executepsycopg/cursor.py:1131 ms1.9%
Connection.waitpsycopg/connection.py:4951 ms1.9%
ProjectTestsPage.test_not_logged_inapps/projects/tests.py:342 self.client.logout()2 ms3.7%
ClientMixin.logoutdjango/test/client.py:9232 ms3.7%
get_userdjango/contrib/auth/__init__.py:3111 ms1.9%
_get_user_session_keydjango/contrib/auth/__init__.py:951 ms1.9%
SessionBase.__getitem__django/contrib/sessions/backends/base.py:551 ms1.9%
SessionBase._get_sessiondjango/contrib/sessions/backends/base.py:2511 ms1.9%
SessionStore.loaddjango/contrib/sessions/backends/db.py:551 ms1.9%
SessionStore._get_session_from_dbdjango/contrib/sessions/backends/db.py:341 ms1.9%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:871 ms1.9%
QuerySet.getdjango/db/models/query.py:6251 ms1.9%
QuerySet.filterdjango/db/models/query.py:15421 ms1.9%
QuerySet._filter_or_excludedjango/db/models/query.py:15601 ms1.9%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:15701 ms1.9%
Query.add_qdjango/db/models/sql/query.py:16711 ms1.9%
Query._add_qdjango/db/models/sql/query.py:17031 ms1.9%
Query.build_filterdjango/db/models/sql/query.py:16131 ms1.9%
Query.build_lookupdjango/db/models/sql/query.py:14401 ms1.9%
get_userdjango/contrib/auth/__init__.py:3181 ms1.9%
ModelBackend.get_userdjango/contrib/auth/backends.py:2321 ms1.9%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:871 ms1.9%
QuerySet.getdjango/db/models/query.py:6351 ms1.9%
QuerySet.__len__django/db/models/query.py:3721 ms1.9%
QuerySet._fetch_alldjango/db/models/query.py:20001 ms1.9%
ModelIterable.__iter__django/db/models/query.py:951 ms1.9%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16241 ms1.9%
CursorWrapper.executedjango/db/backends/utils.py:791 ms1.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms1.9%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms1.9%
Cursor.executepsycopg/cursor.py:1131 ms1.9%
Connection.waitpsycopg/connection.py:4951 ms1.9%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()1 ms1.9%
TestCase._fixture_teardowndjango/test/testcases.py:14971 ms1.9%
TestCase._rollback_atomicsdjango/test/testcases.py:14051 ms1.9%
Atomic.__exit__django/db/transaction.py:2831 ms1.9%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:261 ms1.9%
BaseDatabaseWrapper.savepoint_rollbackdjango/db/backends/base/base.py:4131 ms1.9%
BaseDatabaseWrapper._savepoint_rollbackdjango/db/backends/base/base.py:3711 ms1.9%
CursorWrapper.executedjango/db/backends/utils.py:791 ms1.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms1.9%
CursorWrapper._executedjango/db/backends/utils.py:1031 ms1.9%
Cursor.executepsycopg/cursor.py:1131 ms1.9%
Connection.waitpsycopg/connection.py:4951 ms1.9%
Estimated from 57 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

apps/projects/urls.py:49
project = get_object_or_404(
find_project · Database
14 ms
apps/projects/tests.py:343
response = self.client.get(self.url)
ProjectTestsPage.test_not_logged_in · Libraries
12 ms
ft/db/postgresql/base.py:39
return super().get_new_connection(conn_params)
DatabaseWrapper.get_new_connection · Database
12 ms
apps/projects/tests.py:338
self.client.force_login(self.user)
ProjectTestsPage.setUp · Database
9 ms
apps/orgs/models.py:46
while slug in reserved or taken.filter(slug=slug).exists():
unique_slug · Database
3 ms
apps/projects/tests.py:342
self.client.logout()
ProjectTestsPage.test_not_logged_in · Database
2 ms
apps/projects/tests.py:332
cls.user = User.objects.create_user("testuser")
ProjectTestsPage.setUpTestData · Database
2 ms
apps/projects/testing.py:76
membership, _ = Membership.objects.get_or_create(
add_member · Database
2 ms
apps/projects/models.py:240
existing = dict(self.filter(project_id=project_id, name__in=names).values_list("name", "slug"))
TestManager.slugs_for · Database
2 ms
apps/projects/testing.py:61
organization = Organization.objects.create(
make_project · Database
1 ms

Fixtures

Exact setup time
_unittest_setUpClass_fixture_ProjectTestsPage class 24 ms
_django_setup_unittest class 0.22 ms
_dj_autoclear_mailbox function 0.07 ms
_django_db_marker function 0.04 ms
_template_string_if_invalid_marker function 0.04 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

37 queries · 14 ms
No repeated queries.

Biggest pieces of work

call test body
apps/projects/tests.py:343
28 ms
setup setUpClass
django/test/testcases.py:1423
25 ms
call setUp
apps/projects/tests.py:338
9 ms
call pytest internals 2 ms
call _post_teardown
django/test/testcases.py:1240
1 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
11 hours ago CI github-actions:test passed 66 ms cb18ed3 main Profile
3 days, 21 hours ago CI github-actions:test passed 60 ms 9bd5864 main Profile
5 days, 21 hours ago CI github-actions:test passed 43 ms 19dac9b main Profile
6 days, 21 hours ago CI github-actions:test passed 66 ms e141198 main Profile
2 weeks, 4 days ago CI github-actions:test passed 39 ms 46ec2aa main Profile
3 weeks ago CI github-actions:test passed 65 ms afde85b main Profile
3 weeks ago CI github-actions:test passed 60 ms fe29f9d main Profile
3 weeks ago CI github-actions:test passed 93 ms 044719a main Profile
3 weeks, 1 day ago CI github-actions:test passed 45 ms b3fedae main Profile
3 weeks, 4 days ago CI github-actions:test passed 69 ms 43c4eda main Profile
3 weeks, 5 days ago CI github-actions:test passed 68 ms 9caa567 main Profile
3 weeks, 5 days ago CI github-actions:test passed 69 ms ec75501 main Profile
3 weeks, 6 days ago CI github-actions:test passed 78 ms d2c12e5 main Profile
3 weeks, 6 days ago CI github-actions:test passed 40 ms 0b902f6 main Profile
3 weeks, 6 days ago CI github-actions:test passed 69 ms 78a4357 main Profile