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

TestGuidePages::test_markdown

First seen 2 weeks, 2 days ago in b3fedae
CI github-actions:test 1 run
Average
43 ms
median 43 ms
max 43 ms
Phases
Setup 0.71 ms Call 42 ms Teardown 0.14 ms
Categories
Database 16 ms Test code 3 ms Other (Libraries, Unsampled) 24 ms

5 database queries per run

Needs 8 KB of memory (max 8 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 16 hours ago · open run
Show pytest frames
call42 ms98.0%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()19 ms45.2%
TestCase._fixture_teardowndjango/test/testcases.py:149419 ms45.2%
TestCase._should_check_constraintsdjango/test/testcases.py:150319 ms45.2%
DatabaseWrapper.is_usabledjango/db/backends/postgresql/base.py:49216 ms37.7%
Cursor.executepsycopg/cursor.py:11316 ms37.7%
Connection.waitpsycopg/connection.py:49516 ms37.7%
BaseCursor._execute_genpsycopg/_cursor_base.py:20616 ms37.7%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:28616 ms37.7%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:7816 ms37.7%
TestGuidePages.test_markdownapps/guides/tests.py:137 response = self.client.get(guide.markdown_url)19 ms45.2%
Client.getdjango/test/client.py:112419 ms45.2%
RequestFactory.getdjango/test/client.py:47519 ms45.2%
RequestFactory.genericdjango/test/client.py:67119 ms45.2%
Client.requestdjango/test/client.py:108219 ms45.2%
ClientHandler.__call__django/test/client.py:17316 ms37.7%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6216 ms37.7%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10416 ms37.7%
WhiteNoise.add_fileswhitenoise/base.py:10816 ms37.7%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12013 ms30.2%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13110 ms22.6%
WhiteNoise.get_static_filewhitenoise/base.py:20810 ms22.6%
StaticFile.__init__whitenoise/responders.py:723 ms7.5%
StaticFile.get_file_statswhitenoise/responders.py:1613 ms7.5%
StaticFile.__init__whitenoise/responders.py:743 ms7.5%
Headers.__getitem__<stdlib>/wsgiref/headers.py:833 ms7.5%
StaticFile.__init__whitenoise/responders.py:773 ms7.5%
StaticFile.get_alternativeswhitenoise/responders.py:2003 ms7.5%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1153 ms7.5%
scantreewhitenoise/base.py:2643 ms7.5%
ClientHandler.__call__django/test/client.py:1863 ms7.5%
BaseHandler.get_responsedjango/core/handlers/base.py:1413 ms7.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms7.5%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1303 ms7.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms7.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3093 ms7.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms7.5%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:1233 ms7.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms7.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3093 ms7.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms7.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3093 ms7.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms7.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3093 ms7.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms7.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3093 ms7.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms7.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3093 ms7.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms7.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3093 ms7.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms7.5%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:343 ms7.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms7.5%
BaseHandler._get_responsedjango/core/handlers/base.py:1983 ms7.5%
make_middleware_decorator.<locals>._make_decorator.<locals>._decorator.<locals>._view_wrapperdjango/utils/decorators.py:1963 ms7.5%
make_middleware_decorator.<locals>._make_decorator.<locals>._decorator.<locals>._post_process_requestdjango/utils/decorators.py:1633 ms7.5%
UpdateCacheMiddleware.process_responsedjango/middleware/cache.py:1303 ms7.5%
learn_cache_keydjango/utils/cache.py:4383 ms7.5%
_generate_cache_keydjango/utils/cache.py:3653 ms7.5%
TestGuidePages.test_markdownapps/guides/tests.py:142 self.assertNotIn("\nsection:", text) # no front matter3 ms7.5%
Estimated from 13 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

apps/guides/tests.py:137
response = self.client.get(guide.markdown_url)
TestGuidePages.test_markdown · Libraries
19 ms
apps/guides/tests.py:142
self.assertNotIn("\nsection:", text) # no front matter
TestGuidePages.test_markdown · Test code
3 ms

Fixtures

Exact setup time
_dj_autoclear_mailbox function 0.05 ms
_django_db_marker 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.03 ms
monkeypatch function 0.03 ms

Database

5 queries · 0.78 ms
No repeated queries.

Biggest pieces of work

call test body
apps/guides/tests.py:137
23 ms
call _post_teardown
django/test/testcases.py:1240
19 ms

Reliability

6 results · 0 CI failures · 0 local failures

This test hasn't failed recently.

History

Latest 6 results, oldest first in the strip
When Environment Outcome Duration Commit
16 hours ago CI github-actions:test passed 43 ms e141198 main Profile
1 week, 5 days ago CI github-actions:test passed 17 ms 46ec2aa main Profile
2 weeks, 1 day ago CI github-actions:test passed 41 ms afde85b main Profile
2 weeks, 1 day ago CI github-actions:test passed 27 ms fe29f9d main Profile
2 weeks, 1 day ago CI github-actions:test passed 56 ms 044719a main Profile
2 weeks, 2 days ago CI github-actions:test passed 24 ms b3fedae main Profile