Tests / ft/tests.py
TestGetStartedPage::test_get_started
First seen 2 years, 11 months ago in b9e98d9
CI
github-actions:test
15 runs
Average
42 ms
median 46 ms
max 56 ms
max 56 ms
Phases
Setup 9 ms
Call 32 ms
Teardown 1 ms
Categories
Database 11 ms
Other (Libraries, Templates, pytest, Unsampled) 32 ms
5 database queries per run
Needs 248 KB of memory (max 724 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 2 weeks ago ·
open run
setup7 ms19.6%
TestCase.setUpClassdjango/test/testcases.py:1423 cls.cls_atomics = cls._enter_atomics()7 ms19.6%
TestCase._enter_atomicsdjango/test/testcases.py:13967 ms19.6%
Atomic.__enter__django/db/transaction.py:1987 ms19.6%
BaseDatabaseWrapper.get_autocommitdjango/db/backends/base/base.py:4547 ms19.6%
SimpleTestCase.ensure_connection_patch_method.<locals>.patched_ensure_connectiondjango/test/testcases.py:3037 ms19.6%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:267 ms19.6%
BaseDatabaseWrapper.ensure_connectiondjango/db/backends/base/base.py:2797 ms19.6%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:267 ms19.6%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:2567 ms19.6%
DatabaseWrapper.get_new_connectionft/db/postgresql/base.py:39 return super().get_new_connection(conn_params)7 ms19.6%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:267 ms19.6%
DatabaseWrapper.get_new_connectiondjango/db/backends/postgresql/base.py:3337 ms19.6%
Connection.connectpsycopg/connection.py:1097 ms19.6%
wait_connpsycopg/waiting.py:1414 ms9.8%
EpollSelector.select<stdlib>/selectors.py:4524 ms9.8%
wait_connpsycopg/waiting.py:1454 ms9.8%
BaseConnection._connect_genpsycopg/_connection_base.py:4394 ms9.8%
call28 ms79.0%
TestGetStartedPage.test_get_startedft/tests.py:65 response = self.client.get(reverse("get_started"))25 ms69.1%
Client.getdjango/test/client.py:112425 ms69.1%
RequestFactory.getdjango/test/client.py:47525 ms69.1%
RequestFactory.genericdjango/test/client.py:67125 ms69.1%
Client.requestdjango/test/client.py:108225 ms69.1%
ClientHandler.__call__django/test/client.py:17314 ms39.5%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6214 ms39.5%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10414 ms39.5%
WhiteNoise.add_fileswhitenoise/base.py:10814 ms39.5%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12011 ms29.6%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13111 ms29.6%
WhiteNoise.get_static_filewhitenoise/base.py:2037 ms19.8%
WhiteNoise.add_cache_headerswhitenoise/base.py:2244 ms9.9%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1764 ms9.9%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1974 ms9.9%
URLMixin.urldebug_toolbar/panels/staticfiles.py:204 ms9.9%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:2054 ms9.9%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:1864 ms9.9%
FileSystemStorage.urldjango/core/files/storage/filesystem.py:2094 ms9.9%
WhiteNoise.get_static_filewhitenoise/base.py:2084 ms9.9%
StaticFile.__init__whitenoise/responders.py:734 ms9.9%
StaticFile.get_headerswhitenoise/responders.py:1674 ms9.9%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1154 ms9.9%
scantreewhitenoise/base.py:2624 ms9.9%
scantreewhitenoise/base.py:2624 ms9.9%
scantreewhitenoise/base.py:2624 ms9.9%
scantreewhitenoise/base.py:2624 ms9.9%
scantreewhitenoise/base.py:2624 ms9.9%
scantreewhitenoise/base.py:2644 ms9.9%
ClientHandler.__call__django/test/client.py:1867 ms19.8%
BaseHandler.get_responsedjango/core/handlers/base.py:1417 ms19.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms19.8%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1307 ms19.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms19.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3097 ms19.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms19.8%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:1237 ms19.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms19.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3097 ms19.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms19.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3097 ms19.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms19.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3097 ms19.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms19.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3097 ms19.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms19.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3097 ms19.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms19.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3097 ms19.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms19.8%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:347 ms19.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms19.8%
BaseHandler._get_responsedjango/core/handlers/base.py:1987 ms19.8%
make_middleware_decorator.<locals>._make_decorator.<locals>._decorator.<locals>._view_wrapperdjango/utils/decorators.py:1904 ms9.9%
vary_on_headers.<locals>.decorator.<locals>._view_wrapperdjango/views/decorators/vary.py:314 ms9.9%
get_startedft/urls.py:51 return render(request, "get_started.html", {"logged_in": request.user.is_authenticated})4 ms9.9%
renderdjango/shortcuts.py:264 ms9.9%
HttpResponse.__init__django/http/response.py:3804 ms9.9%
make_middleware_decorator.<locals>._make_decorator.<locals>._decorator.<locals>._view_wrapperdjango/utils/decorators.py:1964 ms9.9%
make_middleware_decorator.<locals>._make_decorator.<locals>._decorator.<locals>._post_process_requestdjango/utils/decorators.py:1634 ms9.9%
UpdateCacheMiddleware.process_responsedjango/middleware/cache.py:1284 ms9.9%
patch_response_headersdjango/utils/cache.py:2864 ms9.9%
http_datedjango/utils/http.py:974 ms9.9%
formatdate<stdlib>/email/utils.py:2664 ms9.9%
format_datetime<stdlib>/email/utils.py:2844 ms9.9%
ClientHandler.__call__django/test/client.py:2074 ms9.9%
HttpResponseBase.closedjango/http/response.py:3414 ms9.9%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()4 ms9.9%
TestCase._fixture_teardowndjango/test/testcases.py:14944 ms9.9%
TestCase._should_check_constraintsdjango/test/testcases.py:15034 ms9.9%
DatabaseWrapper.is_usabledjango/db/backends/postgresql/base.py:4924 ms9.9%
Cursor.executepsycopg/cursor.py:1134 ms9.9%
Connection.waitpsycopg/connection.py:4954 ms9.9%
teardown0.49 ms1.4%
TestCase.tearDownClassdjango/test/testcases.py:1450 cls._databases_support_transactions()0.49 ms1.4%
TestCase._databases_support_transactionsdjango/test/testcases.py:14090.49 ms1.4%
connections_support_transactionsdjango/test/testcases.py:13220.49 ms1.4%
Estimated from 15 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
ft/tests.py:65
response = self.client.get(reverse("get_started"))
TestGetStartedPage.test_get_started
· Libraries
|
21 ms |
|
ft/db/postgresql/base.py:39
return super().get_new_connection(conn_params)
DatabaseWrapper.get_new_connection
· Database
|
7 ms |
|
ft/urls.py:51
return render(request, "get_started.html", {"logged_in": request.user.is_authenticated})
get_started
· Libraries
|
4 ms |
Fixtures
Exact setup time| _unittest_setUpClass_fixture_TestGetStartedPage class | 6 ms |
| _django_setup_unittest class | 0.20 ms |
| _dj_autoclear_mailbox function | 0.05 ms |
| _template_string_if_invalid_marker function | 0.04 ms |
| _django_db_marker function | 0.03 ms |
| _django_set_urlconf function | 0.02 ms |
| _live_server_helper function | 0.02 ms |
| monkeypatch function | 0.02 ms |
| _django_clear_site_cache function | 0.02 ms |
Database
5 queries · 0.43 msNo repeated queries.
Biggest pieces of work
|
call test body
ft/tests.py:65
|
25 ms |
|
setup setUpClass
django/test/testcases.py:1423
|
7 ms |
|
call _post_teardown
django/test/testcases.py:1240
|
4 ms |
|
teardown tearDownClass
django/test/testcases.py:1450
|
0.49 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 | 36 ms | Profile |
| 2 weeks, 4 days ago | CI github-actions:test | passed | 51 ms | Profile |
| 2 weeks, 6 days ago | CI github-actions:test | passed | 28 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 42 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 25 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 49 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 39 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 53 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 29 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 | 52 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 | 56 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 27 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 46 ms | Profile |