Tests / apps/projects/tests.py
ProjectPagesTest::test_private_dashboard_requires_login
First seen 1 month, 1 week ago in 78a4357
CI
github-actions:test
15 runs
Average
46 ms
median 47 ms
max 67 ms
max 67 ms
Phases
Setup 0.67 ms
Call 45 ms
Teardown 0.16 ms
Categories
Database 21 ms
App code 0.10 ms
Other (Libraries, Unsampled, pytest, Cache) 24 ms
26 database queries per run
Needs 1 KB of memory (max 8 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 2 weeks ago ·
open run
setup0.54 ms1.6%
call33 ms98.0%
ProjectPagesTest.test_private_dashboard_requires_loginapps/projects/tests.py:984 response = self.client.get(url)22 ms65.4%
Client.getdjango/test/client.py:112422 ms65.4%
RequestFactory.getdjango/test/client.py:47522 ms65.4%
RequestFactory.genericdjango/test/client.py:67122 ms65.4%
Client.requestdjango/test/client.py:108222 ms65.4%
ClientHandler.__call__django/test/client.py:17320 ms59.9%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6220 ms59.9%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10420 ms59.9%
WhiteNoise.add_fileswhitenoise/base.py:10820 ms59.9%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12017 ms49.0%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13115 ms43.6%
WhiteNoise.get_static_filewhitenoise/base.py:2089 ms27.2%
StaticFile.__init__whitenoise/responders.py:736 ms16.3%
StaticFile.get_headerswhitenoise/responders.py:1762 ms5.4%
StaticFile.get_alternativeswhitenoise/responders.py:2002 ms5.4%
__init____init__:-12 ms5.4%
StaticFile.get_headerswhitenoise/responders.py:1702 ms5.4%
StaticFile.__init__whitenoise/responders.py:724 ms10.9%
StaticFile.get_file_statswhitenoise/responders.py:1614 ms10.9%
__init____init__:-14 ms10.9%
FileEntry.__init__whitenoise/responders.py:2604 ms10.9%
<GC>~4 ms10.9%
WhiteNoise.get_static_filewhitenoise/base.py:2036 ms16.3%
WhiteNoise.add_cache_headerswhitenoise/base.py:2246 ms16.3%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1764 ms10.9%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1974 ms10.9%
URLMixin.urldebug_toolbar/panels/staticfiles.py:212 ms5.4%
<GC>~2 ms5.4%
URLMixin.urldebug_toolbar/panels/staticfiles.py:202 ms5.4%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:2052 ms5.4%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:1782 ms5.4%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1154 ms10.9%
scantreewhitenoise/base.py:2624 ms10.9%
scantreewhitenoise/base.py:2624 ms10.9%
scantreewhitenoise/base.py:2644 ms10.9%
ClientHandler.__call__django/test/client.py:1862 ms5.4%
BaseHandler.get_responsedjango/core/handlers/base.py:1412 ms5.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms5.4%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1302 ms5.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms5.4%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms5.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms5.4%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:1232 ms5.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms5.4%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms5.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms5.4%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms5.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms5.4%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms5.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms5.4%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms5.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms5.4%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms5.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms5.4%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms5.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms5.4%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:342 ms5.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms5.4%
BaseHandler._get_responsedjango/core/handlers/base.py:1822 ms5.4%
BaseHandler.resolve_requestdjango/core/handlers/base.py:3142 ms5.4%
URLResolver.resolvedjango/urls/resolvers.py:6802 ms5.4%
URLResolver._extend_trieddjango/urls/resolvers.py:6552 ms5.4%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()4 ms10.9%
TestCase._fixture_teardowndjango/test/testcases.py:14954 ms10.9%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4834 ms10.9%
CursorWrapper.executedjango/db/backends/utils.py:794 ms10.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:924 ms10.9%
CursorWrapper._executedjango/db/backends/utils.py:1034 ms10.9%
Cursor.executepsycopg/cursor.py:1134 ms10.9%
Connection.waitpsycopg/connection.py:4954 ms10.9%
ProjectPagesTest.setUpapps/projects/tests.py:954 self.client.force_login(self.user)4 ms10.9%
ClientMixin.force_logindjango/test/client.py:8554 ms10.9%
ClientMixin._logindjango/test/client.py:8762 ms5.4%
ClientMixin.sessiondjango/test/client.py:8122 ms5.4%
SessionStore.savedjango/contrib/sessions/backends/db.py:1212 ms5.4%
SessionStore.createdjango/contrib/sessions/backends/db.py:702 ms5.4%
SessionBase._get_new_session_keydjango/contrib/sessions/backends/base.py:1982 ms5.4%
SessionStore.existsdjango/contrib/sessions/backends/db.py:632 ms5.4%
QuerySet.existsdjango/db/models/query.py:13372 ms5.4%
Query.has_resultsdjango/db/models/sql/query.py:6812 ms5.4%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15922 ms5.4%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms5.4%
CursorWrapper.executedjango/db/backends/utils.py:792 ms5.4%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms5.4%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms5.4%
Cursor.executepsycopg/cursor.py:1132 ms5.4%
Connection.waitpsycopg/connection.py:4952 ms5.4%
ClientMixin._logindjango/test/client.py:8832 ms5.4%
SessionStore.savedjango/contrib/sessions/backends/db.py:1262 ms5.4%
Atomic.__enter__django/db/transaction.py:2112 ms5.4%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms5.4%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4002 ms5.4%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3672 ms5.4%
CursorWrapper.executedjango/db/backends/utils.py:792 ms5.4%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms5.4%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms5.4%
Cursor.executepsycopg/cursor.py:1132 ms5.4%
Connection.waitpsycopg/connection.py:4952 ms5.4%
ProjectPagesTest.test_private_dashboard_requires_loginapps/projects/tests.py:981 Project.objects.filter(pk=self.project.pk).update(public=False)2 ms5.4%
QuerySet.updatedjango/db/models/query.py:13002 ms5.4%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21112 ms5.4%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms5.4%
CursorWrapper.executedjango/db/backends/utils.py:792 ms5.4%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms5.4%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms5.4%
Cursor.executepsycopg/cursor.py:1132 ms5.4%
Connection.waitpsycopg/connection.py:4952 ms5.4%
ProjectPagesTest.test_private_dashboard_requires_loginapps/projects/tests.py:982 self.client.logout()2 ms5.4%
ClientMixin.logoutdjango/test/client.py:9232 ms5.4%
get_userdjango/contrib/auth/__init__.py:3182 ms5.4%
ModelBackend.get_userdjango/contrib/auth/backends.py:2322 ms5.4%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms5.4%
QuerySet.getdjango/db/models/query.py:6252 ms5.4%
QuerySet.filterdjango/db/models/query.py:15422 ms5.4%
QuerySet._filter_or_excludedjango/db/models/query.py:15602 ms5.4%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:15702 ms5.4%
Query.add_qdjango/db/models/sql/query.py:16712 ms5.4%
Query._add_qdjango/db/models/sql/query.py:17032 ms5.4%
Query.build_filterdjango/db/models/sql/query.py:16132 ms5.4%
Query.build_lookupdjango/db/models/sql/query.py:14302 ms5.4%
BaseExpression.get_lookupdjango/db/models/expressions.py:4042 ms5.4%
RegisterLookupMixin.get_lookupdjango/db/models/query_utils.py:3312 ms5.4%
Estimated from 19 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
apps/projects/tests.py:984
response = self.client.get(url)
ProjectPagesTest.test_private_dashboard_requires_login
· Libraries
|
22 ms |
|
apps/projects/tests.py:954
self.client.force_login(self.user)
ProjectPagesTest.setUp
· Database
|
4 ms |
|
apps/projects/tests.py:981
Project.objects.filter(pk=self.project.pk).update(public=False)
ProjectPagesTest.test_private_dashboard_requires_login
· Database
|
2 ms |
|
apps/projects/tests.py:982
self.client.logout()
ProjectPagesTest.test_private_dashboard_requires_login
· Database
|
2 ms |
Fixtures
Exact setup time| _dj_autoclear_mailbox function | 0.04 ms |
| _template_string_if_invalid_marker function | 0.04 ms |
| _django_db_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.02 ms |
Database
26 queries · 6 msNo repeated queries.
Biggest pieces of work
|
call test body
apps/projects/tests.py:984
|
26 ms |
|
call _post_teardown
django/test/testcases.py:1240
|
4 ms |
|
call setUp
apps/projects/tests.py:954
|
4 ms |
| setup pytest internals | 0.54 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 | 34 ms | Profile |
| 2 weeks, 4 days ago | CI github-actions:test | passed | 47 ms | Profile |
| 2 weeks, 6 days ago | CI github-actions:test | passed | 26 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 51 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 25 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 55 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 41 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 67 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 35 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 59 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 58 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 55 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 54 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 32 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 47 ms | Profile |