Tests / apps/orgs/tests.py
AccessTest::test_public_projects_are_readable_by_anyone
First seen 7 hours ago in 78a4357
CI
github-actions:test
5 runs
Average
37 ms
median 41 ms
max 44 ms
max 44 ms
Phases
Setup 0.70 ms
Call 36 ms
Teardown 0.17 ms
Categories
Database 9 ms
Other (Libraries, Unsampled, Templates) 27 ms
9 database queries per run
Needs 514 KB of memory (max 880 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 27 minutes ago ·
open run
call40 ms97.6%
CallInfo.from_call_pytest/runner.py:35340 ms97.6%
call_and_report.<locals>.<lambda>_pytest/runner.py:24540 ms97.6%
HookCaller.__call__pluggy/_hooks.py:51240 ms97.6%
PluginManager._hookexecpluggy/_manager.py:12040 ms97.6%
_multicallpluggy/_callers.py:12140 ms97.6%
pytest_runtest_call_pytest/runner.py:17940 ms97.6%
_django_setup_unittest.<locals>.non_debugging_runtestpytest_django/plugin.py:57340 ms97.6%
SimpleTestCase.__call__django/test/testcases.py:31340 ms97.6%
SimpleTestCase._setup_and_calldjango/test/testcases.py:36837 ms89.5%
TestCase.__call__<stdlib>/unittest/case.py:74737 ms89.5%
TestCase.run<stdlib>/unittest/case.py:69137 ms89.5%
TestCase._callTestMethod<stdlib>/unittest/case.py:63737 ms89.5%
AccessTest.test_public_projects_are_readable_by_anyoneapps/orgs/tests.py:76 self.assertEqual(self.client.get(self.project.url()).status_code, 200)34 ms81.3%
Client.getdjango/test/client.py:112434 ms81.3%
RequestFactory.getdjango/test/client.py:47534 ms81.3%
RequestFactory.genericdjango/test/client.py:67134 ms81.3%
Client.requestdjango/test/client.py:108234 ms81.3%
ClientHandler.__call__django/test/client.py:17327 ms65.1%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6227 ms65.1%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10427 ms65.1%
WhiteNoise.add_fileswhitenoise/base.py:10827 ms65.1%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12020 ms48.8%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13120 ms48.8%
WhiteNoise.get_static_filewhitenoise/base.py:20817 ms40.7%
StaticFile.__init__whitenoise/responders.py:777 ms16.3%
StaticFile.get_alternativeswhitenoise/responders.py:2003 ms8.1%
__init____init__:-13 ms8.1%
StaticFile.get_alternativeswhitenoise/responders.py:2013 ms8.1%
StaticFile.__init__whitenoise/responders.py:763 ms8.1%
StaticFile.__init__whitenoise/responders.py:743 ms8.1%
parsedate<stdlib>/email/_parseaddr.py:1853 ms8.1%
StaticFile.__init__whitenoise/responders.py:733 ms8.1%
StaticFile.get_headerswhitenoise/responders.py:1763 ms8.1%
formatdate<stdlib>/email/utils.py:2663 ms8.1%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1157 ms16.3%
scantreewhitenoise/base.py:2643 ms8.1%
scantreewhitenoise/base.py:2623 ms8.1%
scantreewhitenoise/base.py:2623 ms8.1%
scantreewhitenoise/base.py:2643 ms8.1%
ClientHandler.__call__django/test/client.py:1867 ms16.3%
BaseHandler.get_responsedjango/core/handlers/base.py:1417 ms16.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms16.3%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1307 ms16.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms16.3%
MiddlewareMixin.__call__django/utils/deprecation.py:3097 ms16.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms16.3%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:1237 ms16.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms16.3%
MiddlewareMixin.__call__django/utils/deprecation.py:3097 ms16.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms16.3%
MiddlewareMixin.__call__django/utils/deprecation.py:3097 ms16.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms16.3%
MiddlewareMixin.__call__django/utils/deprecation.py:3097 ms16.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms16.3%
MiddlewareMixin.__call__django/utils/deprecation.py:3097 ms16.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms16.3%
MiddlewareMixin.__call__django/utils/deprecation.py:3097 ms16.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms16.3%
MiddlewareMixin.__call__django/utils/deprecation.py:3097 ms16.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms16.3%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:347 ms16.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms16.3%
BaseHandler._get_responsedjango/core/handlers/base.py:1987 ms16.3%
project_dashboardapps/projects/urls.py:1323 ms8.1%
find_projectapps/projects/urls.py:49 project = get_object_or_404(3 ms8.1%
get_object_or_404django/shortcuts.py:903 ms8.1%
QuerySet.getdjango/db/models/query.py:6353 ms8.1%
QuerySet.__len__django/db/models/query.py:3723 ms8.1%
QuerySet._fetch_alldjango/db/models/query.py:20003 ms8.1%
ModelIterable.__iter__django/db/models/query.py:953 ms8.1%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16243 ms8.1%
CursorWrapper.executedjango/db/backends/utils.py:793 ms8.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms8.1%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1003 ms8.1%
CursorWrapper._executedjango/db/backends/utils.py:1053 ms8.1%
Cursor.executepsycopg/cursor.py:1133 ms8.1%
Connection.waitpsycopg/connection.py:4953 ms8.1%
project_dashboardapps/projects/urls.py:137 if not has_profiles and not Run.objects.filter(project=project).exists():3 ms8.1%
QuerySet.existsdjango/db/models/query.py:13373 ms8.1%
Query.has_resultsdjango/db/models/sql/query.py:6813 ms8.1%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15923 ms8.1%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16243 ms8.1%
CursorWrapper.executedjango/db/backends/utils.py:793 ms8.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms8.1%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1003 ms8.1%
CursorWrapper._executedjango/db/backends/utils.py:1053 ms8.1%
Cursor.executepsycopg/cursor.py:1133 ms8.1%
Connection.waitpsycopg/connection.py:4953 ms8.1%
AccessTest.test_public_projects_are_readable_by_anyoneapps/orgs/tests.py:75 Project.objects.filter(pk=self.project.pk).update(public=True)3 ms8.1%
QuerySet.updatedjango/db/models/query.py:13003 ms8.1%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21113 ms8.1%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16243 ms8.1%
CursorWrapper.executedjango/db/backends/utils.py:793 ms8.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms8.1%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1003 ms8.1%
CursorWrapper._executedjango/db/backends/utils.py:1053 ms8.1%
Cursor.executepsycopg/cursor.py:1133 ms8.1%
Connection.waitpsycopg/connection.py:4953 ms8.1%
SimpleTestCase._setup_and_calldjango/test/testcases.py:3713 ms8.1%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()3 ms8.1%
TestCase._fixture_teardowndjango/test/testcases.py:14973 ms8.1%
TestCase._rollback_atomicsdjango/test/testcases.py:14053 ms8.1%
Atomic.__exit__django/db/transaction.py:2833 ms8.1%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:263 ms8.1%
BaseDatabaseWrapper.savepoint_rollbackdjango/db/backends/base/base.py:4133 ms8.1%
BaseDatabaseWrapper._savepoint_rollbackdjango/db/backends/base/base.py:3713 ms8.1%
CursorWrapper.executedjango/db/backends/utils.py:793 ms8.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms8.1%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1003 ms8.1%
CursorWrapper._executedjango/db/backends/utils.py:1033 ms8.1%
Cursor.executepsycopg/cursor.py:1133 ms8.1%
Connection.waitpsycopg/connection.py:4953 ms8.1%
Estimated from 12 samples; phase durations are exact. Frames from pytest and pluggy are
shown
.
Hot lines in your code
|
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
|
27 ms |
|
apps/orgs/tests.py:75
Project.objects.filter(pk=self.project.pk).update(public=True)
AccessTest.test_public_projects_are_readable_by_anyone
· Database
|
3 ms |
|
apps/projects/urls.py:49
project = get_object_or_404(
find_project
· Database
|
3 ms |
|
apps/projects/urls.py:137
if not has_profiles and not Run.objects.filter(project=project).exists():
project_dashboard
· Database
|
3 ms |
Fixtures
Exact setup time| _template_string_if_invalid_marker function | 0.07 ms |
| _dj_autoclear_mailbox function | 0.05 ms |
| _django_db_marker function | 0.04 ms |
| _django_clear_site_cache function | 0.04 ms |
| _django_set_urlconf function | 0.03 ms |
| _live_server_helper function | 0.03 ms |
| monkeypatch function | 0.02 ms |
Database
9 queries · 3 msNo repeated queries.
Biggest pieces of work
|
call test body
apps/orgs/tests.py:75
|
37 ms |
|
call _post_teardown
django/test/testcases.py:1240
|
3 ms |
Reliability
5 results · 0 CI failures · 0 local failuresThis test hasn't failed recently.
History
Latest 5 results, oldest first in the strip| When | Environment | Outcome | Duration | |
|---|---|---|---|---|
| 27 minutes ago | CI github-actions:test | passed | 41 ms | Profile |
| 53 minutes ago | CI github-actions:test | passed | 41 ms | Profile |
| 7 hours ago | CI github-actions:test | passed | 44 ms | Profile |
| 7 hours ago | CI github-actions:test | passed | 19 ms | Profile |
| 7 hours ago | CI github-actions:test | passed | 39 ms | Profile |