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

TestGuidePages::test_unknown_guide

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.84 ms Call 42 ms Teardown 0.64 ms
Categories
Database 1 ms Other (Libraries, Imports, Unsampled, Templates) 42 ms

5 database queries per run

Needs 32 KB of memory (max 32 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 16 hours ago · open run
Hide pytest frames
call42 ms96.6%
CallInfo.from_call_pytest/runner.py:35342 ms96.6%
call_and_report.<locals>.<lambda>_pytest/runner.py:24542 ms96.6%
HookCaller.__call__pluggy/_hooks.py:51242 ms96.6%
PluginManager._hookexecpluggy/_manager.py:12042 ms96.6%
_multicallpluggy/_callers.py:12142 ms96.6%
pytest_runtest_call_pytest/runner.py:17942 ms96.6%
_django_setup_unittest.<locals>.non_debugging_runtestpytest_django/plugin.py:57342 ms96.6%
SimpleTestCase.__call__django/test/testcases.py:31342 ms96.6%
SimpleTestCase._setup_and_calldjango/test/testcases.py:36841 ms94.1%
TestCase.__call__<stdlib>/unittest/case.py:74741 ms94.1%
TestCase.run<stdlib>/unittest/case.py:69141 ms94.1%
TestCase._callTestMethod<stdlib>/unittest/case.py:63741 ms94.1%
TestGuidePages.test_unknown_guideapps/guides/tests.py:132 self.assertEqual(self.client.get(reverse("guide", args=["nope"])).status_code, 404)40 ms91.6%
Client.getdjango/test/client.py:112440 ms91.6%
RequestFactory.getdjango/test/client.py:47540 ms91.6%
RequestFactory.genericdjango/test/client.py:67140 ms91.6%
Client.requestdjango/test/client.py:108240 ms91.6%
ClientHandler.__call__django/test/client.py:17327 ms61.9%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6227 ms61.9%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10427 ms61.9%
WhiteNoise.add_fileswhitenoise/base.py:10827 ms61.9%
WhiteNoise.update_files_dictionarywhitenoise/base.py:11518 ms42.1%
scantreewhitenoise/base.py:26217 ms39.6%
scantreewhitenoise/base.py:26217 ms39.6%
scantreewhitenoise/base.py:26411 ms24.8%
scantreewhitenoise/base.py:2624 ms9.9%
scantreewhitenoise/base.py:2623 ms7.4%
scantreewhitenoise/base.py:2622 ms5.0%
scantreewhitenoise/base.py:2642 ms5.0%
scantreewhitenoise/base.py:2641 ms2.5%
scantreewhitenoise/base.py:2601 ms2.5%
scantreewhitenoise/base.py:2601 ms2.5%
scantreewhitenoise/base.py:2602 ms5.0%
scantreewhitenoise/base.py:2601 ms2.5%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1209 ms19.8%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:1318 ms17.3%
WhiteNoise.get_static_filewhitenoise/base.py:2085 ms12.4%
StaticFile.__init__whitenoise/responders.py:734 ms9.9%
StaticFile.get_headerswhitenoise/responders.py:1761 ms2.5%
StaticFile.get_headerswhitenoise/responders.py:1781 ms2.5%
parsedate<stdlib>/email/_parseaddr.py:1851 ms2.5%
parsedate_tz<stdlib>/email/_parseaddr.py:501 ms2.5%
_parsedate_tz<stdlib>/email/_parseaddr.py:1531 ms2.5%
StaticFile.get_headerswhitenoise/responders.py:1671 ms2.5%
StaticFile.get_headerswhitenoise/responders.py:1821 ms2.5%
StaticFile.__init__whitenoise/responders.py:741 ms2.5%
Headers.__getitem__<stdlib>/wsgiref/headers.py:831 ms2.5%
WhiteNoise.get_static_filewhitenoise/base.py:2022 ms5.0%
ClientHandler.__call__django/test/client.py:18613 ms29.7%
BaseHandler.get_responsedjango/core/handlers/base.py:14113 ms29.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5513 ms29.7%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:13013 ms29.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5513 ms29.7%
MiddlewareMixin.__call__django/utils/deprecation.py:30913 ms29.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5513 ms29.7%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12313 ms29.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5513 ms29.7%
MiddlewareMixin.__call__django/utils/deprecation.py:30913 ms29.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5513 ms29.7%
MiddlewareMixin.__call__django/utils/deprecation.py:30913 ms29.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5513 ms29.7%
MiddlewareMixin.__call__django/utils/deprecation.py:30913 ms29.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5513 ms29.7%
MiddlewareMixin.__call__django/utils/deprecation.py:30913 ms29.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5513 ms29.7%
MiddlewareMixin.__call__django/utils/deprecation.py:30913 ms29.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5513 ms29.7%
MiddlewareMixin.__call__django/utils/deprecation.py:30913 ms29.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5513 ms29.7%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:3413 ms29.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5713 ms29.7%
response_for_exceptiondjango/core/handlers/exception.py:6813 ms29.7%
get_exception_responsedjango/core/handlers/exception.py:16412 ms27.2%
URLResolver.resolve_error_handlerdjango/urls/resolvers.py:74712 ms27.2%
_handle_fromlist<frozen importlib._bootstrap>:141712 ms27.2%
_call_with_frames_removed<frozen importlib._bootstrap>:49112 ms27.2%
_find_and_load<frozen importlib._bootstrap>:135312 ms27.2%
_find_and_load_unlocked<frozen importlib._bootstrap>:124912 ms27.2%
_load_unlocked<frozen importlib._bootstrap>:85712 ms27.2%
_LoaderBasics.exec_module<frozen importlib._bootstrap_external>:75112 ms27.2%
_call_with_frames_removed<frozen importlib._bootstrap>:49112 ms27.2%
<module>django/conf/urls/__init__.py:212 ms27.2%
_handle_fromlist<frozen importlib._bootstrap>:141712 ms27.2%
_call_with_frames_removed<frozen importlib._bootstrap>:49112 ms27.2%
_find_and_load<frozen importlib._bootstrap>:135312 ms27.2%
_find_and_load_unlocked<frozen importlib._bootstrap>:124912 ms27.2%
_load_unlocked<frozen importlib._bootstrap>:85712 ms27.2%
_LoaderBasics.exec_module<frozen importlib._bootstrap_external>:74712 ms27.2%
SourceLoader.get_code<frozen importlib._bootstrap_external>:88112 ms27.2%
SourceLoader.source_to_code<frozen importlib._bootstrap_external>:81012 ms27.2%
_call_with_frames_removed<frozen importlib._bootstrap>:49112 ms27.2%
get_exception_responsedjango/core/handlers/exception.py:1651 ms2.5%
make_middleware_decorator.<locals>._make_decorator.<locals>._decorator.<locals>._view_wrapperdjango/utils/decorators.py:1901 ms2.5%
page_not_founddjango/views/defaults.py:631 ms2.5%
get_templatedjango/template/loader.py:151 ms2.5%
DjangoTemplates.get_templatedjango/template/backends/django.py:791 ms2.5%
Engine.get_templatedjango/template/engine.py:1861 ms2.5%
Engine.find_templatedjango/template/engine.py:1591 ms2.5%
Loader.get_templatedjango/template/loaders/cached.py:571 ms2.5%
Loader.get_templatedjango/template/loaders/base.py:171 ms2.5%
Loader.get_template_sourcesdjango/template/loaders/cached.py:701 ms2.5%
Loader.get_template_sourcesdjango/template/loaders/filesystem.py:331 ms2.5%
Loader.get_dirsdjango/template/loaders/app_directories.py:131 ms2.5%
get_app_template_dirsdjango/template/utils.py:1061 ms2.5%
get_app_template_dirs.<locals>.<genexpr>django/template/utils.py:1091 ms2.5%
Path.is_dir<stdlib>/pathlib/__init__.py:8781 ms2.5%
isdir<frozen genericpath>:521 ms2.5%
TestGuidePages.test_unknown_guideapps/guides/tests.py:133 self.assertEqual(self.client.get(reverse("guide_markdown", args=["nope"])).status_code, 404)1 ms2.5%
Client.getdjango/test/client.py:11241 ms2.5%
RequestFactory.getdjango/test/client.py:4751 ms2.5%
RequestFactory.genericdjango/test/client.py:6711 ms2.5%
Client.requestdjango/test/client.py:10821 ms2.5%
ClientHandler.__call__django/test/client.py:1861 ms2.5%
BaseHandler.get_responsedjango/core/handlers/base.py:1411 ms2.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:551 ms2.5%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1301 ms2.5%
SimpleTestCase._setup_and_calldjango/test/testcases.py:3711 ms2.5%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()1 ms2.5%
TestCase._fixture_teardowndjango/test/testcases.py:14941 ms2.5%
TestCase._should_check_constraintsdjango/test/testcases.py:15031 ms2.5%
DatabaseWrapper.is_usabledjango/db/backends/postgresql/base.py:4921 ms2.5%
Cursor.executepsycopg/cursor.py:1131 ms2.5%
Connection.waitpsycopg/connection.py:4951 ms2.5%
Estimated from 39 samples; phase durations are exact. Frames from pytest and pluggy are shown .

Hot lines in your code

apps/guides/tests.py:132
self.assertEqual(self.client.get(reverse("guide", args=["nope"])).status_code, 404)
TestGuidePages.test_unknown_guide · Libraries
40 ms
apps/guides/tests.py:133
self.assertEqual(self.client.get(reverse("guide_markdown", args=["nope"])).status_code, 404)
TestGuidePages.test_unknown_guide · Libraries
1 ms

Fixtures

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

Database

5 queries · 0.78 ms
No repeated queries.

Biggest pieces of work

call test body
apps/guides/tests.py:132
41 ms
call _post_teardown
django/test/testcases.py:1240
1 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 26 ms 46ec2aa main Profile
2 weeks, 1 day ago CI github-actions:test passed 34 ms afde85b main Profile
2 weeks, 1 day ago CI github-actions:test passed 40 ms fe29f9d main Profile
2 weeks, 1 day ago CI github-actions:test passed 62 ms 044719a main Profile
2 weeks, 2 days ago CI github-actions:test passed 24 ms b3fedae main Profile