Tests / apps/projects/tests.py
ProjectEditPage::test_not_logged_in
First seen 2 years, 11 months ago in b9e98d9
CI
github-actions:test
15 runs
Average
53 ms
median 41 ms
max 223 ms
max 223 ms
Phases
Setup 0.67 ms
Call 52 ms
Teardown 0.16 ms
Categories
Database 18 ms
Other (Libraries, Unsampled, pytest) 36 ms
24 database queries per run
Needs 23 KB of memory (max 132 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 2 weeks ago ·
open run
call33 ms97.9%
ProjectEditPage.test_not_logged_inapps/projects/tests.py:148 response = self.client.get(url)19 ms56.0%
Client.getdjango/test/client.py:112419 ms56.0%
RequestFactory.getdjango/test/client.py:47519 ms56.0%
RequestFactory.genericdjango/test/client.py:67119 ms56.0%
Client.requestdjango/test/client.py:108219 ms56.0%
ClientHandler.__call__django/test/client.py:17319 ms56.0%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6219 ms56.0%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10419 ms56.0%
WhiteNoise.add_fileswhitenoise/base.py:10819 ms56.0%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12016 ms49.0%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13114 ms42.0%
WhiteNoise.get_static_filewhitenoise/base.py:2089 ms28.0%
StaticFile.__init__whitenoise/responders.py:735 ms14.0%
StaticFile.get_headerswhitenoise/responders.py:1782 ms7.0%
StaticFile.get_headerswhitenoise/responders.py:1762 ms7.0%
formatdate<stdlib>/email/utils.py:2662 ms7.0%
StaticFile.__init__whitenoise/responders.py:722 ms7.0%
StaticFile.get_file_statswhitenoise/responders.py:1612 ms7.0%
__init____init__:-12 ms7.0%
FileEntry.__init__whitenoise/responders.py:2632 ms7.0%
FileEntry.stat_regular_filewhitenoise/responders.py:2762 ms7.0%
<GC>~2 ms7.0%
StaticFile.__init__whitenoise/responders.py:772 ms7.0%
StaticFile.get_alternativeswhitenoise/responders.py:2002 ms7.0%
WhiteNoise.get_static_filewhitenoise/base.py:2035 ms14.0%
WhiteNoise.add_cache_headerswhitenoise/base.py:2245 ms14.0%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1765 ms14.0%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1975 ms14.0%
URLMixin.urldebug_toolbar/panels/staticfiles.py:205 ms14.0%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:2055 ms14.0%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:1782 ms7.0%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1152 ms7.0%
scantreewhitenoise/base.py:2622 ms7.0%
scantreewhitenoise/base.py:2622 ms7.0%
scantreewhitenoise/base.py:2622 ms7.0%
scantreewhitenoise/base.py:2622 ms7.0%
scantreewhitenoise/base.py:2622 ms7.0%
scantreewhitenoise/base.py:2642 ms7.0%
ProjectEditPage.setUpapps/projects/tests.py:143 self.client.force_login(self.user)7 ms21.0%
ClientMixin.force_logindjango/test/client.py:8557 ms21.0%
ClientMixin._logindjango/test/client.py:8762 ms7.0%
ClientMixin.sessiondjango/test/client.py:8122 ms7.0%
SessionStore.savedjango/contrib/sessions/backends/db.py:1212 ms7.0%
SessionStore.createdjango/contrib/sessions/backends/db.py:742 ms7.0%
SessionStore.savedjango/contrib/sessions/backends/db.py:1262 ms7.0%
Atomic.__enter__django/db/transaction.py:2112 ms7.0%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms7.0%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4002 ms7.0%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3672 ms7.0%
CursorWrapper.executedjango/db/backends/utils.py:792 ms7.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms7.0%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms7.0%
Cursor.executepsycopg/cursor.py:1132 ms7.0%
Connection.waitpsycopg/connection.py:4952 ms7.0%
ClientMixin._logindjango/test/client.py:8812 ms7.0%
logindjango/contrib/auth/__init__.py:1752 ms7.0%
SessionBase.__contains__django/contrib/sessions/backends/base.py:522 ms7.0%
SessionBase._get_sessiondjango/contrib/sessions/backends/base.py:2512 ms7.0%
SessionStore.loaddjango/contrib/sessions/backends/db.py:552 ms7.0%
SessionStore._get_session_from_dbdjango/contrib/sessions/backends/db.py:342 ms7.0%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms7.0%
QuerySet.getdjango/db/models/query.py:6352 ms7.0%
QuerySet.__len__django/db/models/query.py:3722 ms7.0%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms7.0%
ModelIterable.__iter__django/db/models/query.py:952 ms7.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms7.0%
CursorWrapper.executedjango/db/backends/utils.py:792 ms7.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms7.0%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms7.0%
Cursor.executepsycopg/cursor.py:1132 ms7.0%
Connection.waitpsycopg/connection.py:4952 ms7.0%
ClientMixin._logindjango/test/client.py:8832 ms7.0%
SessionStore.savedjango/contrib/sessions/backends/db.py:1232 ms7.0%
SessionStore.create_model_instancedjango/contrib/sessions/backends/db.py:1022 ms7.0%
SessionBase.encodedjango/contrib/sessions/backends/base.py:1262 ms7.0%
dumpsdjango/core/signing.py:1512 ms7.0%
Signer.sign_objectdjango/core/signing.py:2322 ms7.0%
TransactionTestCase._pre_setupdjango/test/testcases.py:1164 cls._fixture_setup()2 ms7.0%
TestCase._fixture_setupdjango/test/testcases.py:14782 ms7.0%
TestCase._enter_atomicsdjango/test/testcases.py:13962 ms7.0%
Atomic.__enter__django/db/transaction.py:2112 ms7.0%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms7.0%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4002 ms7.0%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3672 ms7.0%
CursorWrapper.executedjango/db/backends/utils.py:792 ms7.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms7.0%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms7.0%
Cursor.executepsycopg/cursor.py:1132 ms7.0%
Connection.waitpsycopg/connection.py:4952 ms7.0%
ProjectEditPage.test_not_logged_inapps/projects/tests.py:146 self.client.logout()2 ms7.0%
ClientMixin.logoutdjango/test/client.py:9232 ms7.0%
get_userdjango/contrib/auth/__init__.py:3182 ms7.0%
ModelBackend.get_userdjango/contrib/auth/backends.py:2322 ms7.0%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms7.0%
QuerySet.getdjango/db/models/query.py:6352 ms7.0%
QuerySet.__len__django/db/models/query.py:3722 ms7.0%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms7.0%
ModelIterable.__iter__django/db/models/query.py:1272 ms7.0%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()2 ms7.0%
TestCase._fixture_teardowndjango/test/testcases.py:14952 ms7.0%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4842 ms7.0%
CursorWrapper.executedjango/db/backends/utils.py:792 ms7.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms7.0%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms7.0%
Cursor.executepsycopg/cursor.py:1132 ms7.0%
Connection.waitpsycopg/connection.py:4952 ms7.0%
Estimated from 14 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
apps/projects/tests.py:148
response = self.client.get(url)
ProjectEditPage.test_not_logged_in
· Libraries
|
19 ms |
|
apps/projects/tests.py:143
self.client.force_login(self.user)
ProjectEditPage.setUp
· Database
|
7 ms |
|
apps/projects/tests.py:146
self.client.logout()
ProjectEditPage.test_not_logged_in
· Database
|
2 ms |
Fixtures
Exact setup time| _dj_autoclear_mailbox function | 0.05 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
24 queries · 4 msNo repeated queries.
Biggest pieces of work
|
call test body
apps/projects/tests.py:146
|
21 ms |
|
call setUp
apps/projects/tests.py:143
|
7 ms |
|
call _pre_setup
django/test/testcases.py:1164
|
2 ms |
|
call _post_teardown
django/test/testcases.py:1240
|
2 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 | 33 ms | Profile |
| 2 weeks, 4 days ago | CI github-actions:test | passed | 39 ms | Profile |
| 2 weeks, 6 days ago | CI github-actions:test | passed | 27 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 40 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 25 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 44 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 41 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 65 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 30 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 53 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 50 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 49 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 53 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 26 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 223 ms | Profile |