Tests / apps/orgs/tests.py
AccessTest::test_public_projects_are_readable_by_anyone
First seen 1 month, 1 week ago in 78a4357
CI
github-actions:test
15 runs
Average
37 ms
median 41 ms
max 58 ms
max 58 ms
Phases
Setup 0.65 ms
Call 37 ms
Teardown 0.15 ms
Categories
Database 10 ms
Test code 0.19 ms
App code 0.14 ms
Other (Libraries, Unsampled, Templates, pytest) 27 ms
9 database queries per run
Needs 394 KB of memory (max 880 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 2 weeks ago ·
open run
call31 ms97.8%
AccessTest.test_public_projects_are_readable_by_anyoneapps/orgs/tests.py:76 self.assertEqual(self.client.get(self.project.url()).status_code, 200)29 ms91.7%
Client.getdjango/test/client.py:112429 ms91.7%
RequestFactory.getdjango/test/client.py:47529 ms91.7%
RequestFactory.genericdjango/test/client.py:67129 ms91.7%
Client.requestdjango/test/client.py:108229 ms91.7%
ClientHandler.__call__django/test/client.py:18617 ms55.0%
BaseHandler.get_responsedjango/core/handlers/base.py:14117 ms55.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5517 ms55.0%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:13017 ms55.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5517 ms55.0%
MiddlewareMixin.__call__django/utils/deprecation.py:30917 ms55.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5517 ms55.0%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12317 ms55.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5517 ms55.0%
MiddlewareMixin.__call__django/utils/deprecation.py:30917 ms55.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5517 ms55.0%
MiddlewareMixin.__call__django/utils/deprecation.py:30917 ms55.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5517 ms55.0%
MiddlewareMixin.__call__django/utils/deprecation.py:30917 ms55.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5517 ms55.0%
MiddlewareMixin.__call__django/utils/deprecation.py:30917 ms55.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5517 ms55.0%
MiddlewareMixin.__call__django/utils/deprecation.py:30917 ms55.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5517 ms55.0%
MiddlewareMixin.__call__django/utils/deprecation.py:30917 ms55.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5517 ms55.0%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:3417 ms55.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5517 ms55.0%
BaseHandler._get_responsedjango/core/handlers/base.py:19817 ms55.0%
project_dashboardapps/projects/urls.py:13214 ms42.8%
find_projectapps/projects/urls.py:49 project = get_object_or_404(14 ms42.8%
get_object_or_404django/shortcuts.py:9014 ms42.8%
QuerySet.getdjango/db/models/query.py:63514 ms42.8%
QuerySet.__len__django/db/models/query.py:37214 ms42.8%
QuerySet._fetch_alldjango/db/models/query.py:200014 ms42.8%
ModelIterable.__iter__django/db/models/query.py:9514 ms42.8%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:162410 ms30.6%
CursorWrapper.executedjango/db/backends/utils.py:7910 ms30.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9210 ms30.6%
CursorWrapper._executedjango/db/backends/utils.py:10510 ms30.6%
Cursor.executepsycopg/cursor.py:11310 ms30.6%
Connection.waitpsycopg/connection.py:4958 ms24.5%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms6.1%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms6.1%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms6.1%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16114 ms12.2%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7672 ms6.1%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:882 ms6.1%
WhereNode.split_having_qualifydjango/db/models/sql/where.py:472 ms6.1%
cached_property.__get__django/utils/functional.py:472 ms6.1%
WhereNode.contains_over_clausedjango/db/models/sql/where.py:2642 ms6.1%
WhereNode._contains_over_clausedjango/db/models/sql/where.py:2592 ms6.1%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7922 ms6.1%
SQLCompiler.get_from_clausedjango/db/models/sql/compiler.py:11592 ms6.1%
SQLCompiler.compiledjango/db/models/sql/compiler.py:5782 ms6.1%
Join.as_sqldjango/db/models/sql/datastructures.py:1312 ms6.1%
project_dashboardapps/projects/urls.py:136 has_profiles = Profile.objects.filter(project=project).exists()2 ms6.1%
QuerySet.existsdjango/db/models/query.py:13372 ms6.1%
Query.has_resultsdjango/db/models/sql/query.py:6812 ms6.1%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15922 ms6.1%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms6.1%
CursorWrapper.executedjango/db/backends/utils.py:792 ms6.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms6.1%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms6.1%
Cursor.executepsycopg/cursor.py:1132 ms6.1%
Connection.waitpsycopg/connection.py:4952 ms6.1%
project_dashboardapps/projects/urls.py:138 return render(request, "project_setup.html", context)2 ms6.1%
renderdjango/shortcuts.py:252 ms6.1%
render_to_stringdjango/template/loader.py:622 ms6.1%
Template.renderdjango/template/backends/django.py:1072 ms6.1%
Template.renderdjango/template/base.py:1742 ms6.1%
instrumented_test_renderdjango/test/utils.py:1142 ms6.1%
NodeList.renderdjango/template/base.py:10912 ms6.1%
Node.render_annotateddjango/template/base.py:10522 ms6.1%
ExtendsNode.renderdjango/template/loader_tags.py:1602 ms6.1%
instrumented_test_renderdjango/test/utils.py:1142 ms6.1%
NodeList.renderdjango/template/base.py:10912 ms6.1%
Node.render_annotateddjango/template/base.py:10522 ms6.1%
ExtendsNode.renderdjango/template/loader_tags.py:1522 ms6.1%
NodeList.get_nodes_by_typedjango/template/base.py:10972 ms6.1%
Node.get_nodes_by_typedjango/template/base.py:10812 ms6.1%
NodeList.get_nodes_by_typedjango/template/base.py:10972 ms6.1%
ClientHandler.__call__django/test/client.py:17312 ms36.7%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6212 ms36.7%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10412 ms36.7%
WhiteNoise.add_fileswhitenoise/base.py:10812 ms36.7%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1208 ms24.5%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:1318 ms24.5%
WhiteNoise.get_static_filewhitenoise/base.py:2086 ms18.3%
StaticFile.__init__whitenoise/responders.py:734 ms12.2%
StaticFile.get_headerswhitenoise/responders.py:1762 ms6.1%
StaticFile.get_headerswhitenoise/responders.py:1782 ms6.1%
parsedate<stdlib>/email/_parseaddr.py:1852 ms6.1%
parsedate_tz<stdlib>/email/_parseaddr.py:502 ms6.1%
_parsedate_tz<stdlib>/email/_parseaddr.py:1802 ms6.1%
StaticFile.__init__whitenoise/responders.py:762 ms6.1%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1882 ms6.1%
Headers.__contains__<stdlib>/wsgiref/headers.py:872 ms6.1%
WhiteNoise.get_static_filewhitenoise/base.py:2012 ms6.1%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1154 ms12.2%
scantreewhitenoise/base.py:2624 ms12.2%
scantreewhitenoise/base.py:2624 ms12.2%
scantreewhitenoise/base.py:2642 ms6.1%
scantreewhitenoise/base.py:2622 ms6.1%
scantreewhitenoise/base.py:2642 ms6.1%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()2 ms6.1%
TestCase._fixture_teardowndjango/test/testcases.py:14952 ms6.1%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4832 ms6.1%
CursorWrapper.executedjango/db/backends/utils.py:792 ms6.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms6.1%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms6.1%
Cursor.executepsycopg/cursor.py:1132 ms6.1%
Connection.waitpsycopg/connection.py:4952 ms6.1%
teardown0.15 ms0.5%
Estimated from 17 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/orgs/tests.py:76
self.assertEqual(self.client.get(self.project.url()).status_code, 200)
AccessTest.test_public_projects_are_readable_by_anyone
· Libraries
|
12 ms |
|
apps/projects/urls.py:136
has_profiles = Profile.objects.filter(project=project).exists()
project_dashboard
· Database
|
2 ms |
|
apps/projects/urls.py:138
return render(request, "project_setup.html", context)
project_dashboard
· Templates
|
2 ms |
Fixtures
Exact setup time| _dj_autoclear_mailbox function | 0.06 ms |
| _django_db_marker function | 0.03 ms |
| _template_string_if_invalid_marker function | 0.03 ms |
| _django_set_urlconf function | 0.03 ms |
| _live_server_helper function | 0.03 ms |
| _django_clear_site_cache function | 0.02 ms |
| monkeypatch function | 0.01 ms |
Database
9 queries · 2 msNo repeated queries.
Biggest pieces of work
|
call test body
apps/orgs/tests.py:76
|
29 ms |
|
call _post_teardown
django/test/testcases.py:1240
|
2 ms |
| teardown pytest internals | 0.15 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 | 32 ms | Profile |
| 2 weeks, 4 days ago | CI github-actions:test | passed | 43 ms | Profile |
| 2 weeks, 6 days ago | CI github-actions:test | passed | 22 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 51 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 23 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 38 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 41 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 58 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 26 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 43 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 41 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 41 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 44 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 19 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 39 ms | Profile |