flakytest.dev anze3db flakytest
Tests / ft/tests.py

TestGetStartedPage::test_get_started

First seen 2 years, 9 months ago in b9e98d9
CI github-actions:test 5 runs
Average
46 ms
median 50 ms
max 56 ms
Phases
Setup 10 ms Call 36 ms Teardown 0.87 ms
Categories
Database 10 ms Other (Libraries, pytest, Templates, Unsampled) 36 ms

5 database queries per run

Needs 600 KB of memory (max 724 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 17 minutes ago · open run
Show pytest frames
setup10 ms18.8%
TestCase.setUpClassdjango/test/testcases.py:1423 cls.cls_atomics = cls._enter_atomics()8 ms15.0%
TestCase._enter_atomicsdjango/test/testcases.py:13968 ms15.0%
Atomic.__enter__django/db/transaction.py:1988 ms15.0%
BaseDatabaseWrapper.get_autocommitdjango/db/backends/base/base.py:4548 ms15.0%
SimpleTestCase.ensure_connection_patch_method.<locals>.patched_ensure_connectiondjango/test/testcases.py:3038 ms15.0%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:268 ms15.0%
BaseDatabaseWrapper.ensure_connectiondjango/db/backends/base/base.py:2798 ms15.0%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:268 ms15.0%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:2568 ms15.0%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:268 ms15.0%
DatabaseWrapper.get_new_connectiondjango/db/backends/postgresql/base.py:3338 ms15.0%
Connection.connectpsycopg/connection.py:1097 ms13.2%
wait_connpsycopg/waiting.py:1454 ms7.5%
BaseConnection._connect_genpsycopg/_connection_base.py:4394 ms7.5%
wait_connpsycopg/waiting.py:1413 ms5.6%
EpollSelector.select<stdlib>/selectors.py:4523 ms5.6%
Connection.connectpsycopg/connection.py:1070.98 ms1.9%
make_conninfopsycopg/conninfo.py:620.98 ms1.9%
_parse_conninfopsycopg/conninfo.py:1010.98 ms1.9%
_gt_from_lt<stdlib>/functools.py:91 op_result = type(self).__lt__(self, other)0.98 ms1.9%
call41 ms79.3%
TestGetStartedPage.test_get_startedft/tests.py:59 response = self.client.get(reverse("get_started"))39 ms74.6%
Client.getdjango/test/client.py:112439 ms74.6%
RequestFactory.getdjango/test/client.py:47539 ms74.6%
RequestFactory.genericdjango/test/client.py:67139 ms74.6%
Client.requestdjango/test/client.py:108239 ms74.6%
ClientHandler.__call__django/test/client.py:17334 ms65.3%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6234 ms65.3%
__init____init__:-134 ms65.3%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10434 ms65.3%
WhiteNoise.add_fileswhitenoise/base.py:10834 ms65.3%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12027 ms51.3%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13124 ms46.7%
WhiteNoise.get_static_filewhitenoise/base.py:20819 ms37.3%
StaticFile.__init__whitenoise/responders.py:7710 ms18.7%
StaticFile.get_alternativeswhitenoise/responders.py:20110 ms18.7%
StaticFile.get_alternatives.<locals>.<lambda>whitenoise/responders.py:1987 ms14.0%
Headers.__setitem__<stdlib>/wsgiref/headers.py:622 ms4.7%
StaticFile.__init__whitenoise/responders.py:735 ms9.3%
StaticFile.get_headerswhitenoise/responders.py:1782 ms4.7%
parsedate<stdlib>/email/_parseaddr.py:1852 ms4.7%
StaticFile.get_headerswhitenoise/responders.py:1762 ms4.7%
StaticFile.__init__whitenoise/responders.py:752 ms4.7%
Headers.__getitem__<stdlib>/wsgiref/headers.py:832 ms4.7%
Headers.get<stdlib>/wsgiref/headers.py:1062 ms4.7%
StaticFile.__init__whitenoise/responders.py:742 ms4.7%
parsedate<stdlib>/email/_parseaddr.py:1852 ms4.7%
WhiteNoise.get_static_filewhitenoise/base.py:2025 ms9.3%
WhiteNoise.add_mime_headerswhitenoise/base.py:2212 ms4.7%
Headers.add_header<stdlib>/wsgiref/headers.py:1842 ms4.7%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1157 ms14.0%
scantreewhitenoise/base.py:2627 ms14.0%
scantreewhitenoise/base.py:2627 ms14.0%
scantreewhitenoise/base.py:2645 ms9.3%
scantreewhitenoise/base.py:2622 ms4.7%
scantreewhitenoise/base.py:2622 ms4.7%
scantreewhitenoise/base.py:2622 ms4.7%
scantreewhitenoise/base.py:2642 ms4.7%
ClientHandler.__call__django/test/client.py:1865 ms9.3%
BaseHandler.get_responsedjango/core/handlers/base.py:1415 ms9.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms9.3%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1305 ms9.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms9.3%
MiddlewareMixin.__call__django/utils/deprecation.py:3095 ms9.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms9.3%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:1235 ms9.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms9.3%
MiddlewareMixin.__call__django/utils/deprecation.py:3095 ms9.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms9.3%
MiddlewareMixin.__call__django/utils/deprecation.py:3095 ms9.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms9.3%
MiddlewareMixin.__call__django/utils/deprecation.py:3095 ms9.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms9.3%
MiddlewareMixin.__call__django/utils/deprecation.py:3095 ms9.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms9.3%
MiddlewareMixin.__call__django/utils/deprecation.py:3095 ms9.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms9.3%
MiddlewareMixin.__call__django/utils/deprecation.py:3095 ms9.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms9.3%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:345 ms9.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms9.3%
BaseHandler._get_responsedjango/core/handlers/base.py:1985 ms9.3%
make_middleware_decorator.<locals>._make_decorator.<locals>._decorator.<locals>._view_wrapperdjango/utils/decorators.py:1902 ms4.7%
vary_on_headers.<locals>.decorator.<locals>._view_wrapperdjango/views/decorators/vary.py:312 ms4.7%
get_startedft/urls.py:51 return render(request, "get_started.html", {"logged_in": request.user.is_authenticated})2 ms4.7%
renderdjango/shortcuts.py:252 ms4.7%
render_to_stringdjango/template/loader.py:622 ms4.7%
Template.renderdjango/template/backends/django.py:1072 ms4.7%
Template.renderdjango/template/base.py:1742 ms4.7%
instrumented_test_renderdjango/test/utils.py:1142 ms4.7%
NodeList.renderdjango/template/base.py:10912 ms4.7%
Node.render_annotateddjango/template/base.py:10522 ms4.7%
ExtendsNode.renderdjango/template/loader_tags.py:1602 ms4.7%
instrumented_test_renderdjango/test/utils.py:1142 ms4.7%
NodeList.renderdjango/template/base.py:10912 ms4.7%
Node.render_annotateddjango/template/base.py:10522 ms4.7%
ExtendsNode.renderdjango/template/loader_tags.py:1602 ms4.7%
instrumented_test_renderdjango/test/utils.py:1142 ms4.7%
NodeList.renderdjango/template/base.py:10912 ms4.7%
Node.render_annotateddjango/template/base.py:10522 ms4.7%
BlockNode.renderdjango/template/loader_tags.py:662 ms4.7%
NodeList.renderdjango/template/base.py:10912 ms4.7%
Node.render_annotateddjango/template/base.py:10522 ms4.7%
IncludeNode.renderdjango/template/loader_tags.py:2002 ms4.7%
make_middleware_decorator.<locals>._make_decorator.<locals>._decorator.<locals>._view_wrapperdjango/utils/decorators.py:1962 ms4.7%
make_middleware_decorator.<locals>._make_decorator.<locals>._decorator.<locals>._post_process_requestdjango/utils/decorators.py:1632 ms4.7%
UpdateCacheMiddleware.process_responsedjango/middleware/cache.py:852 ms4.7%
TransactionTestCase._pre_setupdjango/test/testcases.py:1164 cls._fixture_setup()2 ms4.7%
TestCase._fixture_setupdjango/test/testcases.py:14782 ms4.7%
TestCase._enter_atomicsdjango/test/testcases.py:13962 ms4.7%
Atomic.__enter__django/db/transaction.py:2112 ms4.7%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms4.7%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4002 ms4.7%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3672 ms4.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms4.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms4.7%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms4.7%
Cursor.executepsycopg/cursor.py:1132 ms4.7%
Connection.waitpsycopg/connection.py:4952 ms4.7%
Estimated from 27 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

ft/tests.py:59
response = self.client.get(reverse("get_started"))
TestGetStartedPage.test_get_started · Libraries
36 ms
ft/urls.py:51
return render(request, "get_started.html", {"logged_in": request.user.is_authenticated})
get_started · Templates
2 ms

Fixtures

Exact setup time
_unittest_setUpClass_fixture_TestGetStartedPage class 8 ms
_django_setup_unittest class 0.49 ms
_django_db_marker function 0.06 ms
_django_clear_site_cache function 0.05 ms
_template_string_if_invalid_marker function 0.04 ms
_django_set_urlconf function 0.04 ms
_dj_autoclear_mailbox function 0.04 ms
_live_server_helper function 0.03 ms
monkeypatch function 0.02 ms

Database

5 queries · 1 ms
No repeated queries.

Biggest pieces of work

call test body
ft/tests.py:59
39 ms
setup setUpClass
django/test/testcases.py:1423
8 ms
call _pre_setup
django/test/testcases.py:1164
2 ms
setup _gt_from_lt
<stdlib>/functools.py:91
0.98 ms
setup pytest internals 0.98 ms

Reliability

5 results · 0 CI failures · 0 local failures

This test hasn't failed recently.

History

Latest 50 results, oldest first in the strip
When Environment Outcome Duration Commit
17 minutes ago CI github-actions:test passed 52 ms 9caa567 main Profile
42 minutes ago CI github-actions:test passed 50 ms ec75501 main Profile
7 hours ago CI github-actions:test passed 56 ms d2c12e5 main Profile
7 hours ago CI github-actions:test passed 27 ms 0b902f6 main Profile
7 hours ago CI github-actions:test passed 46 ms 78a4357 main Profile
2 years ago CI github-actions passed 201 ms 61209a6 main Run
2 years, 2 months ago CI github-actions passed 255 ms 55ca4c2 main Run
2 years, 3 months ago CI github-actions passed 187 ms d007c85 main Run
2 years, 4 months ago CI github-actions passed 189 ms 3d86013 main Run
2 years, 4 months ago CI github-actions passed 189 ms bed0acb main Run
2 years, 4 months ago CI github-actions passed 261 ms 78c1737 main Run
2 years, 4 months ago CI github-actions passed 180 ms 1a5664b main Run
2 years, 5 months ago CI github-actions passed 178 ms c3680ac main Run
2 years, 5 months ago CI github-actions passed 178 ms 06a1df4 main Run
2 years, 5 months ago CI github-actions passed 185 ms a29c34e main Run
2 years, 5 months ago CI github-actions passed 176 ms e55e63f main Run
2 years, 5 months ago CI github-actions passed 181 ms ba5cb67 main Run
2 years, 6 months ago CI github-actions passed 181 ms 7c123d8 main Run
2 years, 6 months ago CI github-actions passed 181 ms 5ae45e1 main Run
2 years, 6 months ago CI github-actions passed 175 ms 1680367 main Run