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

TestDocsPage::test_docs

First seen 3 weeks ago in 78a4357
CI github-actions:test 12 runs
Average
44 ms
median 48 ms
max 61 ms
Phases
Setup 9 ms Call 35 ms Teardown 0.17 ms
Categories
Database 13 ms Test code 0.15 ms Other (Libraries, Templates, pytest, Unsampled) 31 ms

5 database queries per run

Needs 33 KB of memory (max 120 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 16 hours ago · open run
Show pytest frames
setup9 ms20.1%
TestCase.setUpClassdjango/test/testcases.py:1423 cls.cls_atomics = cls._enter_atomics()9 ms20.1%
TestCase._enter_atomicsdjango/test/testcases.py:13969 ms20.1%
Atomic.__enter__django/db/transaction.py:1989 ms20.1%
BaseDatabaseWrapper.get_autocommitdjango/db/backends/base/base.py:4549 ms20.1%
SimpleTestCase.ensure_connection_patch_method.<locals>.patched_ensure_connectiondjango/test/testcases.py:3039 ms20.1%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:269 ms20.1%
BaseDatabaseWrapper.ensure_connectiondjango/db/backends/base/base.py:2799 ms20.1%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:269 ms20.1%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:2568 ms18.0%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:268 ms18.0%
DatabaseWrapper.get_new_connectiondjango/db/backends/postgresql/base.py:3338 ms18.0%
Connection.connectpsycopg/connection.py:1098 ms18.0%
wait_connpsycopg/waiting.py:1454 ms8.0%
BaseConnection._connect_genpsycopg/_connection_base.py:4394 ms8.0%
wait_connpsycopg/waiting.py:1413 ms6.0%
EpollSelector.select<stdlib>/selectors.py:4523 ms6.0%
wait_connpsycopg/waiting.py:1362 ms4.0%
BaseConnection._connect_genpsycopg/_connection_base.py:4392 ms4.0%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:2580.93 ms2.0%
DatabaseWrapper.init_connection_statedjango/db/backends/postgresql/base.py:4020.93 ms2.0%
DatabaseWrapper._configure_connectiondjango/db/backends/postgresql/base.py:3740.93 ms2.0%
DatabaseWrapper._configure_timezonedjango/db/backends/postgresql/base.py:3570.93 ms2.0%
Cursor.executepsycopg/cursor.py:1130.93 ms2.0%
Connection.waitpsycopg/connection.py:4950.93 ms2.0%
call37 ms79.5%
TestDocsPage.test_docsft/tests.py:66 response = self.client.get(reverse("docs"))35 ms74.5%
Client.getdjango/test/client.py:112435 ms74.5%
RequestFactory.getdjango/test/client.py:47535 ms74.5%
RequestFactory.genericdjango/test/client.py:67135 ms74.5%
Client.requestdjango/test/client.py:108235 ms74.5%
ClientHandler.__call__django/test/client.py:17335 ms74.5%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6235 ms74.5%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10435 ms74.5%
WhiteNoise.add_fileswhitenoise/base.py:10835 ms74.5%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12028 ms59.6%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13128 ms59.6%
WhiteNoise.get_static_filewhitenoise/base.py:20823 ms49.7%
StaticFile.__init__whitenoise/responders.py:737 ms14.9%
StaticFile.get_headerswhitenoise/responders.py:1762 ms5.0%
formatdate<stdlib>/email/utils.py:2662 ms5.0%
StaticFile.get_headerswhitenoise/responders.py:1712 ms5.0%
StaticFile.get_headerswhitenoise/responders.py:1782 ms5.0%
parsedate<stdlib>/email/_parseaddr.py:1852 ms5.0%
StaticFile.__init__whitenoise/responders.py:777 ms14.9%
StaticFile.get_alternativeswhitenoise/responders.py:2005 ms9.9%
__init____init__:-12 ms5.0%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:502 ms5.0%
StaticFile.get_alternativeswhitenoise/responders.py:1972 ms5.0%
StaticFile.__init__whitenoise/responders.py:747 ms14.9%
parsedate<stdlib>/email/_parseaddr.py:1852 ms5.0%
Headers.__getitem__<stdlib>/wsgiref/headers.py:832 ms5.0%
StaticFile.get_alternativeswhitenoise/responders.py:2012 ms5.0%
StaticFile.__init__whitenoise/responders.py:722 ms5.0%
StaticFile.get_file_statswhitenoise/responders.py:1632 ms5.0%
WhiteNoise.get_static_filewhitenoise/base.py:2022 ms5.0%
WhiteNoise.get_static_filewhitenoise/base.py:2032 ms5.0%
WhiteNoise.add_cache_headerswhitenoise/base.py:2242 ms5.0%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1155 ms9.9%
scantreewhitenoise/base.py:2625 ms9.9%
scantreewhitenoise/base.py:2625 ms9.9%
scantreewhitenoise/base.py:2642 ms5.0%
scantreewhitenoise/base.py:2622 ms5.0%
scantreewhitenoise/base.py:2622 ms5.0%
scantreewhitenoise/base.py:2622 ms5.0%
scantreewhitenoise/base.py:2642 ms5.0%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()2 ms5.0%
TestCase._fixture_teardowndjango/test/testcases.py:14952 ms5.0%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4822 ms5.0%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms5.0%
BaseDatabaseWrapper.cursordjango/db/backends/base/base.py:3202 ms5.0%
BaseDatabaseWrapper._cursordjango/db/backends/base/base.py:2982 ms5.0%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms5.0%
DatabaseWrapper.create_cursordjango/db/backends/postgresql/base.py:4302 ms5.0%
Connection.cursorpsycopg/connection.py:2592 ms5.0%
Cursor.__init__psycopg/cursor.py:472 ms5.0%
Estimated from 26 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
35 ms

Fixtures

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

Database

5 queries · 0.93 ms
No repeated queries.

Biggest pieces of work

call test body
ft/tests.py:66
35 ms
setup setUpClass
django/test/testcases.py:1423
9 ms
call _post_teardown
django/test/testcases.py:1240
2 ms

Reliability

12 results · 0 CI failures · 0 local failures

This test hasn't failed recently.

History

Latest 12 results, oldest first in the strip
When Environment Outcome Duration Commit
16 hours ago CI github-actions:test passed 47 ms e141198 main Profile
1 week, 5 days ago CI github-actions:test passed 25 ms 46ec2aa main Profile
2 weeks, 1 day ago CI github-actions:test passed 59 ms afde85b main Profile
2 weeks, 1 day ago CI github-actions:test passed 39 ms fe29f9d main Profile
2 weeks, 1 day ago CI github-actions:test passed 61 ms 044719a main Profile
2 weeks, 2 days ago CI github-actions:test passed 28 ms b3fedae main Profile
2 weeks, 4 days ago CI github-actions:test passed 53 ms 43c4eda main Profile
2 weeks, 6 days ago CI github-actions:test passed 52 ms 9caa567 main Profile
2 weeks, 6 days ago CI github-actions:test passed 49 ms ec75501 main Profile
3 weeks ago CI github-actions:test passed 52 ms d2c12e5 main Profile
3 weeks ago CI github-actions:test passed 22 ms 0b902f6 main Profile
3 weeks ago CI github-actions:test passed 47 ms 78a4357 main Profile