flakytest.dev anze3db fedidevs
Tests / posts/tests.py

TestDjangoConUSLegacyRedirect::test_djangoconus_date_redirects

First seen 12 hours ago in 0c23747
CI github-actions:test 4 runs
Average
135 ms
median 143 ms
max 193 ms
Phases
Setup 18 ms Call 117 ms Teardown 0.30 ms
Categories
Database 16 ms Other (Libraries, Unsampled, pytest) 119 ms

5 database queries per run

Needs 1 MB of memory (max 1 MB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 7 hours ago · open run
Show pytest frames
setup10 ms16.5%
TestCase.setUpClassdjango/test/testcases.py:1426 cls.cls_atomics = cls._enter_atomics()10 ms16.5%
TestCase._enter_atomicsdjango/test/testcases.py:139910 ms16.5%
Atomic.__enter__django/db/transaction.py:21010 ms16.5%
BaseDatabaseWrapper.get_autocommitdjango/db/backends/base/base.py:45410 ms16.5%
SimpleTestCase.ensure_connection_patch_method.<locals>.patched_ensure_connectiondjango/test/testcases.py:30410 ms16.5%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2610 ms16.5%
BaseDatabaseWrapper.ensure_connectiondjango/db/backends/base/base.py:27910 ms16.5%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2610 ms16.5%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:25610 ms16.5%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2610 ms16.5%
DatabaseWrapper.get_new_connectiondjango/db/backends/postgresql/base.py:34510 ms16.5%
Connection.connectpsycopg/connection.py:1099 ms14.7%
wait_connpsycopg/waiting.py:1414 ms7.3%
EpollSelector.select<stdlib>/selectors.py:4524 ms7.3%
wait_connpsycopg/waiting.py:1454 ms7.3%
BaseConnection._connect_genpsycopg/_connection_base.py:4394 ms7.3%
Connection.connectpsycopg/connection.py:971 ms1.8%
Connection._get_connection_paramspsycopg/connection.py:1851 ms1.8%
conninfo_to_dictpsycopg/conninfo.py:821 ms1.8%
_parse_conninfopsycopg/conninfo.py:1011 ms1.8%
call50 ms83.1%
TestDjangoConUSLegacyRedirect.test_djangoconus_date_redirectsposts/tests.py:30 response = self.client.get(reverse("djangoconus", args=[dt.date(2023, 10, 16)]))46 ms75.2%
Client.getdjango/test/client.py:113346 ms75.2%
RequestFactory.getdjango/test/client.py:47546 ms75.2%
RequestFactory.genericdjango/test/client.py:67146 ms75.2%
Client.requestdjango/test/client.py:109146 ms75.2%
ClientHandler.__call__django/test/client.py:17346 ms75.2%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6346 ms75.2%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10446 ms75.2%
WhiteNoise.add_fileswhitenoise/base.py:10846 ms75.2%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12029 ms47.5%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13129 ms47.5%
WhiteNoise.get_static_filewhitenoise/base.py:21722 ms35.6%
StaticFile.__init__whitenoise/responders.py:7710 ms15.8%
StaticFile.get_alternativeswhitenoise/responders.py:2035 ms7.9%
Headers.__setitem__<stdlib>/wsgiref/headers.py:605 ms7.9%
<GC>~5 ms7.9%
StaticFile.get_alternativeswhitenoise/responders.py:1982 ms4.0%
StaticFile.get_alternativeswhitenoise/responders.py:2002 ms4.0%
StaticFile.__init__whitenoise/responders.py:735 ms7.9%
StaticFile.get_headerswhitenoise/responders.py:1712 ms4.0%
StaticFile.get_headerswhitenoise/responders.py:1672 ms4.0%
StaticFile.__init__whitenoise/responders.py:722 ms4.0%
StaticFile.get_file_statswhitenoise/responders.py:1622 ms4.0%
StaticFile.__init__whitenoise/responders.py:742 ms4.0%
parsedate<stdlib>/email/_parseaddr.py:1852 ms4.0%
WhiteNoise.get_static_filewhitenoise/base.py:2127 ms11.9%
WhiteNoise.add_cache_headerswhitenoise/base.py:2335 ms7.9%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1765 ms7.9%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1975 ms7.9%
URLMixin.urldebug_toolbar/panels/staticfiles.py:205 ms7.9%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:2352 ms4.0%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:2162 ms4.0%
FileSystemStorage.urldjango/core/files/storage/filesystem.py:2042 ms4.0%
WhiteNoise.add_cache_headerswhitenoise/base.py:2362 ms4.0%
WhiteNoise.update_files_dictionarywhitenoise/base.py:11514 ms23.7%
scantreewhitenoise/base.py:27112 ms19.8%
scantreewhitenoise/base.py:27110 ms15.8%
scantreewhitenoise/base.py:2695 ms7.9%
scantreewhitenoise/base.py:2712 ms4.0%
scantreewhitenoise/base.py:2712 ms4.0%
scantreewhitenoise/base.py:2712 ms4.0%
scantreewhitenoise/base.py:2732 ms4.0%
scantreewhitenoise/base.py:2732 ms4.0%
<GC>~2 ms4.0%
scantreewhitenoise/base.py:2732 ms4.0%
TransactionTestCase._pre_setupdjango/test/testcases.py:1167 cls._fixture_setup()2 ms4.0%
TestCase._fixture_setupdjango/test/testcases.py:14812 ms4.0%
TestCase._enter_atomicsdjango/test/testcases.py:13992 ms4.0%
Atomic.__enter__django/db/transaction.py:2232 ms4.0%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms4.0%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4002 ms4.0%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3672 ms4.0%
CursorWrapper.executedjango/db/backends/utils.py:792 ms4.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms4.0%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms4.0%
Cursor.executepsycopg/cursor.py:1132 ms4.0%
Connection.waitpsycopg/connection.py:4952 ms4.0%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms4.0%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms4.0%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms4.0%
TransactionTestCase._post_teardowndjango/test/testcases.py:1243 self._fixture_teardown()2 ms4.0%
TestCase._fixture_teardowndjango/test/testcases.py:14982 ms4.0%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4952 ms4.0%
CursorWrapper.executedjango/db/backends/utils.py:792 ms4.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms4.0%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms4.0%
Cursor.executepsycopg/cursor.py:1132 ms4.0%
Connection.waitpsycopg/connection.py:4952 ms4.0%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms4.0%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms4.0%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms4.0%
Estimated from 30 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

posts/tests.py:30
response = self.client.get(reverse("djangoconus", args=[dt.date(2023, 10, 16)]))
TestDjangoConUSLegacyRedirect.test_djangoconus_date_redirects · Libraries
46 ms

Fixtures

Exact setup time
_unittest_setUpClass_fixture_TestDjangoConUSLegacyRedirect class 9 ms
_django_setup_unittest class 0.27 ms
_live_server_helper function 0.07 ms
_template_string_if_invalid_marker function 0.05 ms
_django_db_marker function 0.05 ms
_dj_autoclear_mailbox function 0.04 ms
_django_isolate_apps function 0.03 ms
_django_set_urlconf function 0.03 ms
_django_clear_site_cache function 0.03 ms
monkeypatch function 0.02 ms

Database

5 queries · 1 ms
No repeated queries.

Biggest pieces of work

call test body
posts/tests.py:30
46 ms
setup setUpClass
django/test/testcases.py:1426
10 ms
call _pre_setup
django/test/testcases.py:1167
2 ms
call _post_teardown
django/test/testcases.py:1243
2 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
7 hours ago CI github-actions:test passed 61 ms d923a46 main Profile
7 hours ago CI github-actions:test passed 150 ms 82997f8 main Profile
7 hours ago CI github-actions:test passed 193 ms 623aa3e main Profile
12 hours ago CI github-actions:test passed 136 ms ab6465a main Profile
12 hours ago CI github-actions:test passed 73 ms 0c23747 main Run