Tests / ft/tests.py
TestIndexPage::test_landing_page_when_signed_in
First seen 1 month, 1 week ago in 78a4357
CI
github-actions:test
15 runs
Average
51 ms
median 55 ms
max 76 ms
max 76 ms
Phases
Setup 0.64 ms
Call 49 ms
Teardown 1 ms
Categories
Database 26 ms
Test code 0.13 ms
Other (Libraries, Templates, Unsampled, pytest) 25 ms
32 database queries per run
Needs 260 KB of memory (max 792 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 2 weeks ago ·
open run
call45 ms94.5%
TestIndexPage.test_landing_page_when_signed_inft/tests.py:28 response = self.client.get(reverse("index")) # its header links to its own sections, e.g. /#cloud18 ms37.0%
Client.getdjango/test/client.py:112418 ms37.0%
RequestFactory.getdjango/test/client.py:47518 ms37.0%
RequestFactory.genericdjango/test/client.py:67118 ms37.0%
Client.requestdjango/test/client.py:108218 ms37.0%
ClientHandler.__call__django/test/client.py:17318 ms37.0%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6218 ms37.0%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10414 ms28.7%
WhiteNoise.add_fileswhitenoise/base.py:10814 ms28.7%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12010 ms20.5%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13110 ms20.5%
WhiteNoise.get_static_filewhitenoise/base.py:2088 ms16.4%
StaticFile.__init__whitenoise/responders.py:724 ms8.2%
StaticFile.get_file_statswhitenoise/responders.py:1612 ms4.1%
StaticFile.get_file_statswhitenoise/responders.py:1572 ms4.1%
StaticFile.__init__whitenoise/responders.py:772 ms4.1%
StaticFile.get_alternativeswhitenoise/responders.py:2002 ms4.1%
__init____init__:-12 ms4.1%
StaticFile.__init__whitenoise/responders.py:732 ms4.1%
StaticFile.get_headerswhitenoise/responders.py:1762 ms4.1%
WhiteNoise.get_static_filewhitenoise/base.py:2032 ms4.1%
WhiteNoise.add_cache_headerswhitenoise/base.py:2242 ms4.1%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1762 ms4.1%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1154 ms8.2%
scantreewhitenoise/base.py:2624 ms8.2%
scantreewhitenoise/base.py:2624 ms8.2%
scantreewhitenoise/base.py:2624 ms8.2%
scantreewhitenoise/base.py:2624 ms8.2%
scantreewhitenoise/base.py:2642 ms4.1%
scantreewhitenoise/base.py:2622 ms4.1%
scantreewhitenoise/base.py:2642 ms4.1%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:1114 ms8.2%
WhiteNoise.add_fileswhitenoise/base.py:1084 ms8.2%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1204 ms8.2%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:1314 ms8.2%
WhiteNoise.get_static_filewhitenoise/base.py:2084 ms8.2%
StaticFile.__init__whitenoise/responders.py:772 ms4.1%
StaticFile.get_alternativeswhitenoise/responders.py:2012 ms4.1%
StaticFile.__init__whitenoise/responders.py:732 ms4.1%
StaticFile.get_headerswhitenoise/responders.py:1712 ms4.1%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()10 ms20.5%
TestCase._fixture_teardowndjango/test/testcases.py:14948 ms16.4%
TestCase._should_check_constraintsdjango/test/testcases.py:15038 ms16.4%
DatabaseWrapper.is_usabledjango/db/backends/postgresql/base.py:4926 ms12.3%
Cursor.executepsycopg/cursor.py:1136 ms12.3%
Connection.waitpsycopg/connection.py:4956 ms12.3%
BaseCursor._execute_genpsycopg/_cursor_base.py:2066 ms12.3%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2866 ms12.3%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:786 ms12.3%
TestCase._fixture_teardowndjango/test/testcases.py:14952 ms4.1%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4832 ms4.1%
CursorWrapper.executedjango/db/backends/utils.py:792 ms4.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms4.1%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms4.1%
Cursor.executepsycopg/cursor.py:1132 ms4.1%
Connection.waitpsycopg/connection.py:4952 ms4.1%
TestIndexPage.test_landing_page_when_signed_inft/tests.py:266 ms12.3%
add_memberapps/projects/testing.py:76 membership, _ = Membership.objects.get_or_create(4 ms8.2%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:874 ms8.2%
QuerySet.get_or_createdjango/db/models/query.py:9872 ms4.1%
QuerySet.getdjango/db/models/query.py:6352 ms4.1%
QuerySet.__len__django/db/models/query.py:3722 ms4.1%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms4.1%
ModelIterable.__iter__django/db/models/query.py:952 ms4.1%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms4.1%
CursorWrapper.executedjango/db/backends/utils.py:792 ms4.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms4.1%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms4.1%
Cursor.executepsycopg/cursor.py:1132 ms4.1%
Connection.waitpsycopg/connection.py:4952 ms4.1%
QuerySet.get_or_createdjango/db/models/query.py:9922 ms4.1%
Atomic.__exit__django/db/transaction.py:2472 ms4.1%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms4.1%
BaseDatabaseWrapper.savepoint_commitdjango/db/backends/base/base.py:4312 ms4.1%
BaseDatabaseWrapper._savepoint_commitdjango/db/backends/base/base.py:3752 ms4.1%
CursorWrapper.executedjango/db/backends/utils.py:792 ms4.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms4.1%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms4.1%
Cursor.executepsycopg/cursor.py:1132 ms4.1%
Connection.waitpsycopg/connection.py:4952 ms4.1%
make_projectapps/projects/testing.py:61 organization = Organization.objects.create(2 ms4.1%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms4.1%
QuerySet.createdjango/db/models/query.py:6692 ms4.1%
Model.savedjango/db/models/base.py:8742 ms4.1%
Model.save_basedjango/db/models/base.py:9662 ms4.1%
Model._save_tabledjango/db/models/base.py:11672 ms4.1%
Model._do_insertdjango/db/models/base.py:12182 ms4.1%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms4.1%
QuerySet._insertdjango/db/models/query.py:19182 ms4.1%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19252 ms4.1%
CursorWrapper.executedjango/db/backends/utils.py:792 ms4.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms4.1%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms4.1%
Cursor.executepsycopg/cursor.py:1132 ms4.1%
Connection.waitpsycopg/connection.py:4952 ms4.1%
TestIndexPage.test_landing_page_when_signed_inft/tests.py:27 self.client.force_login(user)6 ms12.3%
ClientMixin.force_logindjango/test/client.py:8556 ms12.3%
ClientMixin._logindjango/test/client.py:8816 ms12.3%
logindjango/contrib/auth/__init__.py:1752 ms4.1%
SessionBase.__contains__django/contrib/sessions/backends/base.py:522 ms4.1%
SessionBase._get_sessiondjango/contrib/sessions/backends/base.py:2512 ms4.1%
SessionStore.loaddjango/contrib/sessions/backends/db.py:552 ms4.1%
SessionStore._get_session_from_dbdjango/contrib/sessions/backends/db.py:342 ms4.1%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms4.1%
QuerySet.getdjango/db/models/query.py:6352 ms4.1%
QuerySet.__len__django/db/models/query.py:3722 ms4.1%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms4.1%
ModelIterable.__iter__django/db/models/query.py:952 ms4.1%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms4.1%
CursorWrapper.executedjango/db/backends/utils.py:792 ms4.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms4.1%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms4.1%
Cursor.executepsycopg/cursor.py:1132 ms4.1%
Connection.waitpsycopg/connection.py:4952 ms4.1%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms4.1%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms4.1%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms4.1%
logindjango/contrib/auth/__init__.py:1872 ms4.1%
SessionBase.cycle_keydjango/contrib/sessions/backends/base.py:4372 ms4.1%
SessionStore.deletedjango/contrib/sessions/backends/db.py:1752 ms4.1%
Model.deletedjango/db/models/base.py:12982 ms4.1%
Collector.deletedjango/db/models/deletion.py:4502 ms4.1%
Collector.can_fast_deletedjango/db/models/deletion.py:2052 ms4.1%
Collector._has_signal_listenersdjango/db/models/deletion.py:1822 ms4.1%
logindjango/contrib/auth/__init__.py:1972 ms4.1%
Signal.senddjango/dispatch/dispatcher.py:2092 ms4.1%
update_last_logindjango/contrib/auth/models.py:242 ms4.1%
AbstractBaseUser.savedjango/contrib/auth/base_user.py:622 ms4.1%
Model.savedjango/db/models/base.py:8742 ms4.1%
Model.save_basedjango/db/models/base.py:9662 ms4.1%
Model._save_tabledjango/db/models/base.py:11102 ms4.1%
Model._do_updatedjango/db/models/base.py:12112 ms4.1%
QuerySet._updatedjango/db/models/query.py:13272 ms4.1%
SQLUpdateCompiler.execute_returning_sqldjango/db/models/sql/compiler.py:21402 ms4.1%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21112 ms4.1%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms4.1%
CursorWrapper.executedjango/db/backends/utils.py:792 ms4.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms4.1%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms4.1%
Cursor.executepsycopg/cursor.py:1132 ms4.1%
Connection.waitpsycopg/connection.py:4952 ms4.1%
TestIndexPage.test_landing_page_when_signed_inft/tests.py:30 self.assertContains(response, f'href="{reverse("projects")}"') # open dashboard4 ms8.2%
SimpleTestCase.assertContainsdjango/test/testcases.py:6032 ms4.1%
SimpleTestCase._assert_containsdjango/test/testcases.py:5902 ms4.1%
TestIndexPage.test_landing_page_when_signed_inft/tests.py:25 user = User.objects.create_user("testuser")2 ms4.1%
UserManager.create_userdjango/contrib/auth/models.py:1752 ms4.1%
UserManager._create_userdjango/contrib/auth/models.py:1632 ms4.1%
AbstractBaseUser.savedjango/contrib/auth/base_user.py:622 ms4.1%
Model.savedjango/db/models/base.py:8742 ms4.1%
Model.save_basedjango/db/models/base.py:9662 ms4.1%
Model._save_tabledjango/db/models/base.py:11672 ms4.1%
Model._do_insertdjango/db/models/base.py:12182 ms4.1%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms4.1%
QuerySet._insertdjango/db/models/query.py:19182 ms4.1%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19232 ms4.1%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms4.1%
BaseDatabaseWrapper.cursordjango/db/backends/base/base.py:3202 ms4.1%
BaseDatabaseWrapper._cursordjango/db/backends/base/base.py:2982 ms4.1%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms4.1%
DatabaseWrapper.create_cursordjango/db/backends/postgresql/base.py:4302 ms4.1%
Connection.cursorpsycopg/connection.py:2592 ms4.1%
teardown2 ms4.4%
TestCase.tearDownClassdjango/test/testcases.py:1455 conn.close()0.70 ms1.5%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:260.70 ms1.5%
BaseDatabaseWrapper.closedjango/db/backends/base/base.py:3550.70 ms1.5%
DatabaseWrapper._closedjango/db/backends/postgresql/base.py:3960.70 ms1.5%
Connection.closepsycopg/connection.py:2010.70 ms1.5%
Estimated from 26 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
ft/tests.py:28
response = self.client.get(reverse("index")) # its header links to its own sections, e.g. /#cloud
TestIndexPage.test_landing_page_when_signed_in
· Libraries
|
18 ms |
|
ft/tests.py:27
self.client.force_login(user)
TestIndexPage.test_landing_page_when_signed_in
· Database
|
6 ms |
|
apps/projects/testing.py:76
membership, _ = Membership.objects.get_or_create(
add_member
· Database
|
4 ms |
|
ft/tests.py:30
self.assertContains(response, f'href="{reverse("projects")}"') # open dashboard
TestIndexPage.test_landing_page_when_signed_in
· Test code
|
4 ms |
|
ft/tests.py:25
user = User.objects.create_user("testuser")
TestIndexPage.test_landing_page_when_signed_in
· Database
|
2 ms |
|
apps/projects/testing.py:61
organization = Organization.objects.create(
make_project
· Database
|
2 ms |
Fixtures
Exact setup time| _dj_autoclear_mailbox function | 0.04 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.02 ms |
| _django_clear_site_cache function | 0.02 ms |
| monkeypatch function | 0.01 ms |
Database
32 queries · 8 msNo repeated queries.
Biggest pieces of work
|
call test body
ft/tests.py:25
|
35 ms |
|
call _post_teardown
django/test/testcases.py:1240
|
10 ms |
| teardown pytest internals | 1 ms |
|
teardown tearDownClass
django/test/testcases.py:1455
|
0.70 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 | 48 ms | Profile |
| 2 weeks, 4 days ago | CI github-actions:test | passed | 55 ms | Profile |
| 2 weeks, 6 days ago | CI github-actions:test | passed | 30 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 66 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 30 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 | 76 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 37 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 | 56 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 56 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 63 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 28 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 67 ms | Profile |