Tests / apps/projects/tests.py
ProjectsPageTest::test_not_logged_in
First seen 2 years, 11 months ago in b9e98d9
CI
github-actions:test
15 runs
Average
51 ms
median 49 ms
max 182 ms
max 182 ms
Phases
Setup 0.68 ms
Call 50 ms
Teardown 0.17 ms
Categories
Database 13 ms
Other (Libraries, pytest, Unsampled) 37 ms
24 database queries per run
Needs 23 KB of memory (max 316 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 2 weeks ago ·
open run
call34 ms98.1%
ProjectsPageTest.test_not_logged_inapps/projects/tests.py:105 response = self.client.get("/projects/")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%
__init____init__:-119 ms56.0%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10419 ms56.0%
WhiteNoise.add_fileswhitenoise/base.py:10819 ms56.0%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12017 ms49.0%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13117 ms49.0%
WhiteNoise.get_static_filewhitenoise/base.py:20817 ms49.0%
StaticFile.__init__whitenoise/responders.py:767 ms21.0%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1892 ms7.0%
Headers.__getitem__<stdlib>/wsgiref/headers.py:832 ms7.0%
Headers.get<stdlib>/wsgiref/headers.py:1062 ms7.0%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1902 ms7.0%
Response.__init__whitenoise/responders.py:182 ms7.0%
<GC>~2 ms7.0%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1882 ms7.0%
StaticFile.__init__whitenoise/responders.py:772 ms7.0%
StaticFile.get_alternativeswhitenoise/responders.py:2002 ms7.0%
__init____init__:-12 ms7.0%
StaticFile.__init__whitenoise/responders.py:742 ms7.0%
Headers.__getitem__<stdlib>/wsgiref/headers.py:832 ms7.0%
StaticFile.__init__whitenoise/responders.py:732 ms7.0%
StaticFile.get_headerswhitenoise/responders.py:1762 ms7.0%
formatdate<stdlib>/email/utils.py:2662 ms7.0%
format_datetime<stdlib>/email/utils.py:2842 ms7.0%
StaticFile.__init__whitenoise/responders.py:722 ms7.0%
StaticFile.get_file_statswhitenoise/responders.py:1612 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%
ProjectsPageTest.setUpapps/projects/tests.py:101 self.client.force_login(self.user)7 ms21.0%
ClientMixin.force_logindjango/test/client.py:8557 ms21.0%
ClientMixin._logindjango/test/client.py:8817 ms21.0%
logindjango/contrib/auth/__init__.py:1875 ms14.0%
SessionBase.cycle_keydjango/contrib/sessions/backends/base.py:4342 ms7.0%
SessionStore.createdjango/contrib/sessions/backends/db.py:702 ms7.0%
SessionBase._get_new_session_keydjango/contrib/sessions/backends/base.py:1982 ms7.0%
SessionStore.existsdjango/contrib/sessions/backends/db.py:632 ms7.0%
QuerySet.existsdjango/db/models/query.py:13372 ms7.0%
Query.has_resultsdjango/db/models/sql/query.py:6812 ms7.0%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15922 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%
SessionBase.cycle_keydjango/contrib/sessions/backends/base.py:4372 ms7.0%
SessionStore.deletedjango/contrib/sessions/backends/db.py:1752 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%
logindjango/contrib/auth/__init__.py:1972 ms7.0%
Signal.senddjango/dispatch/dispatcher.py:2092 ms7.0%
update_last_logindjango/contrib/auth/models.py:242 ms7.0%
AbstractBaseUser.savedjango/contrib/auth/base_user.py:622 ms7.0%
Model.savedjango/db/models/base.py:8742 ms7.0%
Model.save_basedjango/db/models/base.py:9662 ms7.0%
Model._save_tabledjango/db/models/base.py:11102 ms7.0%
Model._do_updatedjango/db/models/base.py:12112 ms7.0%
QuerySet._updatedjango/db/models/query.py:13272 ms7.0%
SQLUpdateCompiler.execute_returning_sqldjango/db/models/sql/compiler.py:21402 ms7.0%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21112 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%
ProjectsPageTest.test_not_logged_inapps/projects/tests.py:104 self.client.logout()7 ms21.0%
ClientMixin.logoutdjango/test/client.py:9212 ms7.0%
ClientMixin.sessiondjango/test/client.py:8102 ms7.0%
__init____init__:-12 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: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.logoutdjango/test/client.py:9272 ms7.0%
logoutdjango/contrib/auth/__init__.py:2582 ms7.0%
SessionBase.flushdjango/contrib/sessions/backends/base.py:4202 ms7.0%
SessionStore.deletedjango/contrib/sessions/backends/db.py:1752 ms7.0%
Model.deletedjango/db/models/base.py:12982 ms7.0%
Collector.deletedjango/db/models/deletion.py:4522 ms7.0%
DeleteQuery.delete_batchdjango/db/models/sql/subqueries.py:432 ms7.0%
DeleteQuery.do_querydjango/db/models/sql/subqueries.py:252 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%
Estimated from 14 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
apps/projects/tests.py:105
response = self.client.get("/projects/")
ProjectsPageTest.test_not_logged_in
· Libraries
|
19 ms |
|
apps/projects/tests.py:101
self.client.force_login(self.user)
ProjectsPageTest.setUp
· Database
|
7 ms |
|
apps/projects/tests.py:104
self.client.logout()
ProjectsPageTest.test_not_logged_in
· Database
|
7 ms |
Fixtures
Exact setup time| _dj_autoclear_mailbox function | 0.04 ms |
| _django_set_urlconf function | 0.03 ms |
| _live_server_helper function | 0.03 ms |
| _template_string_if_invalid_marker function | 0.03 ms |
| _django_db_marker 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:104
|
26 ms |
|
call setUp
apps/projects/tests.py:101
|
7 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 | 40 ms | Profile |
| 2 weeks, 6 days ago | CI github-actions:test | passed | 27 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 61 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 28 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 50 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 30 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 51 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 30 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 51 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 | 182 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 25 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 56 ms | Profile |