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

TestSubscribePages::test_subscribe_success_uses_tailwind_layout

First seen 12 hours ago in 0c23747
CI github-actions:test 4 runs
Average
200 ms
median 235 ms
max 263 ms
Phases
Setup 20 ms Call 180 ms Teardown 0.30 ms
Categories
Database 27 ms Other (Libraries, Templates, pytest, Unsampled) 173 ms

6 database queries per run

Needs 889 KB 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.0%
TestCase.setUpClassdjango/test/testcases.py:1426 cls.cls_atomics = cls._enter_atomics()10 ms16.0%
TestCase._enter_atomicsdjango/test/testcases.py:139910 ms16.0%
Atomic.__enter__django/db/transaction.py:21010 ms16.0%
BaseDatabaseWrapper.get_autocommitdjango/db/backends/base/base.py:45410 ms16.0%
SimpleTestCase.ensure_connection_patch_method.<locals>.patched_ensure_connectiondjango/test/testcases.py:30410 ms16.0%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2610 ms16.0%
BaseDatabaseWrapper.ensure_connectiondjango/db/backends/base/base.py:27910 ms16.0%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2610 ms16.0%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:25610 ms16.0%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2610 ms16.0%
DatabaseWrapper.get_new_connectiondjango/db/backends/postgresql/base.py:34510 ms16.0%
Connection.connectpsycopg/connection.py:10910 ms16.0%
wait_connpsycopg/waiting.py:1456 ms8.9%
BaseConnection._connect_genpsycopg/_connection_base.py:4396 ms8.9%
wait_connpsycopg/waiting.py:1415 ms7.1%
EpollSelector.select<stdlib>/selectors.py:4525 ms7.1%
call55 ms83.5%
TestSubscribePages.test_subscribe_success_uses_tailwind_layoutposts/tests.py:16 response = self.client.get(reverse("posts_subscribe_success"))51 ms77.3%
Client.getdjango/test/client.py:113351 ms77.3%
RequestFactory.getdjango/test/client.py:47551 ms77.3%
RequestFactory.genericdjango/test/client.py:67151 ms77.3%
Client.requestdjango/test/client.py:109151 ms77.3%
ClientHandler.__call__django/test/client.py:17336 ms55.7%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6336 ms55.7%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10436 ms55.7%
WhiteNoise.add_fileswhitenoise/base.py:10836 ms55.7%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12024 ms37.1%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13122 ms34.0%
WhiteNoise.get_static_filewhitenoise/base.py:21718 ms27.8%
StaticFile.__init__whitenoise/responders.py:7210 ms15.5%
StaticFile.get_file_statswhitenoise/responders.py:16110 ms15.5%
__init____init__:-18 ms12.4%
FileEntry.__init__whitenoise/responders.py:2608 ms12.4%
<GC>~8 ms12.4%
StaticFile.__init__whitenoise/responders.py:736 ms9.3%
StaticFile.get_headerswhitenoise/responders.py:1712 ms3.1%
StaticFile.get_headerswhitenoise/responders.py:1672 ms3.1%
StaticFile.get_headerswhitenoise/responders.py:1762 ms3.1%
StaticFile.__init__whitenoise/responders.py:772 ms3.1%
StaticFile.get_alternativeswhitenoise/responders.py:2032 ms3.1%
WhiteNoise.get_static_filewhitenoise/base.py:2124 ms6.2%
WhiteNoise.add_cache_headerswhitenoise/base.py:2334 ms6.2%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1762 ms3.1%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1972 ms3.1%
URLMixin.urldebug_toolbar/panels/staticfiles.py:202 ms3.1%
WhiteNoise.update_files_dictionarywhitenoise/base.py:11510 ms15.5%
scantreewhitenoise/base.py:27110 ms15.5%
scantreewhitenoise/base.py:2718 ms12.4%
scantreewhitenoise/base.py:2714 ms6.2%
scantreewhitenoise/base.py:2714 ms6.2%
scantreewhitenoise/base.py:2714 ms6.2%
scantreewhitenoise/base.py:2734 ms6.2%
scantreewhitenoise/base.py:2732 ms3.1%
<GC>~2 ms3.1%
scantreewhitenoise/base.py:2692 ms3.1%
scantreewhitenoise/base.py:2732 ms3.1%
ClientHandler.__call__django/test/client.py:18614 ms21.7%
BaseHandler.get_responsedjango/core/handlers/base.py:14214 ms21.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5614 ms21.7%
MiddlewareMixin.__call__django/utils/deprecation.py:38014 ms21.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5614 ms21.7%
MiddlewareMixin.__call__django/utils/deprecation.py:38014 ms21.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5614 ms21.7%
MiddlewareMixin.__call__django/utils/deprecation.py:38014 ms21.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5614 ms21.7%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12314 ms21.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5614 ms21.7%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:14514 ms21.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5614 ms21.7%
MiddlewareMixin.__call__django/utils/deprecation.py:38014 ms21.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5614 ms21.7%
MiddlewareMixin.__call__django/utils/deprecation.py:38014 ms21.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5614 ms21.7%
MiddlewareMixin.__call__django/utils/deprecation.py:38014 ms21.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5614 ms21.7%
MiddlewareMixin.__call__django/utils/deprecation.py:38012 ms18.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5612 ms18.6%
MiddlewareMixin.__call__django/utils/deprecation.py:38012 ms18.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5612 ms18.6%
MiddlewareMixin.__call__django/utils/deprecation.py:38012 ms18.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5612 ms18.6%
MiddlewareMixin.__call__django/utils/deprecation.py:38012 ms18.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5612 ms18.6%
BaseHandler._get_responsedjango/core/handlers/base.py:19912 ms18.6%
subscribe_successposts/views.py:72 return render(12 ms18.6%
renderdjango/shortcuts.py:2712 ms18.6%
render_to_stringdjango/template/loader.py:6210 ms15.5%
Template.renderdjango/template/backends/django.py:10710 ms15.5%
Template.renderdjango/template/base.py:17510 ms15.5%
instrumented_test_renderdjango/test/utils.py:11310 ms15.5%
NodeList.renderdjango/template/base.py:110810 ms15.5%
Node.render_annotateddjango/template/base.py:106910 ms15.5%
ExtendsNode.renderdjango/template/loader_tags.py:16010 ms15.5%
instrumented_test_renderdjango/test/utils.py:11310 ms15.5%
NodeList.renderdjango/template/base.py:110810 ms15.5%
Node.render_annotateddjango/template/base.py:106910 ms15.5%
IfNode.renderdjango/template/defaulttags.py:33310 ms15.5%
NodeList.renderdjango/template/base.py:110810 ms15.5%
Node.render_annotateddjango/template/base.py:106910 ms15.5%
IncludeNode.renderdjango/template/loader_tags.py:2118 ms12.4%
Template.renderdjango/template/base.py:1778 ms12.4%
instrumented_test_renderdjango/test/utils.py:1138 ms12.4%
NodeList.renderdjango/template/base.py:11088 ms12.4%
Node.render_annotateddjango/template/base.py:10698 ms12.4%
SimpleNode.renderdjango/template/library.py:3438 ms12.4%
instances_datalistaccounts/templatetags/account_extras.py:36 for instance in instances:6 ms9.3%
QuerySet.__iter__django/db/models/query.py:4396 ms9.3%
QuerySet._fetch_alldjango/db/models/query.py:22626 ms9.3%
FlatValuesListIterable.__iter__django/db/models/query.py:3026 ms9.3%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15746 ms9.3%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16256 ms9.3%
CursorWrapper.executedjango/db/backends/utils.py:796 ms9.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:926 ms9.3%
CursorWrapper._executedjango/db/backends/utils.py:1056 ms9.3%
Cursor.executepsycopg/cursor.py:1136 ms9.3%
Connection.waitpsycopg/connection.py:4956 ms9.3%
instances_datalistaccounts/templatetags/account_extras.py:34 instances = Instance.objects.filter(deleted_at__isnull=True).values_list("domain", flat=True)2 ms3.1%
SimpleNode.renderdjango/template/library.py:3432 ms3.1%
heroicon_outlineheroicons/templatetags/heroicons.py:232 ms3.1%
_render_iconheroicons/templatetags/heroicons.py:412 ms3.1%
_render_iconheroicons/__init__.py:472 ms3.1%
deepcopy<stdlib>/copy.py:1382 ms3.1%
render_to_stringdjango/template/loader.py:612 ms3.1%
get_templatedjango/template/loader.py:152 ms3.1%
DjangoTemplates.get_templatedjango/template/backends/django.py:792 ms3.1%
Engine.get_templatedjango/template/engine.py:1862 ms3.1%
Engine.find_templatedjango/template/engine.py:1592 ms3.1%
Loader.get_templatedjango/template/loaders/cached.py:572 ms3.1%
Loader.get_templatedjango/template/loaders/base.py:282 ms3.1%
__init____init__:-12 ms3.1%
Template.__init__django/template/base.py:1582 ms3.1%
Template.compile_nodelistdjango/template/base.py:2002 ms3.1%
Parser.parsedjango/template/base.py:6012 ms3.1%
do_extendsdjango/template/loader_tags.py:3062 ms3.1%
Parser.compile_filterdjango/template/base.py:6942 ms3.1%
__init____init__:-12 ms3.1%
FilterExpression.__init__django/template/base.py:7732 ms3.1%
__init____init__:-12 ms3.1%
Variable.__init__django/template/base.py:9232 ms3.1%
MiddlewareMixin.__call__django/utils/deprecation.py:3822 ms3.1%
CsrfViewMiddleware.process_responsedjango/middleware/csrf.py:4742 ms3.1%
CsrfViewMiddleware._set_csrf_cookiedjango/middleware/csrf.py:2582 ms3.1%
TransactionTestCase._pre_setupdjango/test/testcases.py:1167 cls._fixture_setup()2 ms3.1%
TestCase._fixture_setupdjango/test/testcases.py:14812 ms3.1%
TestCase._enter_atomicsdjango/test/testcases.py:13992 ms3.1%
Atomic.__enter__django/db/transaction.py:2232 ms3.1%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms3.1%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4002 ms3.1%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3662 ms3.1%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms3.1%
BaseDatabaseWrapper.cursordjango/db/backends/base/base.py:3202 ms3.1%
BaseDatabaseWrapper._cursordjango/db/backends/base/base.py:2982 ms3.1%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms3.1%
TransactionTestCase._post_teardowndjango/test/testcases.py:1243 self._fixture_teardown()2 ms3.1%
TestCase._fixture_teardowndjango/test/testcases.py:14982 ms3.1%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4962 ms3.1%
CursorWrapper.executedjango/db/backends/utils.py:792 ms3.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.1%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms3.1%
Cursor.executepsycopg/cursor.py:1132 ms3.1%
Connection.waitpsycopg/connection.py:4952 ms3.1%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms3.1%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms3.1%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms3.1%
Estimated from 36 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

posts/tests.py:16
response = self.client.get(reverse("posts_subscribe_success"))
TestSubscribePages.test_subscribe_success_uses_tailwind_layout · Libraries
38 ms
accounts/templatetags/account_extras.py:36
for instance in instances:
instances_datalist · Database
6 ms
posts/views.py:72
return render(
subscribe_success · Templates
4 ms
accounts/templatetags/account_extras.py:34
instances = Instance.objects.filter(deleted_at__isnull=True).values_list("domain", flat=True)
instances_datalist · Templates
2 ms

Fixtures

Exact setup time
_unittest_setUpClass_fixture_TestSubscribePages class 9 ms
_django_setup_unittest class 0.36 ms
_template_string_if_invalid_marker function 0.04 ms
_dj_autoclear_mailbox function 0.04 ms
_django_db_marker function 0.04 ms
_django_set_urlconf function 0.04 ms
_live_server_helper function 0.03 ms
_django_isolate_apps function 0.03 ms
_django_clear_site_cache function 0.03 ms
monkeypatch function 0.02 ms

Database

6 queries · 4 ms
No repeated queries.

Biggest pieces of work

call test body
posts/tests.py:16
51 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 65 ms d923a46 main Profile
7 hours ago CI github-actions:test passed 263 ms 82997f8 main Profile
7 hours ago CI github-actions:test passed 211 ms 623aa3e main Profile
12 hours ago CI github-actions:test passed 259 ms ab6465a main Profile
12 hours ago CI github-actions:test passed 80 ms 0c23747 main Run