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

TestSubscribePages::test_subscribe_success_uses_tailwind_layout

First seen 1 month, 1 week ago in 0c23747
CI github-actions:test 13 runs
Average
129 ms
median 106 ms
max 263 ms
Phases
Setup 16 ms Call 113 ms Teardown 0.64 ms
Categories
Database 28 ms App code 0.19 ms Other (Libraries, Templates, Unsampled, pytest, ...) 101 ms

6 database queries per run

Needs 627 KB of memory (max 1 MB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 2 weeks ago · open run
Show pytest frames
setup9 ms15.1%
TestCase.setUpClassdjango/test/testcases.py:1426 cls.cls_atomics = cls._enter_atomics()9 ms15.1%
TestCase._enter_atomicsdjango/test/testcases.py:13999 ms15.1%
Atomic.__enter__django/db/transaction.py:2109 ms15.1%
BaseDatabaseWrapper.get_autocommitdjango/db/backends/base/base.py:4549 ms15.1%
SimpleTestCase.ensure_connection_patch_method.<locals>.patched_ensure_connectiondjango/test/testcases.py:3049 ms15.1%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:269 ms15.1%
BaseDatabaseWrapper.ensure_connectiondjango/db/backends/base/base.py:2799 ms15.1%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:269 ms15.1%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:2569 ms15.1%
DatabaseWrapper.get_new_connectionfedidevs/db/postgresql/base.py:39 return super().get_new_connection(conn_params)9 ms15.1%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:269 ms15.1%
DatabaseWrapper.get_new_connectiondjango/db/backends/postgresql/base.py:3459 ms15.1%
Connection.connectpsycopg/connection.py:1099 ms15.1%
wait_connpsycopg/waiting.py:1418 ms12.9%
EpollSelector.select<stdlib>/selectors.py:4528 ms12.9%
wait_connpsycopg/waiting.py:1451 ms2.2%
BaseConnection._connect_genpsycopg/_connection_base.py:4391 ms2.2%
call47 ms79.5%
TestSubscribePages.test_subscribe_success_uses_tailwind_layoutposts/tests.py:16 response = self.client.get(reverse("posts_subscribe_success"))44 ms74.8%
Client.getdjango/test/client.py:113341 ms70.1%
RequestFactory.getdjango/test/client.py:47541 ms70.1%
RequestFactory.genericdjango/test/client.py:67141 ms70.1%
Client.requestdjango/test/client.py:109141 ms70.1%
ClientHandler.__call__django/test/client.py:18625 ms42.1%
BaseHandler.get_responsedjango/core/handlers/base.py:14225 ms42.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5625 ms42.1%
MiddlewareMixin.__call__django/utils/deprecation.py:38025 ms42.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5625 ms42.1%
MiddlewareMixin.__call__django/utils/deprecation.py:38025 ms42.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5625 ms42.1%
MiddlewareMixin.__call__django/utils/deprecation.py:38025 ms42.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5625 ms42.1%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12325 ms42.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5625 ms42.1%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:14525 ms42.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5625 ms42.1%
MiddlewareMixin.__call__django/utils/deprecation.py:38025 ms42.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5625 ms42.1%
MiddlewareMixin.__call__django/utils/deprecation.py:38025 ms42.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5625 ms42.1%
MiddlewareMixin.__call__django/utils/deprecation.py:38025 ms42.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5625 ms42.1%
MiddlewareMixin.__call__django/utils/deprecation.py:38025 ms42.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5625 ms42.1%
MiddlewareMixin.__call__django/utils/deprecation.py:38025 ms42.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5625 ms42.1%
MiddlewareMixin.__call__django/utils/deprecation.py:38025 ms42.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5625 ms42.1%
MiddlewareMixin.__call__django/utils/deprecation.py:38025 ms42.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5625 ms42.1%
BaseHandler._get_responsedjango/core/handlers/base.py:19925 ms42.1%
subscribe_successposts/views.py:72 return render(25 ms42.1%
renderdjango/shortcuts.py:2725 ms42.1%
render_to_stringdjango/template/loader.py:6222 ms37.4%
Template.renderdjango/template/backends/django.py:10722 ms37.4%
Template.renderdjango/template/base.py:17522 ms37.4%
instrumented_test_renderdjango/test/utils.py:11322 ms37.4%
NodeList.renderdjango/template/base.py:110822 ms37.4%
Node.render_annotateddjango/template/base.py:106922 ms37.4%
ExtendsNode.renderdjango/template/loader_tags.py:16017 ms28.1%
instrumented_test_renderdjango/test/utils.py:11317 ms28.1%
NodeList.renderdjango/template/base.py:110817 ms28.1%
Node.render_annotateddjango/template/base.py:106914 ms23.4%
IfNode.renderdjango/template/defaulttags.py:3263 ms4.7%
TemplateLiteral.evaldjango/template/defaulttags.py:9183 ms4.7%
FilterExpression.resolvedjango/template/base.py:8063 ms4.7%
Variable.resolvedjango/template/base.py:9453 ms4.7%
Variable._resolve_lookupdjango/template/base.py:9933 ms4.7%
IfNode.renderdjango/template/defaulttags.py:3333 ms4.7%
NodeList.renderdjango/template/base.py:11083 ms4.7%
StaticNode.renderdjango/templatetags/static.py:1163 ms4.7%
StaticNode.urldjango/templatetags/static.py:1133 ms4.7%
StaticNode.handle_simpledjango/templatetags/static.py:1293 ms4.7%
URLNode.renderdjango/template/defaulttags.py:5113 ms4.7%
SimpleNode.renderdjango/template/library.py:3433 ms4.7%
heroicon_outlineheroicons/templatetags/heroicons.py:233 ms4.7%
_render_iconheroicons/templatetags/heroicons.py:413 ms4.7%
_render_iconheroicons/__init__.py:653 ms4.7%
tostring<stdlib>/xml/etree/ElementTree.py:11063 ms4.7%
ElementTree.write<stdlib>/xml/etree/ElementTree.py:7433 ms4.7%
_namespaces<stdlib>/xml/etree/ElementTree.py:8583 ms4.7%
ExtendsNode.renderdjango/template/loader_tags.py:1526 ms9.4%
NodeList.get_nodes_by_typedjango/template/base.py:11143 ms4.7%
instrumented_test_renderdjango/test/utils.py:1133 ms4.7%
NodeList.renderdjango/template/base.py:11083 ms4.7%
Node.render_annotateddjango/template/base.py:10693 ms4.7%
IfNode.renderdjango/template/defaulttags.py:3333 ms4.7%
NodeList.renderdjango/template/base.py:11083 ms4.7%
Node.render_annotateddjango/template/base.py:10693 ms4.7%
TranslateNode.renderdjango/templatetags/i18n.py:913 ms4.7%
render_to_stringdjango/template/loader.py:613 ms4.7%
get_templatedjango/template/loader.py:153 ms4.7%
DjangoTemplates.get_templatedjango/template/backends/django.py:793 ms4.7%
Engine.get_templatedjango/template/engine.py:1863 ms4.7%
Engine.find_templatedjango/template/engine.py:1593 ms4.7%
Loader.get_templatedjango/template/loaders/cached.py:573 ms4.7%
Loader.get_templatedjango/template/loaders/base.py:283 ms4.7%
__init____init__:-13 ms4.7%
Template.__init__django/template/base.py:1583 ms4.7%
Template.compile_nodelistdjango/template/base.py:2003 ms4.7%
Parser.parsedjango/template/base.py:6013 ms4.7%
do_extendsdjango/template/loader_tags.py:3063 ms4.7%
Parser.compile_filterdjango/template/base.py:6943 ms4.7%
ClientHandler.__call__django/test/client.py:17317 ms28.1%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6317 ms28.1%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10417 ms28.1%
WhiteNoise.add_fileswhitenoise/base.py:10817 ms28.1%
WhiteNoise.update_files_dictionarywhitenoise/base.py:11511 ms18.7%
scantreewhitenoise/base.py:27111 ms18.7%
scantreewhitenoise/base.py:2716 ms9.4%
scantreewhitenoise/base.py:2733 ms4.7%
scantreewhitenoise/base.py:2713 ms4.7%
scantreewhitenoise/base.py:2713 ms4.7%
scantreewhitenoise/base.py:2713 ms4.7%
scantreewhitenoise/base.py:2693 ms4.7%
scantreewhitenoise/base.py:2733 ms4.7%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1206 ms9.4%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:1316 ms9.4%
WhiteNoise.get_static_filewhitenoise/base.py:2176 ms9.4%
StaticFile.__init__whitenoise/responders.py:776 ms9.4%
StaticFile.get_alternativeswhitenoise/responders.py:2013 ms4.7%
<unknown function><unknown file>3 ms4.7%
Headers.__setitem__<stdlib>/wsgiref/headers.py:643 ms4.7%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:483 ms4.7%
StaticFile.get_alternativeswhitenoise/responders.py:2033 ms4.7%
reversedjango/urls/base.py:983 ms4.7%
URLResolver._reverse_with_prefixdjango/urls/resolvers.py:8033 ms4.7%
search<stdlib>/re/__init__.py:1793 ms4.7%
_compile<stdlib>/re/__init__.py:3523 ms4.7%
compile<stdlib>/re/_compiler.py:7663 ms4.7%
_code<stdlib>/re/_compiler.py:5963 ms4.7%
Estimated from 52 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

posts/views.py:72
return render(
subscribe_success · Templates
25 ms
posts/tests.py:16
response = self.client.get(reverse("posts_subscribe_success"))
TestSubscribePages.test_subscribe_success_uses_tailwind_layout · Libraries
19 ms
fedidevs/db/postgresql/base.py:39
return super().get_new_connection(conn_params)
DatabaseWrapper.get_new_connection · Database
9 ms

Fixtures

Exact setup time
_unittest_setUpClass_fixture_TestSubscribePages class 8 ms
_django_setup_unittest class 0.24 ms
_live_server_helper function 0.07 ms
_template_string_if_invalid_marker function 0.04 ms
_django_db_marker function 0.04 ms
_dj_autoclear_mailbox function 0.03 ms
_django_isolate_apps function 0.03 ms
_django_set_urlconf function 0.03 ms
_django_clear_site_cache function 0.02 ms
monkeypatch function 0.02 ms

Database

6 queries · 3 ms
No repeated queries.

Biggest pieces of work

call test body
posts/tests.py:16
44 ms
setup setUpClass
django/test/testcases.py:1426
9 ms
call pytest internals 3 ms

Reliability

14 results · 0 CI failures · 0 local failures

This test hasn't failed recently.

History

Latest 14 results, oldest first in the strip
When Environment Outcome Duration Commit
2 weeks ago CI github-actions:test passed 59 ms 28600ed main Profile
2 weeks, 5 days ago CI github-actions:test passed 173 ms 600b717 main Profile
2 weeks, 6 days ago CI github-actions:test passed 107 ms c28a326 main Profile
3 weeks ago CI github-actions:test passed 53 ms 9b8826a main Profile
3 weeks ago CI github-actions:test passed 92 ms 4f01055 main Profile
1 month ago CI github-actions:test passed 106 ms 8ab642e main Profile
1 month ago CI github-actions:test passed 86 ms 9b75244 main Profile
1 month ago CI github-actions:test passed 118 ms 9603516 main Profile
1 month, 1 week ago CI github-actions:test passed 89 ms 615a272 main Profile
1 month, 1 week ago CI github-actions:test passed 65 ms d923a46 main Profile
1 month, 1 week ago CI github-actions:test passed 263 ms 82997f8 main Profile
1 month, 1 week ago CI github-actions:test passed 211 ms 623aa3e main Profile
1 month, 1 week ago CI github-actions:test passed 259 ms ab6465a main Profile
1 month, 1 week ago CI github-actions:test passed 80 ms 0c23747 main Run