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

TestGuidePages::test_unknown_guide

First seen 1 month ago in b3fedae
CI github-actions:test 9 runs
Average
35 ms
median 34 ms
max 62 ms
Phases
Setup 0.61 ms Call 33 ms Teardown 1 ms
Categories
Database 5 ms Other (Libraries, Imports, pytest, Unsampled, ...) 30 ms

5 database queries per run

Needs 26 KB of memory (max 76 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 2 weeks ago · open run
Show pytest frames
call25 ms95.9%
TestGuidePages.test_unknown_guideapps/guides/tests.py:135 self.assertEqual(self.client.get(reverse("guide", args=["nope"])).status_code, 404)22 ms86.3%
Client.getdjango/test/client.py:112422 ms86.3%
RequestFactory.getdjango/test/client.py:47522 ms86.3%
RequestFactory.genericdjango/test/client.py:67122 ms86.3%
Client.requestdjango/test/client.py:108222 ms86.3%
ClientHandler.__call__django/test/client.py:17317 ms67.1%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6217 ms67.1%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10417 ms67.1%
WhiteNoise.add_fileswhitenoise/base.py:10817 ms67.1%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12015 ms57.5%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13115 ms57.5%
WhiteNoise.get_static_filewhitenoise/base.py:20812 ms47.9%
StaticFile.__init__whitenoise/responders.py:775 ms19.2%
StaticFile.get_alternativeswhitenoise/responders.py:2005 ms19.2%
__init____init__:-12 ms9.6%
Headers.__init__<stdlib>/wsgiref/headers.py:362 ms9.6%
<GC>~2 ms9.6%
StaticFile.__init__whitenoise/responders.py:732 ms9.6%
StaticFile.get_headerswhitenoise/responders.py:1762 ms9.6%
StaticFile.__init__whitenoise/responders.py:722 ms9.6%
StaticFile.__init__whitenoise/responders.py:742 ms9.6%
parsedate<stdlib>/email/_parseaddr.py:1852 ms9.6%
WhiteNoise.get_static_filewhitenoise/base.py:2032 ms9.6%
WhiteNoise.add_cache_headerswhitenoise/base.py:2242 ms9.6%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1152 ms9.6%
scantreewhitenoise/base.py:2642 ms9.6%
ClientHandler.__call__django/test/client.py:1865 ms19.2%
BaseHandler.get_responsedjango/core/handlers/base.py:1415 ms19.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms19.2%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1305 ms19.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms19.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3095 ms19.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms19.2%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:1235 ms19.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms19.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3095 ms19.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms19.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3095 ms19.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms19.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3095 ms19.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms19.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3095 ms19.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms19.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3095 ms19.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms19.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3095 ms19.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms19.2%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:345 ms19.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:575 ms19.2%
response_for_exceptiondjango/core/handlers/exception.py:685 ms19.2%
get_exception_responsedjango/core/handlers/exception.py:1642 ms9.6%
URLResolver.resolve_error_handlerdjango/urls/resolvers.py:7472 ms9.6%
_handle_fromlist<frozen importlib._bootstrap>:14172 ms9.6%
_call_with_frames_removed<frozen importlib._bootstrap>:4912 ms9.6%
_find_and_load<frozen importlib._bootstrap>:13532 ms9.6%
_find_and_load_unlocked<frozen importlib._bootstrap>:12492 ms9.6%
_load_unlocked<frozen importlib._bootstrap>:8572 ms9.6%
_LoaderBasics.exec_module<frozen importlib._bootstrap_external>:7512 ms9.6%
_call_with_frames_removed<frozen importlib._bootstrap>:4912 ms9.6%
<module>django/conf/urls/__init__.py:22 ms9.6%
_handle_fromlist<frozen importlib._bootstrap>:14172 ms9.6%
_call_with_frames_removed<frozen importlib._bootstrap>:4912 ms9.6%
_find_and_load<frozen importlib._bootstrap>:13532 ms9.6%
_find_and_load_unlocked<frozen importlib._bootstrap>:12492 ms9.6%
_load_unlocked<frozen importlib._bootstrap>:8572 ms9.6%
_LoaderBasics.exec_module<frozen importlib._bootstrap_external>:7472 ms9.6%
SourceLoader.get_code<frozen importlib._bootstrap_external>:8812 ms9.6%
SourceLoader.source_to_code<frozen importlib._bootstrap_external>:8102 ms9.6%
_call_with_frames_removed<frozen importlib._bootstrap>:4912 ms9.6%
get_exception_responsedjango/core/handlers/exception.py:1652 ms9.6%
make_middleware_decorator.<locals>._make_decorator.<locals>._decorator.<locals>._view_wrapperdjango/utils/decorators.py:1902 ms9.6%
page_not_founddjango/views/defaults.py:632 ms9.6%
get_templatedjango/template/loader.py:152 ms9.6%
DjangoTemplates.get_templatedjango/template/backends/django.py:792 ms9.6%
Engine.get_templatedjango/template/engine.py:1862 ms9.6%
Engine.find_templatedjango/template/engine.py:1592 ms9.6%
Loader.get_templatedjango/template/loaders/cached.py:572 ms9.6%
Loader.get_templatedjango/template/loaders/base.py:172 ms9.6%
Loader.get_template_sourcesdjango/template/loaders/cached.py:702 ms9.6%
Loader.get_template_sourcesdjango/template/loaders/filesystem.py:332 ms9.6%
Loader.get_dirsdjango/template/loaders/app_directories.py:132 ms9.6%
get_app_template_dirsdjango/template/utils.py:1062 ms9.6%
get_app_template_dirs.<locals>.<genexpr>django/template/utils.py:1092 ms9.6%
Path.is_dir<stdlib>/pathlib/__init__.py:8782 ms9.6%
isdir<frozen genericpath>:522 ms9.6%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()2 ms9.6%
TestCase._fixture_teardowndjango/test/testcases.py:14972 ms9.6%
TestCase._rollback_atomicsdjango/test/testcases.py:14052 ms9.6%
Atomic.__exit__django/db/transaction.py:2862 ms9.6%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms9.6%
BaseDatabaseWrapper.savepoint_commitdjango/db/backends/base/base.py:4312 ms9.6%
BaseDatabaseWrapper._savepoint_commitdjango/db/backends/base/base.py:3752 ms9.6%
CursorWrapper.executedjango/db/backends/utils.py:792 ms9.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms9.6%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms9.6%
Cursor.executepsycopg/cursor.py:1132 ms9.6%
Connection.waitpsycopg/connection.py:4952 ms9.6%
Estimated from 10 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

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

Fixtures

Exact setup time
_dj_autoclear_mailbox function 0.06 ms
_django_db_marker function 0.05 ms
_template_string_if_invalid_marker function 0.03 ms
_live_server_helper 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

5 queries · 0.47 ms
No repeated queries.

Biggest pieces of work

call test body
apps/guides/tests.py:135
22 ms
call _post_teardown
django/test/testcases.py:1240
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 26 ms cb18ed3 main Profile
2 weeks, 4 days ago CI github-actions:test passed 42 ms 9bd5864 main Profile
2 weeks, 6 days ago CI github-actions:test passed 18 ms 19dac9b main Profile
3 weeks ago CI github-actions:test passed 43 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 34 ms afde85b main Profile
1 month ago CI github-actions:test passed 40 ms fe29f9d main Profile
1 month ago CI github-actions:test passed 62 ms 044719a main Profile
1 month ago CI github-actions:test passed 24 ms b3fedae main Profile