Tests / apps/projects/tests.py
ProjectTestsPage::test_project_with_no_tests
First seen 2 years, 9 months ago in d87c7a8
CI
github-actions:test
5 runs
Average
73 ms
median 76 ms
max 85 ms
max 85 ms
Phases
Setup 0.74 ms
Call 72 ms
Teardown 0.17 ms
Categories
Database 31 ms
App code 0.34 ms
Other (Libraries, Templates, Unsampled, pytest) 42 ms
42 database queries per run
Needs 290 KB of memory (max 432 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 18 minutes ago ·
open run
call78 ms98.7%
ProjectTestsPage.test_project_with_no_testsapps/projects/tests.py:354 response = self.client.get(project_with_no_tests.url("project_tests"))55 ms70.2%
Client.getdjango/test/client.py:112455 ms70.2%
RequestFactory.getdjango/test/client.py:47555 ms70.2%
RequestFactory.genericdjango/test/client.py:67155 ms70.2%
Client.requestdjango/test/client.py:108255 ms70.2%
ClientHandler.__call__django/test/client.py:18633 ms41.7%
BaseHandler.get_responsedjango/core/handlers/base.py:14133 ms41.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5533 ms41.7%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:13033 ms41.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5533 ms41.7%
MiddlewareMixin.__call__django/utils/deprecation.py:30933 ms41.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5533 ms41.7%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12333 ms41.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5533 ms41.7%
MiddlewareMixin.__call__django/utils/deprecation.py:30931 ms39.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5531 ms39.5%
MiddlewareMixin.__call__django/utils/deprecation.py:30931 ms39.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5531 ms39.5%
MiddlewareMixin.__call__django/utils/deprecation.py:30931 ms39.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5531 ms39.5%
MiddlewareMixin.__call__django/utils/deprecation.py:30931 ms39.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5531 ms39.5%
MiddlewareMixin.__call__django/utils/deprecation.py:30931 ms39.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5531 ms39.5%
MiddlewareMixin.__call__django/utils/deprecation.py:30931 ms39.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5531 ms39.5%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:3431 ms39.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5531 ms39.5%
BaseHandler._get_responsedjango/core/handlers/base.py:19831 ms39.5%
project_testsapps/projects/urls.py:259 return render(request, "project_tests.html", context)17 ms21.9%
renderdjango/shortcuts.py:2517 ms21.9%
render_to_stringdjango/template/loader.py:6210 ms13.2%
Template.renderdjango/template/backends/django.py:10710 ms13.2%
Template.renderdjango/template/base.py:17410 ms13.2%
instrumented_test_renderdjango/test/utils.py:11410 ms13.2%
NodeList.renderdjango/template/base.py:109110 ms13.2%
Node.render_annotateddjango/template/base.py:105210 ms13.2%
ExtendsNode.renderdjango/template/loader_tags.py:16010 ms13.2%
instrumented_test_renderdjango/test/utils.py:11410 ms13.2%
NodeList.renderdjango/template/base.py:109110 ms13.2%
Node.render_annotateddjango/template/base.py:105210 ms13.2%
ExtendsNode.renderdjango/template/loader_tags.py:1529 ms11.0%
instrumented_test_renderdjango/test/utils.py:1147 ms8.8%
NodeList.renderdjango/template/base.py:10917 ms8.8%
Node.render_annotateddjango/template/base.py:10527 ms8.8%
BlockNode.renderdjango/template/loader_tags.py:667 ms8.8%
NodeList.renderdjango/template/base.py:10917 ms8.8%
Node.render_annotateddjango/template/base.py:10527 ms8.8%
BlockNode.renderdjango/template/loader_tags.py:667 ms8.8%
NodeList.renderdjango/template/base.py:10917 ms8.8%
Node.render_annotateddjango/template/base.py:10527 ms8.8%
IfNode.renderdjango/template/defaulttags.py:3337 ms8.8%
NodeList.renderdjango/template/base.py:10917 ms8.8%
Node.render_annotateddjango/template/base.py:10527 ms8.8%
SimpleNode.renderdjango/template/library.py:3257 ms8.8%
heroicon_outlineheroicons/templatetags/heroicons.py:237 ms8.8%
_render_iconheroicons/templatetags/heroicons.py:397 ms8.8%
_render_iconheroicons/__init__.py:457 ms8.8%
_load_iconheroicons/__init__.py:187 ms8.8%
ZipFile.__init__<stdlib>/zipfile/__init__.py:15057 ms8.8%
ZipFile._RealGetContents<stdlib>/zipfile/__init__.py:16063 ms4.4%
Codec.decode<stdlib>/encodings/cp437.py:142 ms2.2%
<GC>~2 ms2.2%
ZipFile._RealGetContents<stdlib>/zipfile/__init__.py:16132 ms2.2%
ZipFile._RealGetContents<stdlib>/zipfile/__init__.py:15982 ms2.2%
NodeList.get_nodes_by_typedjango/template/base.py:10972 ms2.2%
ExtendsNode.renderdjango/template/loader_tags.py:1602 ms2.2%
instrumented_test_renderdjango/test/utils.py:1142 ms2.2%
NodeList.renderdjango/template/base.py:10912 ms2.2%
Node.render_annotateddjango/template/base.py:10522 ms2.2%
BlockNode.renderdjango/template/loader_tags.py:662 ms2.2%
NodeList.renderdjango/template/base.py:10912 ms2.2%
Node.render_annotateddjango/template/base.py:10522 ms2.2%
BlockNode.renderdjango/template/loader_tags.py:662 ms2.2%
NodeList.renderdjango/template/base.py:10912 ms2.2%
Node.render_annotateddjango/template/base.py:10522 ms2.2%
IfNode.renderdjango/template/defaulttags.py:3332 ms2.2%
NodeList.renderdjango/template/base.py:10912 ms2.2%
Node.render_annotateddjango/template/base.py:10522 ms2.2%
IfNode.renderdjango/template/defaulttags.py:3322 ms2.2%
Page.__len__django/core/paginator.py:3192 ms2.2%
QuerySet.__len__django/db/models/query.py:3722 ms2.2%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms2.2%
ValuesIterable.__iter__django/db/models/query.py:2222 ms2.2%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15732 ms2.2%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16112 ms2.2%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7672 ms2.2%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:862 ms2.2%
SQLCompiler.setup_querydjango/db/models/sql/compiler.py:752 ms2.2%
SQLCompiler.get_selectdjango/db/models/sql/compiler.py:3172 ms2.2%
SQLCompiler.compiledjango/db/models/sql/compiler.py:5782 ms2.2%
Query.as_sqldjango/db/models/sql/query.py:13182 ms2.2%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7672 ms2.2%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:932 ms2.2%
SQLCompiler.get_group_bydjango/db/models/sql/compiler.py:1592 ms2.2%
render_to_stringdjango/template/loader.py:615 ms6.6%
get_templatedjango/template/loader.py:155 ms6.6%
DjangoTemplates.get_templatedjango/template/backends/django.py:795 ms6.6%
Engine.get_templatedjango/template/engine.py:1865 ms6.6%
Engine.find_templatedjango/template/engine.py:1595 ms6.6%
Loader.get_templatedjango/template/loaders/cached.py:575 ms6.6%
Loader.get_templatedjango/template/loaders/base.py:285 ms6.6%
__init____init__:-15 ms6.6%
Template.__init__django/template/base.py:1575 ms6.6%
Template.compile_nodelistdjango/template/base.py:1995 ms6.6%
Parser.parsedjango/template/base.py:5835 ms6.6%
do_extendsdjango/template/loader_tags.py:3075 ms6.6%
Parser.parsedjango/template/base.py:5835 ms6.6%
do_blockdjango/template/loader_tags.py:2355 ms6.6%
Parser.parsedjango/template/base.py:5833 ms4.4%
do_ifdjango/template/defaulttags.py:9942 ms2.2%
Parser.parsedjango/template/base.py:5832 ms2.2%
do_fordjango/template/defaulttags.py:8942 ms2.2%
Parser.parsedjango/template/base.py:5542 ms2.2%
Parser.compile_filterdjango/template/base.py:6762 ms2.2%
do_ifdjango/template/defaulttags.py:10022 ms2.2%
Parser.parsedjango/template/base.py:5832 ms2.2%
do_ifdjango/template/defaulttags.py:9942 ms2.2%
Parser.parsedjango/template/base.py:5832 ms2.2%
do_fordjango/template/defaulttags.py:8942 ms2.2%
Parser.parsedjango/template/base.py:5542 ms2.2%
Parser.compile_filterdjango/template/base.py:6762 ms2.2%
__init____init__:-12 ms2.2%
FilterExpression.__init__django/template/base.py:7722 ms2.2%
FilterExpression.args_checkdjango/template/base.py:8302 ms2.2%
Parser.parsedjango/template/base.py:5542 ms2.2%
project_testsapps/projects/urls.py:1807 ms8.8%
shellapps/projects/urls.py:71 return org_shell(request, project.organization if project else None, section) | {3 ms4.4%
org_shellapps/orgs/views.py:33 organizations = [] if user.is_anonymous else list(Organization.objects.filter(membership__user=user))2 ms2.2%
QuerySet.__iter__django/db/models/query.py:3902 ms2.2%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms2.2%
ModelIterable.__iter__django/db/models/query.py:952 ms2.2%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms2.2%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.2%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms2.2%
Cursor.executepsycopg/cursor.py:1132 ms2.2%
Connection.waitpsycopg/connection.py:4952 ms2.2%
org_shellapps/orgs/views.py:40 "org_projects": list(organization.project_set.order_by("name")) if member else [],2 ms2.2%
QuerySet.__iter__django/db/models/query.py:3902 ms2.2%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms2.2%
ModelIterable.__iter__django/db/models/query.py:952 ms2.2%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms2.2%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.2%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms2.2%
Cursor.executepsycopg/cursor.py:1132 ms2.2%
Connection.waitpsycopg/connection.py:4952 ms2.2%
shellapps/projects/urls.py:732 ms2.2%
can_manageapps/projects/urls.py:442 ms2.2%
can_manage_projectapps/projects/urls.py:40 return user.is_superuser or project.organization.membership_set.filter(user=user).exists()2 ms2.2%
QuerySet.existsdjango/db/models/query.py:13372 ms2.2%
Query.has_resultsdjango/db/models/sql/query.py:6812 ms2.2%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15922 ms2.2%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms2.2%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.2%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms2.2%
Cursor.executepsycopg/cursor.py:1132 ms2.2%
Connection.waitpsycopg/connection.py:4952 ms2.2%
filtersapps/projects/urls.py:80 environments = list(Environment.objects.filter(project=project).order_by("kind", "name"))2 ms2.2%
QuerySet.__iter__django/db/models/query.py:3902 ms2.2%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms2.2%
ModelIterable.__iter__django/db/models/query.py:952 ms2.2%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms2.2%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.2%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms2.2%
Cursor.executepsycopg/cursor.py:1132 ms2.2%
Connection.waitpsycopg/connection.py:4952 ms2.2%
project_testsapps/projects/urls.py:1773 ms4.4%
find_projectapps/projects/urls.py:523 ms4.4%
can_viewapps/projects/urls.py:333 ms4.4%
can_manage_projectapps/projects/urls.py:38 if not user.is_authenticated:2 ms2.2%
new_method_proxy.<locals>.innerdjango/utils/functional.py:2512 ms2.2%
SimpleLazyObject._setupdjango/utils/functional.py:4042 ms2.2%
AuthenticationMiddleware.process_request.<locals>.<lambda>django/contrib/auth/middleware.py:402 ms2.2%
get_userdjango/contrib/auth/middleware.py:202 ms2.2%
get_userdjango/contrib/auth/__init__.py:3182 ms2.2%
ModelBackend.get_userdjango/contrib/auth/backends.py:2322 ms2.2%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms2.2%
QuerySet.getdjango/db/models/query.py:6352 ms2.2%
QuerySet.__len__django/db/models/query.py:3722 ms2.2%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms2.2%
ModelIterable.__iter__django/db/models/query.py:952 ms2.2%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms2.2%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.2%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms2.2%
Cursor.executepsycopg/cursor.py:1132 ms2.2%
Connection.waitpsycopg/connection.py:4952 ms2.2%
can_manage_projectapps/projects/urls.py:40 return user.is_superuser or project.organization.membership_set.filter(user=user).exists()2 ms2.2%
QuerySet.existsdjango/db/models/query.py:13372 ms2.2%
Query.has_resultsdjango/db/models/sql/query.py:6812 ms2.2%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15922 ms2.2%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms2.2%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.2%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms2.2%
Cursor.executepsycopg/cursor.py:1132 ms2.2%
Connection.waitpsycopg/connection.py:4952 ms2.2%
project_testsapps/projects/urls.py:209 profiled = TestPerf.objects.filter(project=project).exists()2 ms2.2%
QuerySet.existsdjango/db/models/query.py:13372 ms2.2%
Query.has_resultsdjango/db/models/sql/query.py:6812 ms2.2%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15922 ms2.2%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms2.2%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.2%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms2.2%
Cursor.executepsycopg/cursor.py:1132 ms2.2%
Connection.waitpsycopg/connection.py:4952 ms2.2%
project_testsapps/projects/urls.py:235 failed_runs.annotate(dummy_cnt=Value(1)).values("dummy_cnt").annotate(d=Max("date_run")).values("d")2 ms2.2%
QuerySet.annotatedjango/db/models/query.py:16992 ms2.2%
QuerySet._annotatedjango/db/models/query.py:17282 ms2.2%
QuerySet._chaindjango/db/models/query.py:19732 ms2.2%
QuerySet._clonedjango/db/models/query.py:19952 ms2.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3112 ms2.2%
SessionMiddleware.process_responsedjango/contrib/sessions/middleware.py:592 ms2.2%
SessionStore.savedjango/contrib/sessions/backends/db.py:1232 ms2.2%
SessionStore.create_model_instancedjango/contrib/sessions/backends/db.py:1022 ms2.2%
SessionBase.encodedjango/contrib/sessions/backends/base.py:1262 ms2.2%
dumpsdjango/core/signing.py:1512 ms2.2%
Signer.sign_objectdjango/core/signing.py:2392 ms2.2%
TimestampSigner.signdjango/core/signing.py:2612 ms2.2%
Signer.signdjango/core/signing.py:2052 ms2.2%
Signer.signaturedjango/core/signing.py:2022 ms2.2%
base64_hmacdjango/core/signing.py:1012 ms2.2%
ClientHandler.__call__django/test/client.py:17322 ms28.5%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6222 ms28.5%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10422 ms28.5%
WhiteNoise.add_fileswhitenoise/base.py:10822 ms28.5%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12016 ms19.7%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13116 ms19.7%
WhiteNoise.get_static_filewhitenoise/base.py:20814 ms17.5%
StaticFile.__init__whitenoise/responders.py:727 ms8.8%
StaticFile.get_file_statswhitenoise/responders.py:1617 ms8.8%
__init____init__:-17 ms8.8%
FileEntry.__init__whitenoise/responders.py:2607 ms8.8%
<GC>~7 ms8.8%
StaticFile.__init__whitenoise/responders.py:735 ms6.6%
StaticFile.get_headerswhitenoise/responders.py:1782 ms2.2%
StaticFile.get_headerswhitenoise/responders.py:1762 ms2.2%
formatdate<stdlib>/email/utils.py:2662 ms2.2%
StaticFile.get_headerswhitenoise/responders.py:1712 ms2.2%
StaticFile.__init__whitenoise/responders.py:772 ms2.2%
StaticFile.get_alternativeswhitenoise/responders.py:2002 ms2.2%
WhiteNoise.get_static_filewhitenoise/base.py:2032 ms2.2%
WhiteNoise.add_cache_headerswhitenoise/base.py:2242 ms2.2%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1762 ms2.2%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1972 ms2.2%
URLMixin.urldebug_toolbar/panels/staticfiles.py:202 ms2.2%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:2052 ms2.2%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:1842 ms2.2%
ManifestFilesMixin.stored_namedjango/contrib/staticfiles/storage.py:5182 ms2.2%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1157 ms8.8%
scantreewhitenoise/base.py:2623 ms4.4%
scantreewhitenoise/base.py:2623 ms4.4%
scantreewhitenoise/base.py:2643 ms4.4%
scantreewhitenoise/base.py:2612 ms2.2%
ProjectTestsPage.setUpapps/projects/tests.py:337 self.client.force_login(self.user)10 ms13.2%
ClientMixin.force_logindjango/test/client.py:85510 ms13.2%
ClientMixin._logindjango/test/client.py:8817 ms8.8%
logindjango/contrib/auth/__init__.py:1875 ms6.6%
SessionBase.cycle_keydjango/contrib/sessions/backends/base.py:4373 ms4.4%
SessionStore.deletedjango/contrib/sessions/backends/db.py:1753 ms4.4%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms2.2%
QuerySet.getdjango/db/models/query.py:6252 ms2.2%
Model.deletedjango/db/models/base.py:12982 ms2.2%
Collector.deletedjango/db/models/deletion.py:4522 ms2.2%
DeleteQuery.delete_batchdjango/db/models/sql/subqueries.py:432 ms2.2%
DeleteQuery.do_querydjango/db/models/sql/subqueries.py:252 ms2.2%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms2.2%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.2%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms2.2%
Cursor.executepsycopg/cursor.py:1132 ms2.2%
Connection.waitpsycopg/connection.py:4952 ms2.2%
SessionBase.cycle_keydjango/contrib/sessions/backends/base.py:4342 ms2.2%
SessionStore.createdjango/contrib/sessions/backends/db.py:742 ms2.2%
SessionStore.savedjango/contrib/sessions/backends/db.py:1262 ms2.2%
Atomic.__enter__django/db/transaction.py:2112 ms2.2%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms2.2%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4002 ms2.2%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3672 ms2.2%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.2%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms2.2%
Cursor.executepsycopg/cursor.py:1132 ms2.2%
Connection.waitpsycopg/connection.py:4952 ms2.2%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms2.2%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms2.2%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms2.2%
logindjango/contrib/auth/__init__.py:1972 ms2.2%
Signal.senddjango/dispatch/dispatcher.py:2092 ms2.2%
update_last_logindjango/contrib/auth/models.py:242 ms2.2%
AbstractBaseUser.savedjango/contrib/auth/base_user.py:622 ms2.2%
Model.savedjango/db/models/base.py:8742 ms2.2%
Model.save_basedjango/db/models/base.py:9662 ms2.2%
Model._save_tabledjango/db/models/base.py:11102 ms2.2%
Model._do_updatedjango/db/models/base.py:12112 ms2.2%
QuerySet._updatedjango/db/models/query.py:13272 ms2.2%
SQLUpdateCompiler.execute_returning_sqldjango/db/models/sql/compiler.py:21402 ms2.2%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21112 ms2.2%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms2.2%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.2%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms2.2%
Cursor.executepsycopg/cursor.py:1132 ms2.2%
Connection.waitpsycopg/connection.py:4952 ms2.2%
ClientMixin._logindjango/test/client.py:8762 ms2.2%
ClientMixin.sessiondjango/test/client.py:8122 ms2.2%
SessionStore.savedjango/contrib/sessions/backends/db.py:1212 ms2.2%
SessionStore.createdjango/contrib/sessions/backends/db.py:742 ms2.2%
SessionStore.savedjango/contrib/sessions/backends/db.py:1262 ms2.2%
Atomic.__exit__django/db/transaction.py:2472 ms2.2%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms2.2%
BaseDatabaseWrapper.savepoint_commitdjango/db/backends/base/base.py:4312 ms2.2%
BaseDatabaseWrapper._savepoint_commitdjango/db/backends/base/base.py:3742 ms2.2%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms2.2%
BaseDatabaseWrapper.cursordjango/db/backends/base/base.py:3202 ms2.2%
BaseDatabaseWrapper._cursordjango/db/backends/base/base.py:2982 ms2.2%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms2.2%
ClientMixin._logindjango/test/client.py:8832 ms2.2%
SessionStore.savedjango/contrib/sessions/backends/db.py:1272 ms2.2%
Model.savedjango/db/models/base.py:8742 ms2.2%
Model.save_basedjango/db/models/base.py:9662 ms2.2%
Model._save_tabledjango/db/models/base.py:11102 ms2.2%
Model._do_updatedjango/db/models/base.py:12112 ms2.2%
QuerySet._updatedjango/db/models/query.py:13272 ms2.2%
SQLUpdateCompiler.execute_returning_sqldjango/db/models/sql/compiler.py:21402 ms2.2%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21112 ms2.2%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms2.2%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.2%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms2.2%
Cursor.executepsycopg/cursor.py:1132 ms2.2%
Connection.waitpsycopg/connection.py:4952 ms2.2%
ProjectTestsPage.test_project_with_no_testsapps/projects/tests.py:3525 ms6.6%
make_projectapps/projects/testing.py:622 ms2.2%
unique_slugapps/orgs/models.py:46 while slug in reserved or taken.filter(slug=slug).exists():2 ms2.2%
QuerySet.existsdjango/db/models/query.py:13372 ms2.2%
Query.has_resultsdjango/db/models/sql/query.py:6812 ms2.2%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15922 ms2.2%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms2.2%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.2%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms2.2%
Cursor.executepsycopg/cursor.py:1132 ms2.2%
Connection.waitpsycopg/connection.py:4952 ms2.2%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms2.2%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms2.2%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms2.2%
make_projectapps/projects/testing.py:67 slug=unique_slug(name, organization.project_set.all(), fallback="project", reserved=RESERVED_PROJECT_SLUGS),2 ms2.2%
BaseManager.alldjango/db/models/manager.py:1642 ms2.2%
create_reverse_many_to_one_manager.<locals>.RelatedManager.get_querysetdjango/db/models/fields/related_descriptors.py:7582 ms2.2%
create_reverse_many_to_one_manager.<locals>.RelatedManager._apply_rel_filtersdjango/db/models/fields/related_descriptors.py:7022 ms2.2%
make_projectapps/projects/testing.py:64 project = Project.objects.create(2 ms2.2%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms2.2%
QuerySet.createdjango/db/models/query.py:6692 ms2.2%
Model.savedjango/db/models/base.py:8742 ms2.2%
Model.save_basedjango/db/models/base.py:9662 ms2.2%
Model._save_tabledjango/db/models/base.py:11672 ms2.2%
Model._do_insertdjango/db/models/base.py:12182 ms2.2%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms2.2%
QuerySet._insertdjango/db/models/query.py:19182 ms2.2%
Query.get_compilerdjango/db/models/sql/query.py:3692 ms2.2%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()3 ms4.4%
TestCase._fixture_teardowndjango/test/testcases.py:14952 ms2.2%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4832 ms2.2%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.2%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms2.2%
Cursor.executepsycopg/cursor.py:1132 ms2.2%
Connection.waitpsycopg/connection.py:4952 ms2.2%
TestCase._fixture_teardowndjango/test/testcases.py:14972 ms2.2%
TestCase._rollback_atomicsdjango/test/testcases.py:14052 ms2.2%
Atomic.__exit__django/db/transaction.py:2862 ms2.2%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms2.2%
BaseDatabaseWrapper.savepoint_commitdjango/db/backends/base/base.py:4312 ms2.2%
BaseDatabaseWrapper._savepoint_commitdjango/db/backends/base/base.py:3752 ms2.2%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.2%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms2.2%
Cursor.executepsycopg/cursor.py:1132 ms2.2%
Connection.waitpsycopg/connection.py:4952 ms2.2%
TransactionTestCase._pre_setupdjango/test/testcases.py:1164 cls._fixture_setup()2 ms2.2%
TestCase._fixture_setupdjango/test/testcases.py:14782 ms2.2%
TestCase._enter_atomicsdjango/test/testcases.py:13962 ms2.2%
Atomic.__enter__django/db/transaction.py:2112 ms2.2%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms2.2%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4002 ms2.2%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3672 ms2.2%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.2%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms2.2%
Cursor.executepsycopg/cursor.py:1132 ms2.2%
Connection.waitpsycopg/connection.py:4952 ms2.2%
ProjectTestsPage.test_project_with_no_testsapps/projects/tests.py:3532 ms2.2%
add_memberapps/projects/testing.py:76 membership, _ = Membership.objects.get_or_create(2 ms2.2%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms2.2%
QuerySet.get_or_createdjango/db/models/query.py:9942 ms2.2%
QuerySet.createdjango/db/models/query.py:6692 ms2.2%
Model.savedjango/db/models/base.py:8742 ms2.2%
Model.save_basedjango/db/models/base.py:9662 ms2.2%
Model._save_tabledjango/db/models/base.py:11672 ms2.2%
Model._do_insertdjango/db/models/base.py:12182 ms2.2%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms2.2%
QuerySet._insertdjango/db/models/query.py:19182 ms2.2%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19252 ms2.2%
CursorWrapper.executedjango/db/backends/utils.py:792 ms2.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms2.2%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms2.2%
Cursor.executepsycopg/cursor.py:1132 ms2.2%
Connection.waitpsycopg/connection.py:4952 ms2.2%
Estimated from 45 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
apps/projects/tests.py:354
response = self.client.get(project_with_no_tests.url("project_tests"))
ProjectTestsPage.test_project_with_no_tests
· Libraries
|
24 ms |
|
apps/projects/urls.py:259
return render(request, "project_tests.html", context)
project_tests
· Templates
|
17 ms |
|
apps/projects/tests.py:337
self.client.force_login(self.user)
ProjectTestsPage.setUp
· Database
|
10 ms |
|
apps/projects/urls.py:40
return user.is_superuser or project.organization.membership_set.filter(user=user).exists()
can_manage_project
· Database
|
3 ms |
|
apps/orgs/models.py:46
while slug in reserved or taken.filter(slug=slug).exists():
unique_slug
· Database
|
2 ms |
|
apps/projects/testing.py:67
slug=unique_slug(name, organization.project_set.all(), fallback="project", reserved=RESERVED_PROJECT_SLUGS),
make_project
· Database
|
2 ms |
|
apps/projects/testing.py:64
project = Project.objects.create(
make_project
· Database
|
2 ms |
|
apps/projects/testing.py:76
membership, _ = Membership.objects.get_or_create(
add_member
· Database
|
2 ms |
|
apps/projects/urls.py:38
if not user.is_authenticated:
can_manage_project
· 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 |
Fixtures
Exact setup time| _live_server_helper function | 0.07 ms |
| _dj_autoclear_mailbox function | 0.06 ms |
| _django_db_marker function | 0.05 ms |
| _template_string_if_invalid_marker function | 0.05 ms |
| _django_set_urlconf function | 0.05 ms |
| _django_clear_site_cache function | 0.03 ms |
| monkeypatch function | 0.03 ms |
Database
42 queries · 15 msNo repeated queries.
Biggest pieces of work
|
call test body
apps/projects/tests.py:354
|
62 ms |
|
call setUp
apps/projects/tests.py:337
|
10 ms |
|
call _post_teardown
django/test/testcases.py:1240
|
3 ms |
|
call _pre_setup
django/test/testcases.py:1164
|
2 ms |
Reliability
5 results · 0 CI failures · 0 local failuresThis test hasn't failed recently.
History
Latest 50 results, oldest first in the strip| When | Environment | Outcome | Duration | |
|---|---|---|---|---|
| 18 minutes ago | CI github-actions:test | passed | 79 ms | Profile |
| 43 minutes ago | CI github-actions:test | passed | 76 ms | Profile |
| 7 hours ago | CI github-actions:test | passed | 85 ms | Profile |
| 7 hours ago | CI github-actions:test | passed | 50 ms | Profile |
| 7 hours ago | CI github-actions:test | passed | 76 ms | Profile |
| 2 years ago | CI github-actions | passed | 123 ms | Run |
| 2 years, 2 months ago | CI github-actions | passed | 122 ms | Run |
| 2 years, 3 months ago | CI github-actions | passed | 133 ms | Run |
| 2 years, 4 months ago | CI github-actions | passed | 132 ms | Run |
| 2 years, 4 months ago | CI github-actions | passed | 134 ms | Run |
| 2 years, 4 months ago | CI github-actions | passed | 128 ms | Run |
| 2 years, 4 months ago | CI github-actions | passed | 166 ms | Run |
| 2 years, 5 months ago | CI github-actions | passed | 145 ms | Run |
| 2 years, 5 months ago | CI github-actions | passed | 118 ms | Run |
| 2 years, 5 months ago | CI github-actions | passed | 123 ms | Run |
| 2 years, 5 months ago | CI github-actions | passed | 119 ms | Run |
| 2 years, 5 months ago | CI github-actions | passed | 125 ms | Run |
| 2 years, 6 months ago | CI github-actions | passed | 122 ms | Run |
| 2 years, 6 months ago | CI github-actions | passed | 123 ms | Run |
| 2 years, 6 months ago | CI github-actions | passed | 117 ms | Run |