Tests / apps/projects/tests.py
ProjectsPageTest::test_not_logged_in
First seen 2 years, 9 months ago in b9e98d9
CI
github-actions:test
5 runs
Average
72 ms
median 50 ms
max 182 ms
max 182 ms
Phases
Setup 0.79 ms
Call 71 ms
Teardown 0.18 ms
Categories
Database 10 ms
Other (Libraries, pytest, Unsampled) 62 ms
24 database queries per run
Needs 64 KB of memory (max 316 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, an hour ago ·
open run
setup0.93 ms1.9%
CallInfo.from_call_pytest/runner.py:3530.93 ms1.9%
call_and_report.<locals>.<lambda>_pytest/runner.py:2450.93 ms1.9%
HookCaller.__call__pluggy/_hooks.py:5120.93 ms1.9%
PluginManager._hookexecpluggy/_manager.py:1200.93 ms1.9%
_multicallpluggy/_callers.py:1210.93 ms1.9%
pytest_runtest_setup_pytest/runner.py:1650.93 ms1.9%
SetupState.setup_pytest/runner.py:5230.93 ms1.9%
TestCaseFunction.setup_pytest/unittest.py:2270.93 ms1.9%
Function.setup_pytest/python.py:17230.93 ms1.9%
TopRequest._fillfixtures_pytest/fixtures.py:7070.93 ms1.9%
FixtureRequest.getfixturevalue_pytest/fixtures.py:5390.93 ms1.9%
FixtureRequest._get_active_fixturedef_pytest/fixtures.py:6270.93 ms1.9%
call49 ms97.8%
CallInfo.from_call_pytest/runner.py:35349 ms97.8%
call_and_report.<locals>.<lambda>_pytest/runner.py:24549 ms97.8%
HookCaller.__call__pluggy/_hooks.py:51249 ms97.8%
PluginManager._hookexecpluggy/_manager.py:12049 ms97.8%
_multicallpluggy/_callers.py:12149 ms97.8%
pytest_runtest_call_pytest/runner.py:17949 ms97.8%
_django_setup_unittest.<locals>.non_debugging_runtestpytest_django/plugin.py:57349 ms97.8%
SimpleTestCase.__call__django/test/testcases.py:31347 ms94.0%
SimpleTestCase._setup_and_calldjango/test/testcases.py:36845 ms90.2%
TestCase.__call__<stdlib>/unittest/case.py:74745 ms90.2%
TestCase.run<stdlib>/unittest/case.py:69132 ms63.9%
TestCase._callTestMethod<stdlib>/unittest/case.py:63732 ms63.9%
ProjectsPageTest.test_not_logged_inapps/projects/tests.py:104 response = self.client.get("/projects/")32 ms63.9%
Client.getdjango/test/client.py:112432 ms63.9%
RequestFactory.getdjango/test/client.py:47532 ms63.9%
RequestFactory.genericdjango/test/client.py:67132 ms63.9%
Client.requestdjango/test/client.py:108232 ms63.9%
ClientHandler.__call__django/test/client.py:17332 ms63.9%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6232 ms63.9%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10432 ms63.9%
WhiteNoise.add_fileswhitenoise/base.py:10832 ms63.9%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12026 ms52.6%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13126 ms52.6%
WhiteNoise.get_static_filewhitenoise/base.py:20821 ms41.4%
StaticFile.__init__whitenoise/responders.py:729 ms18.8%
StaticFile.get_file_statswhitenoise/responders.py:1617 ms15.0%
__init____init__:-17 ms15.0%
FileEntry.__init__whitenoise/responders.py:2637 ms15.0%
FileEntry.stat_regular_filewhitenoise/responders.py:2767 ms15.0%
<GC>~7 ms15.0%
StaticFile.__init__whitenoise/responders.py:734 ms7.5%
StaticFile.get_headerswhitenoise/responders.py:1764 ms7.5%
formatdate<stdlib>/email/utils.py:2664 ms7.5%
StaticFile.__init__whitenoise/responders.py:762 ms3.8%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1902 ms3.8%
Response.__init__whitenoise/responders.py:182 ms3.8%
<GC>~2 ms3.8%
StaticFile.__init__whitenoise/responders.py:742 ms3.8%
parsedate<stdlib>/email/_parseaddr.py:1852 ms3.8%
StaticFile.__init__whitenoise/responders.py:772 ms3.8%
StaticFile.get_alternativeswhitenoise/responders.py:2002 ms3.8%
WhiteNoise.get_static_filewhitenoise/base.py:2032 ms3.8%
WhiteNoise.add_cache_headerswhitenoise/base.py:2242 ms3.8%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1762 ms3.8%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1156 ms11.3%
scantreewhitenoise/base.py:2624 ms7.5%
scantreewhitenoise/base.py:2624 ms7.5%
scantreewhitenoise/base.py:2622 ms3.8%
scantreewhitenoise/base.py:2622 ms3.8%
scantreewhitenoise/base.py:2642 ms3.8%
scantreewhitenoise/base.py:2642 ms3.8%
TestCase.run<stdlib>/unittest/case.py:68713 ms26.3%
TestCase._callSetUp<stdlib>/unittest/case.py:63413 ms26.3%
ProjectsPageTest.setUpapps/projects/tests.py:100 self.client.force_login(self.user)13 ms26.3%
ClientMixin.force_logindjango/test/client.py:85513 ms26.3%
ClientMixin._logindjango/test/client.py:8817 ms15.0%
logindjango/contrib/auth/__init__.py:1876 ms11.3%
SessionBase.cycle_keydjango/contrib/sessions/backends/base.py:4374 ms7.5%
SessionStore.deletedjango/contrib/sessions/backends/db.py:1754 ms7.5%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms3.8%
QuerySet.getdjango/db/models/query.py:6252 ms3.8%
QuerySet.filterdjango/db/models/query.py:15422 ms3.8%
QuerySet._filter_or_excludedjango/db/models/query.py:15602 ms3.8%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:15702 ms3.8%
Model.deletedjango/db/models/base.py:12982 ms3.8%
Collector.deletedjango/db/models/deletion.py:4522 ms3.8%
DeleteQuery.delete_batchdjango/db/models/sql/subqueries.py:432 ms3.8%
DeleteQuery.do_querydjango/db/models/sql/subqueries.py:252 ms3.8%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms3.8%
CursorWrapper.executedjango/db/backends/utils.py:792 ms3.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.8%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1002 ms3.8%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms3.8%
Cursor.executepsycopg/cursor.py:1132 ms3.8%
Connection.waitpsycopg/connection.py:4952 ms3.8%
SessionBase.cycle_keydjango/contrib/sessions/backends/base.py:4342 ms3.8%
SessionStore.createdjango/contrib/sessions/backends/db.py:742 ms3.8%
SessionStore.savedjango/contrib/sessions/backends/db.py:1232 ms3.8%
SessionStore.create_model_instancedjango/contrib/sessions/backends/db.py:1002 ms3.8%
Model.__init__django/db/models/base.py:4912 ms3.8%
logindjango/contrib/auth/__init__.py:1752 ms3.8%
SessionBase.__contains__django/contrib/sessions/backends/base.py:522 ms3.8%
SessionBase._get_sessiondjango/contrib/sessions/backends/base.py:2512 ms3.8%
SessionStore.loaddjango/contrib/sessions/backends/db.py:552 ms3.8%
SessionStore._get_session_from_dbdjango/contrib/sessions/backends/db.py:342 ms3.8%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms3.8%
QuerySet.getdjango/db/models/query.py:6352 ms3.8%
QuerySet.__len__django/db/models/query.py:3722 ms3.8%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms3.8%
ModelIterable.__iter__django/db/models/query.py:952 ms3.8%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms3.8%
CursorWrapper.executedjango/db/backends/utils.py:792 ms3.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.8%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1002 ms3.8%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms3.8%
Cursor.executepsycopg/cursor.py:1132 ms3.8%
Connection.waitpsycopg/connection.py:4952 ms3.8%
ClientMixin._logindjango/test/client.py:8834 ms7.5%
SessionStore.savedjango/contrib/sessions/backends/db.py:1232 ms3.8%
SessionStore.create_model_instancedjango/contrib/sessions/backends/db.py:1032 ms3.8%
SessionStore.savedjango/contrib/sessions/backends/db.py:1262 ms3.8%
Atomic.__exit__django/db/transaction.py:2472 ms3.8%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms3.8%
BaseDatabaseWrapper.savepoint_commitdjango/db/backends/base/base.py:4312 ms3.8%
BaseDatabaseWrapper._savepoint_commitdjango/db/backends/base/base.py:3752 ms3.8%
CursorWrapper.executedjango/db/backends/utils.py:792 ms3.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.8%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1002 ms3.8%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms3.8%
Cursor.executepsycopg/cursor.py:1132 ms3.8%
Connection.waitpsycopg/connection.py:4952 ms3.8%
ClientMixin._logindjango/test/client.py:8762 ms3.8%
ClientMixin.sessiondjango/test/client.py:8122 ms3.8%
SessionStore.savedjango/contrib/sessions/backends/db.py:1212 ms3.8%
SessionStore.createdjango/contrib/sessions/backends/db.py:702 ms3.8%
SessionBase._get_new_session_keydjango/contrib/sessions/backends/base.py:1982 ms3.8%
SessionStore.existsdjango/contrib/sessions/backends/db.py:632 ms3.8%
QuerySet.existsdjango/db/models/query.py:13372 ms3.8%
Query.has_resultsdjango/db/models/sql/query.py:6812 ms3.8%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15922 ms3.8%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms3.8%
CursorWrapper.executedjango/db/backends/utils.py:792 ms3.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.8%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1002 ms3.8%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms3.8%
Cursor.executepsycopg/cursor.py:1132 ms3.8%
Connection.waitpsycopg/connection.py:4952 ms3.8%
SimpleTestCase._setup_and_calldjango/test/testcases.py:3712 ms3.8%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()2 ms3.8%
TestCase._fixture_teardowndjango/test/testcases.py:14972 ms3.8%
TestCase._rollback_atomicsdjango/test/testcases.py:14052 ms3.8%
Atomic.__exit__django/db/transaction.py:2832 ms3.8%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms3.8%
BaseDatabaseWrapper.savepoint_rollbackdjango/db/backends/base/base.py:4132 ms3.8%
BaseDatabaseWrapper._savepoint_rollbackdjango/db/backends/base/base.py:3712 ms3.8%
CursorWrapper.executedjango/db/backends/utils.py:792 ms3.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.8%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1002 ms3.8%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms3.8%
Cursor.executepsycopg/cursor.py:1132 ms3.8%
Connection.waitpsycopg/connection.py:4952 ms3.8%
teardown0.19 ms0.4%
Estimated from 28 samples; phase durations are exact. Frames from pytest and pluggy are
shown
.
Hot lines in your code
|
apps/projects/tests.py:104
response = self.client.get("/projects/")
ProjectsPageTest.test_not_logged_in
· Libraries
|
32 ms |
|
apps/projects/tests.py:100
self.client.force_login(self.user)
ProjectsPageTest.setUp
· Database
|
13 ms |
Fixtures
Exact setup time| _template_string_if_invalid_marker function | 0.06 ms |
| _live_server_helper function | 0.06 ms |
| _dj_autoclear_mailbox function | 0.05 ms |
| _django_db_marker function | 0.05 ms |
| _django_set_urlconf function | 0.04 ms |
| _django_clear_site_cache function | 0.03 ms |
| monkeypatch function | 0.02 ms |
Database
24 queries · 7 msNo repeated queries.
Biggest pieces of work
|
call test body
apps/projects/tests.py:104
|
32 ms |
|
call setUp
apps/projects/tests.py:100
|
13 ms |
| call pytest internals | 2 ms |
|
call _post_teardown
django/test/testcases.py:1240
|
2 ms |
| setup pytest internals | 0.93 ms |
Reliability
5 results · 0 CI failures · 0 local failuresThis test hasn't failed recently.
History
Latest 50 results, oldest first in the strip| When | Environment | Outcome | Duration | |
|---|---|---|---|---|
| an hour ago | CI github-actions:test | passed | 50 ms | Profile |
| an hour ago | CI github-actions:test | passed | 49 ms | Profile |
| 8 hours ago | CI github-actions:test | passed | 182 ms | Profile |
| 8 hours ago | CI github-actions:test | passed | 25 ms | Profile |
| 8 hours ago | CI github-actions:test | passed | 56 ms | Profile |
| 2 years ago | CI github-actions | passed | 97 ms | Run |
| 2 years, 2 months ago | CI github-actions | passed | 92 ms | Run |
| 2 years, 3 months ago | CI github-actions | passed | 101 ms | Run |
| 2 years, 4 months ago | CI github-actions | passed | 103 ms | Run |
| 2 years, 4 months ago | CI github-actions | passed | 187 ms | Run |
| 2 years, 4 months ago | CI github-actions | passed | 105 ms | Run |
| 2 years, 4 months ago | CI github-actions | passed | 94 ms | Run |
| 2 years, 5 months ago | CI github-actions | passed | 95 ms | Run |
| 2 years, 5 months ago | CI github-actions | passed | 91 ms | Run |
| 2 years, 5 months ago | CI github-actions | passed | 94 ms | Run |
| 2 years, 5 months ago | CI github-actions | passed | 92 ms | Run |
| 2 years, 5 months ago | CI github-actions | passed | 94 ms | Run |
| 2 years, 6 months ago | CI github-actions | passed | 93 ms | Run |
| 2 years, 6 months ago | CI github-actions | passed | 93 ms | Run |
| 2 years, 6 months ago | CI github-actions | passed | 90 ms | Run |