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

TestDocsPage::test_docs

First seen 8 hours ago in 78a4357
CI github-actions:test 5 runs
Average
44 ms
median 49 ms
max 52 ms
Phases
Setup 9 ms Call 35 ms Teardown 0.18 ms
Categories
Database 11 ms Other (Libraries, Templates, pytest, Unsampled) 33 ms

5 database queries per run

Needs 62 KB of memory (max 120 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 44 minutes ago · open run
Show pytest frames
setup11 ms20.9%
TestCase.setUpClassdjango/test/testcases.py:1423 cls.cls_atomics = cls._enter_atomics()10 ms19.0%
TestCase._enter_atomicsdjango/test/testcases.py:139610 ms19.0%
Atomic.__enter__django/db/transaction.py:19810 ms19.0%
BaseDatabaseWrapper.get_autocommitdjango/db/backends/base/base.py:45410 ms19.0%
SimpleTestCase.ensure_connection_patch_method.<locals>.patched_ensure_connectiondjango/test/testcases.py:30310 ms19.0%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2610 ms19.0%
BaseDatabaseWrapper.ensure_connectiondjango/db/backends/base/base.py:27910 ms19.0%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2610 ms19.0%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:2569 ms17.1%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:269 ms17.1%
DatabaseWrapper.get_new_connectiondjango/db/backends/postgresql/base.py:3339 ms17.1%
Connection.connectpsycopg/connection.py:1098 ms15.2%
wait_connpsycopg/waiting.py:1414 ms7.6%
EpollSelector.select<stdlib>/selectors.py:4524 ms7.6%
wait_connpsycopg/waiting.py:1453 ms5.7%
BaseConnection._connect_genpsycopg/_connection_base.py:4393 ms5.7%
wait_connpsycopg/waiting.py:1360.99 ms1.9%
BaseConnection._connect_genpsycopg/_connection_base.py:4390.99 ms1.9%
Connection.connectpsycopg/connection.py:1070.99 ms1.9%
make_conninfopsycopg/conninfo.py:620.99 ms1.9%
_parse_conninfopsycopg/conninfo.py:1010.99 ms1.9%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:2550.99 ms1.9%
call41 ms78.8%
TestDocsPage.test_docsft/tests.py:66 response = self.client.get(reverse("docs"))36 ms69.5%
Client.getdjango/test/client.py:112436 ms69.5%
RequestFactory.getdjango/test/client.py:47536 ms69.5%
RequestFactory.genericdjango/test/client.py:67136 ms69.5%
Client.requestdjango/test/client.py:108236 ms69.5%
ClientHandler.__call__django/test/client.py:17334 ms64.9%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6234 ms64.9%
__init____init__:-134 ms64.9%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10429 ms55.6%
WhiteNoise.add_fileswhitenoise/base.py:10829 ms55.6%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12022 ms41.7%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13122 ms41.7%
WhiteNoise.get_static_filewhitenoise/base.py:20812 ms23.2%
StaticFile.__init__whitenoise/responders.py:775 ms9.3%
StaticFile.get_alternativeswhitenoise/responders.py:2002 ms4.6%
StaticFile.__init__whitenoise/responders.py:722 ms4.6%
StaticFile.get_file_statswhitenoise/responders.py:1612 ms4.6%
__init____init__:-12 ms4.6%
FileEntry.__init__whitenoise/responders.py:2632 ms4.6%
FileEntry.stat_regular_filewhitenoise/responders.py:2762 ms4.6%
<GC>~2 ms4.6%
StaticFile.__init__whitenoise/responders.py:742 ms4.6%
parsedate<stdlib>/email/_parseaddr.py:1852 ms4.6%
StaticFile.__init__whitenoise/responders.py:732 ms4.6%
StaticFile.get_headerswhitenoise/responders.py:1762 ms4.6%
WhiteNoise.get_static_filewhitenoise/base.py:2037 ms13.9%
WhiteNoise.add_cache_headerswhitenoise/base.py:2247 ms13.9%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1767 ms13.9%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1977 ms13.9%
URLMixin.urldebug_toolbar/panels/staticfiles.py:207 ms13.9%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:2052 ms4.6%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:1842 ms4.6%
WhiteNoise.get_static_filewhitenoise/base.py:2022 ms4.6%
WhiteNoise.add_mime_headerswhitenoise/base.py:2212 ms4.6%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1157 ms13.9%
scantreewhitenoise/base.py:2627 ms13.9%
scantreewhitenoise/base.py:2627 ms13.9%
scantreewhitenoise/base.py:2625 ms9.3%
scantreewhitenoise/base.py:2625 ms9.3%
scantreewhitenoise/base.py:2622 ms4.6%
scantreewhitenoise/base.py:2602 ms4.6%
scantreewhitenoise/base.py:2642 ms4.6%
scantreewhitenoise/base.py:2642 ms4.6%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:402 ms4.6%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:1112 ms4.6%
WhiteNoise.add_fileswhitenoise/base.py:1082 ms4.6%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1202 ms4.6%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:1312 ms4.6%
WhiteNoise.get_static_filewhitenoise/base.py:2082 ms4.6%
StaticFile.__init__whitenoise/responders.py:722 ms4.6%
StaticFile.get_file_statswhitenoise/responders.py:1612 ms4.6%
ClientHandler.__call__django/test/client.py:1862 ms4.6%
BaseHandler.get_responsedjango/core/handlers/base.py:1412 ms4.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms4.6%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1302 ms4.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms4.6%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms4.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms4.6%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:1232 ms4.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms4.6%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms4.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms4.6%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms4.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms4.6%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms4.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms4.6%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms4.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms4.6%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms4.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms4.6%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms4.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms4.6%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:342 ms4.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms4.6%
BaseHandler._get_responsedjango/core/handlers/base.py:1982 ms4.6%
make_middleware_decorator.<locals>._make_decorator.<locals>._decorator.<locals>._view_wrapperdjango/utils/decorators.py:1902 ms4.6%
vary_on_headers.<locals>.decorator.<locals>._view_wrapperdjango/views/decorators/vary.py:312 ms4.6%
docsft/urls.py:57 return render(request, "docs.html")2 ms4.6%
renderdjango/shortcuts.py:252 ms4.6%
render_to_stringdjango/template/loader.py:612 ms4.6%
get_templatedjango/template/loader.py:152 ms4.6%
DjangoTemplates.get_templatedjango/template/backends/django.py:792 ms4.6%
Engine.get_templatedjango/template/engine.py:1862 ms4.6%
Engine.find_templatedjango/template/engine.py:1592 ms4.6%
Loader.get_templatedjango/template/loaders/cached.py:572 ms4.6%
Loader.get_templatedjango/template/loaders/base.py:282 ms4.6%
__init____init__:-12 ms4.6%
Template.__init__django/template/base.py:1572 ms4.6%
Template.compile_nodelistdjango/template/base.py:1902 ms4.6%
DebugLexer.tokenizedjango/template/base.py:4932 ms4.6%
DebugLexer._tag_re_splitdjango/template/base.py:4792 ms4.6%
DebugLexer._tag_re_split_positionsdjango/template/base.py:4702 ms4.6%
TransactionTestCase._pre_setupdjango/test/testcases.py:1164 cls._fixture_setup()2 ms4.6%
TestCase._fixture_setupdjango/test/testcases.py:14782 ms4.6%
TestCase._enter_atomicsdjango/test/testcases.py:13962 ms4.6%
Atomic.__enter__django/db/transaction.py:2112 ms4.6%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms4.6%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4002 ms4.6%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3672 ms4.6%
CursorWrapper.executedjango/db/backends/utils.py:792 ms4.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms4.6%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms4.6%
Cursor.executepsycopg/cursor.py:1132 ms4.6%
Connection.waitpsycopg/connection.py:4952 ms4.6%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()2 ms4.6%
TestCase._fixture_teardowndjango/test/testcases.py:14942 ms4.6%
TestCase._should_check_constraintsdjango/test/testcases.py:15032 ms4.6%
DatabaseWrapper.is_usabledjango/db/backends/postgresql/base.py:4922 ms4.6%
Cursor.executepsycopg/cursor.py:1132 ms4.6%
Estimated from 28 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

ft/tests.py:66
response = self.client.get(reverse("docs"))
TestDocsPage.test_docs · Libraries
34 ms
ft/urls.py:57
return render(request, "docs.html")
docs · Templates
2 ms

Fixtures

Exact setup time
_unittest_setUpClass_fixture_TestDocsPage class 9 ms
_django_setup_unittest class 0.35 ms
_django_db_marker function 0.05 ms
_dj_autoclear_mailbox function 0.05 ms
_template_string_if_invalid_marker function 0.05 ms
_django_clear_site_cache function 0.04 ms
_django_set_urlconf function 0.04 ms
_live_server_helper function 0.03 ms
monkeypatch function 0.02 ms

Database

5 queries · 2 ms
No repeated queries.

Biggest pieces of work

call test body
ft/tests.py:66
36 ms
setup setUpClass
django/test/testcases.py:1423
10 ms
call _pre_setup
django/test/testcases.py:1164
2 ms
call _post_teardown
django/test/testcases.py:1240
2 ms
setup pytest internals 0.99 ms

Reliability

5 results · 0 CI failures · 0 local failures

This test hasn't failed recently.

History

Latest 5 results, oldest first in the strip
When Environment Outcome Duration Commit
44 minutes ago CI github-actions:test passed 52 ms 9caa567 main Profile
an hour ago CI github-actions:test passed 49 ms ec75501 main Profile
7 hours ago CI github-actions:test passed 52 ms d2c12e5 main Profile
8 hours ago CI github-actions:test passed 22 ms 0b902f6 main Profile
8 hours ago CI github-actions:test passed 47 ms 78a4357 main Profile