flakytest.dev anze3db flakytest
Tests / apps/guides/tests.py

TestGuidePages::test_guide

First seen 1 month ago in b3fedae
CI github-actions:test 9 runs
Average
46 ms
median 41 ms
max 66 ms
Phases
Setup 0.60 ms Call 45 ms Teardown 0.14 ms
Categories
Database 2 ms Other (Libraries, Templates, Unsampled, pytest) 43 ms

5 database queries per run

Needs 0 KB of memory (max 0 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 2 weeks ago · open run
Show pytest frames
call41 ms98.5%
TestGuidePages.test_guideapps/guides/tests.py:116 response = self.client.get(guide.url)27 ms64.4%
Client.getdjango/test/client.py:112427 ms64.4%
RequestFactory.getdjango/test/client.py:47527 ms64.4%
RequestFactory.genericdjango/test/client.py:67127 ms64.4%
Client.requestdjango/test/client.py:108227 ms64.4%
ClientHandler.__call__django/test/client.py:18616 ms37.9%
BaseHandler.get_responsedjango/core/handlers/base.py:14116 ms37.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5516 ms37.9%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:13016 ms37.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5516 ms37.9%
MiddlewareMixin.__call__django/utils/deprecation.py:30916 ms37.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5516 ms37.9%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12316 ms37.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5516 ms37.9%
MiddlewareMixin.__call__django/utils/deprecation.py:30916 ms37.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5516 ms37.9%
MiddlewareMixin.__call__django/utils/deprecation.py:30914 ms34.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5514 ms34.1%
MiddlewareMixin.__call__django/utils/deprecation.py:30914 ms34.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5514 ms34.1%
MiddlewareMixin.__call__django/utils/deprecation.py:30914 ms34.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5514 ms34.1%
MiddlewareMixin.__call__django/utils/deprecation.py:30914 ms34.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5514 ms34.1%
MiddlewareMixin.__call__django/utils/deprecation.py:30914 ms34.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5514 ms34.1%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:3414 ms34.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5514 ms34.1%
BaseHandler._get_responsedjango/core/handlers/base.py:19814 ms34.1%
make_middleware_decorator.<locals>._make_decorator.<locals>._decorator.<locals>._view_wrapperdjango/utils/decorators.py:19014 ms34.1%
vary_on_headers.<locals>.decorator.<locals>._view_wrapperdjango/views/decorators/vary.py:3114 ms34.1%
guideapps/guides/views.py:41 return render(14 ms34.1%
renderdjango/shortcuts.py:2514 ms34.1%
render_to_stringdjango/template/loader.py:6214 ms34.1%
Template.renderdjango/template/backends/django.py:10714 ms34.1%
Template.renderdjango/template/base.py:17414 ms34.1%
instrumented_test_renderdjango/test/utils.py:11414 ms34.1%
NodeList.renderdjango/template/base.py:109114 ms34.1%
Node.render_annotateddjango/template/base.py:105214 ms34.1%
ExtendsNode.renderdjango/template/loader_tags.py:16014 ms34.1%
instrumented_test_renderdjango/test/utils.py:11414 ms34.1%
NodeList.renderdjango/template/base.py:109114 ms34.1%
Node.render_annotateddjango/template/base.py:105214 ms34.1%
ExtendsNode.renderdjango/template/loader_tags.py:16014 ms34.1%
instrumented_test_renderdjango/test/utils.py:11414 ms34.1%
NodeList.renderdjango/template/base.py:109114 ms34.1%
Node.render_annotateddjango/template/base.py:105214 ms34.1%
BlockNode.renderdjango/template/loader_tags.py:6614 ms34.1%
NodeList.renderdjango/template/base.py:109114 ms34.1%
Node.render_annotateddjango/template/base.py:105214 ms34.1%
BlockNode.renderdjango/template/loader_tags.py:6614 ms34.1%
NodeList.renderdjango/template/base.py:109114 ms34.1%
Node.render_annotateddjango/template/base.py:105214 ms34.1%
BlockNode.renderdjango/template/loader_tags.py:6614 ms34.1%
NodeList.renderdjango/template/base.py:109114 ms34.1%
Node.render_annotateddjango/template/base.py:105214 ms34.1%
ForNode.renderdjango/template/defaulttags.py:24913 ms30.3%
Node.render_annotateddjango/template/base.py:105213 ms30.3%
VariableNode.renderdjango/template/base.py:115013 ms30.3%
FilterExpression.resolvedjango/template/base.py:78813 ms30.3%
Variable.resolvedjango/template/base.py:92813 ms30.3%
Variable._resolve_lookupdjango/template/base.py:97613 ms30.3%
Guide.urlapps/guides/content.py:70 return reverse("guide", args=[self.slug])13 ms30.3%
reversedjango/urls/base.py:9813 ms30.3%
ForNode.renderdjango/template/defaulttags.py:2482 ms3.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3112 ms3.8%
CommonMiddleware.process_responsedjango/middleware/common.py:1142 ms3.8%
HttpResponseBase.has_headerdjango/http/response.py:2082 ms3.8%
Mapping.__contains__<frozen _collections_abc>:8012 ms3.8%
CaseInsensitiveMapping.__getitem__django/utils/datastructures.py:3102 ms3.8%
ClientHandler.__call__django/test/client.py:17311 ms26.5%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6211 ms26.5%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10411 ms26.5%
WhiteNoise.add_fileswhitenoise/base.py:10811 ms26.5%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1208 ms18.9%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:1316 ms15.2%
WhiteNoise.get_static_filewhitenoise/base.py:2032 ms3.8%
WhiteNoise.add_cache_headerswhitenoise/base.py:2242 ms3.8%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1762 ms3.8%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1972 ms3.8%
URLMixin.urldebug_toolbar/panels/staticfiles.py:202 ms3.8%
WhiteNoise.get_static_filewhitenoise/base.py:2012 ms3.8%
__init____init__:-12 ms3.8%
WhiteNoise.get_static_filewhitenoise/base.py:2082 ms3.8%
StaticFile.__init__whitenoise/responders.py:772 ms3.8%
StaticFile.get_alternativeswhitenoise/responders.py:2002 ms3.8%
WhiteNoise.get_static_filewhitenoise/base.py:2022 ms3.8%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1153 ms7.6%
scantreewhitenoise/base.py:2623 ms7.6%
scantreewhitenoise/base.py:2623 ms7.6%
scantreewhitenoise/base.py:2642 ms3.8%
<GC>~2 ms3.8%
scantreewhitenoise/base.py:2622 ms3.8%
scantreewhitenoise/base.py:2622 ms3.8%
scantreewhitenoise/base.py:2622 ms3.8%
scantreewhitenoise/base.py:2642 ms3.8%
TestGuidePages.test_guideapps/guides/tests.py:119 self.assertContains(response, f'<link rel="canonical" href="{SITE_URL}{guide.url}">', html=True)6 ms15.2%
SimpleTestCase.assertContainsdjango/test/testcases.py:6036 ms15.2%
SimpleTestCase._assert_containsdjango/test/testcases.py:5846 ms15.2%
assert_and_parse_htmldjango/test/testcases.py:956 ms15.2%
parse_htmldjango/test/html.py:2693 ms7.6%
Element.finalizedjango/test/html.py:1063 ms7.6%
Element.finalizedjango/test/html.py:1063 ms7.6%
Element.finalizedjango/test/html.py:1063 ms7.6%
Element.finalizedjango/test/html.py:1063 ms7.6%
Element.finalizedjango/test/html.py:1063 ms7.6%
Element.finalizedjango/test/html.py:1063 ms7.6%
Element.finalizedjango/test/html.py:1063 ms7.6%
Element.finalizedjango/test/html.py:1063 ms7.6%
Element.finalizedjango/test/html.py:1063 ms7.6%
Element.finalizedjango/test/html.py:1063 ms7.6%
Element.finalizedjango/test/html.py:1023 ms7.6%
<GC>~3 ms7.6%
parse_htmldjango/test/html.py:2663 ms7.6%
HTMLParser.feed<stdlib>/html/parser.py:1873 ms7.6%
HTMLParser.goahead<stdlib>/html/parser.py:2793 ms7.6%
HTMLParser.parse_starttag<stdlib>/html/parser.py:4732 ms3.8%
HTMLParser.parse_starttag<stdlib>/html/parser.py:4682 ms3.8%
TestGuidePages.test_guideapps/guides/tests.py:118 self.assertContains(response, f"<h1>{guide.title}</h1>", html=True)6 ms15.2%
SimpleTestCase.assertContainsdjango/test/testcases.py:6036 ms15.2%
SimpleTestCase._assert_containsdjango/test/testcases.py:5846 ms15.2%
assert_and_parse_htmldjango/test/testcases.py:956 ms15.2%
parse_htmldjango/test/html.py:2665 ms11.4%
HTMLParser.feed<stdlib>/html/parser.py:1875 ms11.4%
HTMLParser.goahead<stdlib>/html/parser.py:2732 ms3.8%
Parser.handle_datadjango/test/html.py:2552 ms3.8%
Element.appenddjango/test/html.py:782 ms3.8%
normalize_whitespacedjango/test/html.py:462 ms3.8%
HTMLParser.goahead<stdlib>/html/parser.py:2812 ms3.8%
HTMLParser.goahead<stdlib>/html/parser.py:2792 ms3.8%
parse_htmldjango/test/html.py:2692 ms3.8%
Element.finalizedjango/test/html.py:1062 ms3.8%
Element.finalizedjango/test/html.py:1062 ms3.8%
Element.finalizedjango/test/html.py:1062 ms3.8%
Element.finalizedjango/test/html.py:1062 ms3.8%
Element.finalizedjango/test/html.py:1062 ms3.8%
Element.finalizedjango/test/html.py:1062 ms3.8%
Element.finalizedjango/test/html.py:1062 ms3.8%
Element.finalizedjango/test/html.py:1062 ms3.8%
Element.finalizedjango/test/html.py:1062 ms3.8%
Element.finalizedjango/test/html.py:1062 ms3.8%
Element.finalizedjango/test/html.py:1012 ms3.8%
Element.finalize.<locals>.rstrip_last_elementdjango/test/html.py:952 ms3.8%
TransactionTestCase._pre_setupdjango/test/testcases.py:1164 cls._fixture_setup()2 ms3.8%
TestCase._fixture_setupdjango/test/testcases.py:14782 ms3.8%
TestCase._enter_atomicsdjango/test/testcases.py:13962 ms3.8%
Atomic.__enter__django/db/transaction.py:2112 ms3.8%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms3.8%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4002 ms3.8%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3672 ms3.8%
CursorWrapper.executedjango/db/backends/utils.py:792 ms3.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.8%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms3.8%
Cursor.executepsycopg/cursor.py:1132 ms3.8%
Connection.waitpsycopg/connection.py:4952 ms3.8%
Estimated from 26 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

apps/guides/content.py:70
return reverse("guide", args=[self.slug])
Guide.url · Templates
13 ms
apps/guides/tests.py:116
response = self.client.get(guide.url)
TestGuidePages.test_guide · Libraries
13 ms
apps/guides/tests.py:119
self.assertContains(response, f'<link rel="canonical" href="{SITE_URL}{guide.url}">', html=True)
TestGuidePages.test_guide · Libraries
6 ms
apps/guides/tests.py:118
self.assertContains(response, f"<h1>{guide.title}</h1>", html=True)
TestGuidePages.test_guide · Libraries
6 ms
apps/guides/views.py:41
return render(
guide · Templates
2 ms

Fixtures

Exact setup time
_dj_autoclear_mailbox function 0.04 ms
_django_db_marker function 0.03 ms
_template_string_if_invalid_marker function 0.03 ms
_django_set_urlconf function 0.02 ms
_live_server_helper function 0.02 ms
_django_clear_site_cache function 0.02 ms
monkeypatch function 0.01 ms

Database

5 queries · 0.63 ms
No repeated queries.

Biggest pieces of work

call test body
apps/guides/tests.py:116
39 ms
call _pre_setup
django/test/testcases.py:1164
2 ms

Reliability

9 results · 0 CI failures · 0 local failures

This test hasn't failed recently.

History

Latest 9 results, oldest first in the strip
When Environment Outcome Duration Commit
2 weeks ago CI github-actions:test passed 41 ms cb18ed3 main Profile
2 weeks, 4 days ago CI github-actions:test passed 59 ms 9bd5864 main Profile
2 weeks, 6 days ago CI github-actions:test passed 30 ms 19dac9b main Profile
3 weeks ago CI github-actions:test passed 59 ms e141198 main Profile
1 month ago CI github-actions:test passed 26 ms 46ec2aa main Profile
1 month ago CI github-actions:test passed 55 ms afde85b main Profile
1 month ago CI github-actions:test passed 39 ms fe29f9d main Profile
1 month ago CI github-actions:test passed 66 ms 044719a main Profile
1 month ago CI github-actions:test passed 34 ms b3fedae main Profile