CI
github-actions:test
15 runs
Average
87 ms
median 62 ms
max 195 ms
max 195 ms
Phases
Setup 0.64 ms
Call 86 ms
Teardown 0.19 ms
Categories
Database 24 ms
Other (Libraries, Imports, Unsampled, Logging, ...) 63 ms
32 database queries per run
Needs 379 KB of memory (max 752 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 2 weeks ago ·
open run
setup0.61 ms0.4%
call155 ms99.5%
AccessTest.test_others_dontapps/orgs/tests.py:70 self.assertEqual(self.client.get(self.project.url()).status_code, 404)144 ms92.3%
Client.getdjango/test/client.py:1124143 ms91.6%
RequestFactory.getdjango/test/client.py:475143 ms91.6%
RequestFactory.genericdjango/test/client.py:671143 ms91.6%
Client.requestdjango/test/client.py:1082143 ms91.6%
ClientHandler.__call__django/test/client.py:173138 ms88.7%
BaseHandler.load_middlewaredjango/core/handlers/base.py:62138 ms88.7%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:104138 ms88.7%
WhiteNoise.add_fileswhitenoise/base.py:108138 ms88.7%
WhiteNoise.update_files_dictionarywhitenoise/base.py:120137 ms88.0%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:131136 ms87.3%
WhiteNoise.get_static_filewhitenoise/base.py:208135 ms86.5%
StaticFile.__init__whitenoise/responders.py:77131 ms84.4%
StaticFile.get_alternativeswhitenoise/responders.py:198131 ms84.4%
StaticFile.get_alternatives.<locals>.<lambda>whitenoise/responders.py:198131 ms84.4%
<GC>~131 ms84.4%
StaticFile.__init__whitenoise/responders.py:742 ms1.4%
Headers.__getitem__<stdlib>/wsgiref/headers.py:-11 ms0.7%
StaticFile.__init__whitenoise/responders.py:731 ms0.7%
StaticFile.get_headerswhitenoise/responders.py:1691 ms0.7%
WhiteNoise.get_static_filewhitenoise/base.py:2051 ms0.7%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1151 ms0.7%
scantreewhitenoise/base.py:2621 ms0.7%
scantreewhitenoise/base.py:2621 ms0.7%
scantreewhitenoise/base.py:2621 ms0.7%
scantreewhitenoise/base.py:2621 ms0.7%
scantreewhitenoise/base.py:2621 ms0.7%
scantreewhitenoise/base.py:2641 ms0.7%
ClientHandler.__call__django/test/client.py:1864 ms2.9%
BaseHandler.get_responsedjango/core/handlers/base.py:1414 ms2.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:554 ms2.9%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1304 ms2.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:554 ms2.9%
MiddlewareMixin.__call__django/utils/deprecation.py:3094 ms2.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:554 ms2.9%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:1234 ms2.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:554 ms2.9%
MiddlewareMixin.__call__django/utils/deprecation.py:3094 ms2.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:554 ms2.9%
MiddlewareMixin.__call__django/utils/deprecation.py:3093 ms2.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms2.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3093 ms2.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms2.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3093 ms2.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms2.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3093 ms2.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms2.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3093 ms2.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms2.2%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:343 ms2.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms2.2%
BaseHandler._get_responsedjango/core/handlers/base.py:1983 ms2.2%
project_dashboardapps/projects/urls.py:1323 ms2.2%
find_projectapps/projects/urls.py:522 ms1.4%
can_viewapps/projects/urls.py:332 ms1.4%
can_manage_projectapps/projects/urls.py:38 if not user.is_authenticated:1 ms0.7%
new_method_proxy.<locals>.innerdjango/utils/functional.py:2511 ms0.7%
SimpleLazyObject._setupdjango/utils/functional.py:4041 ms0.7%
AuthenticationMiddleware.process_request.<locals>.<lambda>django/contrib/auth/middleware.py:401 ms0.7%
get_userdjango/contrib/auth/middleware.py:201 ms0.7%
get_userdjango/contrib/auth/__init__.py:3111 ms0.7%
_get_user_session_keydjango/contrib/auth/__init__.py:951 ms0.7%
SessionBase.__getitem__django/contrib/sessions/backends/base.py:551 ms0.7%
SessionBase._get_sessiondjango/contrib/sessions/backends/base.py:2511 ms0.7%
SessionStore.loaddjango/contrib/sessions/backends/db.py:551 ms0.7%
SessionStore._get_session_from_dbdjango/contrib/sessions/backends/db.py:341 ms0.7%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:871 ms0.7%
QuerySet.getdjango/db/models/query.py:6251 ms0.7%
QuerySet.filterdjango/db/models/query.py:15421 ms0.7%
QuerySet._filter_or_excludedjango/db/models/query.py:15601 ms0.7%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:15701 ms0.7%
Query.add_qdjango/db/models/sql/query.py:16711 ms0.7%
Query._add_qdjango/db/models/sql/query.py:17141 ms0.7%
can_manage_projectapps/projects/urls.py:40 return user.is_superuser or project.organization.membership_set.filter(user=user).exists()1 ms0.7%
QuerySet.existsdjango/db/models/query.py:13371 ms0.7%
Query.has_resultsdjango/db/models/sql/query.py:6811 ms0.7%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15921 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16241 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:791 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms0.7%
Cursor.executepsycopg/cursor.py:1131 ms0.7%
Connection.waitpsycopg/connection.py:4951 ms0.7%
find_projectapps/projects/urls.py:49 project = get_object_or_404(1 ms0.7%
get_object_or_404django/shortcuts.py:901 ms0.7%
QuerySet.getdjango/db/models/query.py:6351 ms0.7%
QuerySet.__len__django/db/models/query.py:3721 ms0.7%
QuerySet._fetch_alldjango/db/models/query.py:20001 ms0.7%
ModelIterable.__iter__django/db/models/query.py:951 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16241 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:791 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms0.7%
Cursor.executepsycopg/cursor.py:1131 ms0.7%
Connection.waitpsycopg/connection.py:4951 ms0.7%
MiddlewareMixin.__call__django/utils/deprecation.py:3081 ms0.7%
CommonMiddleware.process_requestdjango/middleware/common.py:481 ms0.7%
HttpRequest.get_hostdjango/http/request.py:1951 ms0.7%
validate_hostdjango/http/request.py:8411 ms0.7%
Project.urlapps/projects/models.py:59 return reverse(name, args=[self.organization.slug, self.slug, *args])1 ms0.7%
reversedjango/urls/base.py:981 ms0.7%
URLResolver._reverse_with_prefixdjango/urls/resolvers.py:8031 ms0.7%
AccessTest.test_others_dontapps/orgs/tests.py:69 self.client.force_login(self.stranger)4 ms2.9%
ClientMixin.force_logindjango/test/client.py:8554 ms2.9%
ClientMixin._logindjango/test/client.py:8813 ms2.2%
logindjango/contrib/auth/__init__.py:1872 ms1.4%
SessionBase.cycle_keydjango/contrib/sessions/backends/base.py:4341 ms0.7%
SessionStore.createdjango/contrib/sessions/backends/db.py:701 ms0.7%
SessionBase._get_new_session_keydjango/contrib/sessions/backends/base.py:1981 ms0.7%
SessionStore.existsdjango/contrib/sessions/backends/db.py:631 ms0.7%
QuerySet.existsdjango/db/models/query.py:13371 ms0.7%
Query.has_resultsdjango/db/models/sql/query.py:6811 ms0.7%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15921 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16241 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:791 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms0.7%
Cursor.executepsycopg/cursor.py:1131 ms0.7%
Connection.waitpsycopg/connection.py:4951 ms0.7%
SessionBase.cycle_keydjango/contrib/sessions/backends/base.py:4371 ms0.7%
SessionStore.deletedjango/contrib/sessions/backends/db.py:1751 ms0.7%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:871 ms0.7%
QuerySet.getdjango/db/models/query.py:6351 ms0.7%
QuerySet.__len__django/db/models/query.py:3721 ms0.7%
QuerySet._fetch_alldjango/db/models/query.py:20001 ms0.7%
ModelIterable.__iter__django/db/models/query.py:951 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16241 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:791 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms0.7%
Cursor.executepsycopg/cursor.py:1131 ms0.7%
Connection.waitpsycopg/connection.py:4951 ms0.7%
logindjango/contrib/auth/__init__.py:1971 ms0.7%
Signal.senddjango/dispatch/dispatcher.py:2091 ms0.7%
update_last_logindjango/contrib/auth/models.py:241 ms0.7%
AbstractBaseUser.savedjango/contrib/auth/base_user.py:621 ms0.7%
Model.savedjango/db/models/base.py:8741 ms0.7%
Model.save_basedjango/db/models/base.py:9661 ms0.7%
Model._save_tabledjango/db/models/base.py:11101 ms0.7%
Model._do_updatedjango/db/models/base.py:12111 ms0.7%
QuerySet._updatedjango/db/models/query.py:13271 ms0.7%
SQLUpdateCompiler.execute_returning_sqldjango/db/models/sql/compiler.py:21401 ms0.7%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21111 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16241 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:791 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms0.7%
Cursor.executepsycopg/cursor.py:1131 ms0.7%
Connection.waitpsycopg/connection.py:4951 ms0.7%
ClientMixin._logindjango/test/client.py:8761 ms0.7%
ClientMixin.sessiondjango/test/client.py:8121 ms0.7%
SessionStore.savedjango/contrib/sessions/backends/db.py:1211 ms0.7%
SessionStore.createdjango/contrib/sessions/backends/db.py:701 ms0.7%
SessionBase._get_new_session_keydjango/contrib/sessions/backends/base.py:1981 ms0.7%
SessionStore.existsdjango/contrib/sessions/backends/db.py:631 ms0.7%
QuerySet.existsdjango/db/models/query.py:13371 ms0.7%
Query.has_resultsdjango/db/models/sql/query.py:6811 ms0.7%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15921 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16241 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:791 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms0.7%
Cursor.executepsycopg/cursor.py:1131 ms0.7%
Connection.waitpsycopg/connection.py:4951 ms0.7%
AccessTest.test_others_dontapps/orgs/tests.py:71 self.assertEqual(self.client.get(reverse("org_projects", args=["acme"])).status_code, 404)3 ms2.2%
Client.getdjango/test/client.py:11243 ms2.2%
RequestFactory.getdjango/test/client.py:4753 ms2.2%
RequestFactory.genericdjango/test/client.py:6713 ms2.2%
Client.requestdjango/test/client.py:10823 ms2.2%
ClientHandler.__call__django/test/client.py:1863 ms2.2%
BaseHandler.get_responsedjango/core/handlers/base.py:1413 ms2.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms2.2%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1303 ms2.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms2.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3093 ms2.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms2.2%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:1233 ms2.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms2.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3093 ms2.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms2.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3093 ms2.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms2.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3093 ms2.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms2.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3093 ms2.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms2.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3093 ms2.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms2.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3093 ms2.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms2.2%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:343 ms2.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms2.2%
BaseHandler._get_responsedjango/core/handlers/base.py:1983 ms2.2%
user_passes_test.<locals>.decorator.<locals>._view_wrapperdjango/contrib/auth/decorators.py:562 ms1.4%
login_required.<locals>.<lambda>django/contrib/auth/decorators.py:792 ms1.4%
new_method_proxy.<locals>.innerdjango/utils/functional.py:2512 ms1.4%
SimpleLazyObject._setupdjango/utils/functional.py:4042 ms1.4%
AuthenticationMiddleware.process_request.<locals>.<lambda>django/contrib/auth/middleware.py:402 ms1.4%
get_userdjango/contrib/auth/middleware.py:202 ms1.4%
get_userdjango/contrib/auth/__init__.py:3111 ms0.7%
_get_user_session_keydjango/contrib/auth/__init__.py:951 ms0.7%
SessionBase.__getitem__django/contrib/sessions/backends/base.py:551 ms0.7%
SessionBase._get_sessiondjango/contrib/sessions/backends/base.py:2511 ms0.7%
SessionStore.loaddjango/contrib/sessions/backends/db.py:551 ms0.7%
SessionStore._get_session_from_dbdjango/contrib/sessions/backends/db.py:341 ms0.7%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:871 ms0.7%
QuerySet.getdjango/db/models/query.py:6251 ms0.7%
QuerySet.filterdjango/db/models/query.py:15421 ms0.7%
QuerySet._filter_or_excludedjango/db/models/query.py:15601 ms0.7%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:15701 ms0.7%
Query.add_qdjango/db/models/sql/query.py:16711 ms0.7%
Query._add_qdjango/db/models/sql/query.py:17031 ms0.7%
Query.build_filterdjango/db/models/sql/query.py:15771 ms0.7%
Query.setup_joinsdjango/db/models/sql/query.py:19281 ms0.7%
get_userdjango/contrib/auth/__init__.py:3181 ms0.7%
ModelBackend.get_userdjango/contrib/auth/backends.py:2321 ms0.7%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:871 ms0.7%
QuerySet.getdjango/db/models/query.py:6351 ms0.7%
QuerySet.__len__django/db/models/query.py:3721 ms0.7%
QuerySet._fetch_alldjango/db/models/query.py:20001 ms0.7%
ModelIterable.__iter__django/db/models/query.py:951 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16241 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:791 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms0.7%
Cursor.executepsycopg/cursor.py:1131 ms0.7%
Connection.waitpsycopg/connection.py:4951 ms0.7%
user_passes_test.<locals>.decorator.<locals>._view_wrapperdjango/contrib/auth/decorators.py:591 ms0.7%
org_projectsapps/orgs/views.py:841 ms0.7%
member_organizationapps/orgs/views.py:621 ms0.7%
Organization.is_memberapps/orgs/models.py:62 return user.is_authenticated and self.membership_set.filter(user=user).exists()1 ms0.7%
QuerySet.existsdjango/db/models/query.py:13371 ms0.7%
Query.has_resultsdjango/db/models/sql/query.py:6791 ms0.7%
Query.existsdjango/db/models/sql/query.py:6751 ms0.7%
AccessTest.test_others_dontapps/orgs/tests.py:72 self.assertEqual(self.client.get(reverse("org_members", args=["acme"])).status_code, 404)2 ms1.4%
Client.getdjango/test/client.py:11242 ms1.4%
RequestFactory.getdjango/test/client.py:4752 ms1.4%
RequestFactory.genericdjango/test/client.py:6712 ms1.4%
Client.requestdjango/test/client.py:10822 ms1.4%
ClientHandler.__call__django/test/client.py:1862 ms1.4%
BaseHandler.get_responsedjango/core/handlers/base.py:1412 ms1.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms1.4%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1302 ms1.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms1.4%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms1.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:551 ms0.7%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:1231 ms0.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:551 ms0.7%
MiddlewareMixin.__call__django/utils/deprecation.py:3091 ms0.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:551 ms0.7%
MiddlewareMixin.__call__django/utils/deprecation.py:3091 ms0.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:551 ms0.7%
MiddlewareMixin.__call__django/utils/deprecation.py:3091 ms0.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:551 ms0.7%
MiddlewareMixin.__call__django/utils/deprecation.py:3091 ms0.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:551 ms0.7%
MiddlewareMixin.__call__django/utils/deprecation.py:3091 ms0.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:551 ms0.7%
MiddlewareMixin.__call__django/utils/deprecation.py:3091 ms0.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:551 ms0.7%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:341 ms0.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:551 ms0.7%
BaseHandler._get_responsedjango/core/handlers/base.py:1981 ms0.7%
user_passes_test.<locals>.decorator.<locals>._view_wrapperdjango/contrib/auth/decorators.py:561 ms0.7%
login_required.<locals>.<lambda>django/contrib/auth/decorators.py:791 ms0.7%
new_method_proxy.<locals>.innerdjango/utils/functional.py:2511 ms0.7%
SimpleLazyObject._setupdjango/utils/functional.py:4041 ms0.7%
AuthenticationMiddleware.process_request.<locals>.<lambda>django/contrib/auth/middleware.py:401 ms0.7%
get_userdjango/contrib/auth/middleware.py:201 ms0.7%
get_userdjango/contrib/auth/__init__.py:3181 ms0.7%
ModelBackend.get_userdjango/contrib/auth/backends.py:2321 ms0.7%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:871 ms0.7%
QuerySet.getdjango/db/models/query.py:6351 ms0.7%
QuerySet.__len__django/db/models/query.py:3721 ms0.7%
QuerySet._fetch_alldjango/db/models/query.py:20001 ms0.7%
ModelIterable.__iter__django/db/models/query.py:951 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16221 ms0.7%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:261 ms0.7%
BaseDatabaseWrapper.cursordjango/db/backends/base/base.py:3201 ms0.7%
BaseDatabaseWrapper._cursordjango/db/backends/base/base.py:2981 ms0.7%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:261 ms0.7%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()1 ms0.7%
TestCase._fixture_teardowndjango/test/testcases.py:14941 ms0.7%
TestCase._should_check_constraintsdjango/test/testcases.py:15031 ms0.7%
DatabaseWrapper.is_usabledjango/db/backends/postgresql/base.py:4921 ms0.7%
Cursor.executepsycopg/cursor.py:1131 ms0.7%
Connection.waitpsycopg/connection.py:4951 ms0.7%
BaseCursor._execute_genpsycopg/_cursor_base.py:2061 ms0.7%
BaseCursor._convert_querypsycopg/_cursor_base.py:4651 ms0.7%
Estimated from 139 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
apps/orgs/tests.py:70
self.assertEqual(self.client.get(self.project.url()).status_code, 404)
AccessTest.test_others_dont
· Libraries
|
139 ms |
|
apps/orgs/tests.py:69
self.client.force_login(self.stranger)
AccessTest.test_others_dont
· Database
|
4 ms |
|
apps/orgs/tests.py:71
self.assertEqual(self.client.get(reverse("org_projects", args=["acme"])).status_code, 404)
AccessTest.test_others_dont
· Database
|
2 ms |
|
apps/orgs/tests.py:72
self.assertEqual(self.client.get(reverse("org_members", args=["acme"])).status_code, 404)
AccessTest.test_others_dont
· Libraries
|
2 ms |
|
apps/projects/models.py:59
return reverse(name, args=[self.organization.slug, self.slug, *args])
Project.url
· Libraries
|
1 ms |
|
apps/projects/urls.py:49
project = get_object_or_404(
find_project
· Database
|
1 ms |
|
apps/projects/urls.py:38
if not user.is_authenticated:
can_manage_project
· Database
|
1 ms |
|
apps/projects/urls.py:40
return user.is_superuser or project.organization.membership_set.filter(user=user).exists()
can_manage_project
· Database
|
1 ms |
|
apps/orgs/models.py:62
return user.is_authenticated and self.membership_set.filter(user=user).exists()
Organization.is_member
· Database
|
1 ms |
Fixtures
Exact setup time| _live_server_helper function | 0.07 ms |
| _dj_autoclear_mailbox function | 0.05 ms |
| _template_string_if_invalid_marker function | 0.05 ms |
| _django_db_marker 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
32 queries · 7 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"."user_id" = %s) LIMIT ?
Biggest pieces of work
|
call test body
apps/orgs/tests.py:70
|
154 ms |
|
call _post_teardown
django/test/testcases.py:1240
|
1 ms |
|
setup __init__
__init__:-1
|
0.61 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 | 156 ms | Profile |
| 2 weeks, 4 days ago | CI github-actions:test | passed | 195 ms | Profile |
| 2 weeks, 6 days ago | CI github-actions:test | passed | 152 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 192 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 30 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 61 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 50 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 72 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 34 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 64 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 62 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 60 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 63 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 51 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 59 ms | Profile |