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

TestAccountIndexRobots::test_empty_facet_values_are_not_facets

First seen 14 hours ago in 0c23747
CI github-actions:test 4 runs
Average
173 ms
median 173 ms
max 288 ms
Phases
Setup 2 ms Call 170 ms Teardown 0.30 ms
Categories
Database 11 ms Test code 2 ms Other (Libraries, Templates, pytest, Unsampled, ...) 160 ms

8 database queries per run

Needs 2 KB of memory (max 4 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 8 hours ago · open run
Hide pytest frames
call56 ms98.3%
CallInfo.from_call_pytest/runner.py:36156 ms98.3%
call_and_report.<locals>.<lambda>_pytest/runner.py:25056 ms98.3%
HookCaller.__call__pluggy/_hooks.py:51256 ms98.3%
PluginManager._hookexecpluggy/_manager.py:12056 ms98.3%
_multicallpluggy/_callers.py:12156 ms98.3%
pytest_runtest_call_pytest/runner.py:18456 ms98.3%
_django_setup_unittest.<locals>.non_debugging_runtestpytest_django/plugin.py:61456 ms98.3%
SimpleTestCase.__call__django/test/testcases.py:31456 ms98.3%
SimpleTestCase._setup_and_calldjango/test/testcases.py:36956 ms98.3%
TestCase.__call__<stdlib>/unittest/case.py:74756 ms98.3%
TestCase.run<stdlib>/unittest/case.py:69156 ms98.3%
TestCase._callTestMethod<stdlib>/unittest/case.py:63756 ms98.3%
TestAccountIndexRobots.test_empty_facet_values_are_not_facetsaccounts/tests.py:576 self.assert_indexable("/python/?f=&t=")56 ms98.3%
TestAccountIndexRobots.assert_indexableaccounts/tests.py:555 response = self.client.get(url)56 ms98.3%
Client.getdjango/test/client.py:113356 ms98.3%
RequestFactory.getdjango/test/client.py:47556 ms98.3%
RequestFactory.genericdjango/test/client.py:67156 ms98.3%
Client.requestdjango/test/client.py:109156 ms98.3%
ClientHandler.__call__django/test/client.py:17337 ms65.6%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6337 ms65.6%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10437 ms65.6%
WhiteNoise.add_fileswhitenoise/base.py:10837 ms65.6%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12027 ms46.8%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13124 ms42.1%
WhiteNoise.get_static_filewhitenoise/base.py:21721 ms37.5%
StaticFile.__init__whitenoise/responders.py:7213 ms23.4%
StaticFile.get_file_statswhitenoise/responders.py:16113 ms23.4%
__init____init__:-113 ms23.4%
FileEntry.__init__whitenoise/responders.py:26313 ms23.4%
FileEntry.stat_regular_filewhitenoise/responders.py:27613 ms23.4%
<GC>~13 ms23.4%
StaticFile.__init__whitenoise/responders.py:773 ms4.7%
StaticFile.get_alternativeswhitenoise/responders.py:2033 ms4.7%
StaticFile.__init__whitenoise/responders.py:733 ms4.7%
StaticFile.get_headerswhitenoise/responders.py:1673 ms4.7%
WhiteNoise.get_static_filewhitenoise/base.py:2123 ms4.7%
WhiteNoise.update_files_dictionarywhitenoise/base.py:11511 ms18.7%
scantreewhitenoise/base.py:2715 ms9.4%
scantreewhitenoise/base.py:2713 ms4.7%
scantreewhitenoise/base.py:2713 ms4.7%
scantreewhitenoise/base.py:2713 ms4.7%
scantreewhitenoise/base.py:2713 ms4.7%
scantreewhitenoise/base.py:2733 ms4.7%
scantreewhitenoise/base.py:2733 ms4.7%
scantreewhitenoise/base.py:2693 ms4.7%
scantreewhitenoise/base.py:2733 ms4.7%
ClientHandler.__call__django/test/client.py:18619 ms32.8%
BaseHandler.get_responsedjango/core/handlers/base.py:14219 ms32.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5619 ms32.8%
MiddlewareMixin.__call__django/utils/deprecation.py:38019 ms32.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5619 ms32.8%
MiddlewareMixin.__call__django/utils/deprecation.py:38019 ms32.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5619 ms32.8%
MiddlewareMixin.__call__django/utils/deprecation.py:38019 ms32.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5619 ms32.8%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12319 ms32.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5619 ms32.8%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:14519 ms32.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5619 ms32.8%
MiddlewareMixin.__call__django/utils/deprecation.py:38019 ms32.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5619 ms32.8%
MiddlewareMixin.__call__django/utils/deprecation.py:38019 ms32.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5619 ms32.8%
MiddlewareMixin.__call__django/utils/deprecation.py:38019 ms32.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5619 ms32.8%
MiddlewareMixin.__call__django/utils/deprecation.py:38019 ms32.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5619 ms32.8%
MiddlewareMixin.__call__django/utils/deprecation.py:38019 ms32.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5619 ms32.8%
MiddlewareMixin.__call__django/utils/deprecation.py:38019 ms32.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5619 ms32.8%
MiddlewareMixin.__call__django/utils/deprecation.py:38019 ms32.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5619 ms32.8%
BaseHandler._get_responsedjango/core/handlers/base.py:19919 ms32.8%
indexaccounts/views.py:425 return render(11 ms18.7%
renderdjango/shortcuts.py:278 ms14.0%
render_to_stringdjango/template/loader.py:628 ms14.0%
Template.renderdjango/template/backends/django.py:1078 ms14.0%
Template.renderdjango/template/base.py:1755 ms9.4%
instrumented_test_renderdjango/test/utils.py:1135 ms9.4%
NodeList.renderdjango/template/base.py:11085 ms9.4%
Node.render_annotateddjango/template/base.py:10695 ms9.4%
ExtendsNode.renderdjango/template/loader_tags.py:1605 ms9.4%
instrumented_test_renderdjango/test/utils.py:1135 ms9.4%
NodeList.renderdjango/template/base.py:11085 ms9.4%
Node.render_annotateddjango/template/base.py:10695 ms9.4%
BlockNode.renderdjango/template/loader_tags.py:665 ms9.4%
NodeList.renderdjango/template/base.py:11085 ms9.4%
Node.render_annotateddjango/template/base.py:10695 ms9.4%
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%
SimpleNode.renderdjango/template/library.py:3483 ms4.7%
conditional_escapedjango/utils/html.py:1323 ms4.7%
ForNode.renderdjango/template/defaulttags.py:2493 ms4.7%
Node.render_annotateddjango/template/base.py:10693 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%
URLMixin.urldebug_toolbar/panels/staticfiles.py:203 ms4.7%
Template.renderdjango/template/base.py:1733 ms4.7%
renderdjango/shortcuts.py:283 ms4.7%
HttpResponse.__init__django/http/response.py:3893 ms4.7%
HttpResponse.contentdjango/http/response.py:4213 ms4.7%
HttpResponseBase.make_bytesdjango/http/response.py:3293 ms4.7%
indexaccounts/views.py:295 language_counts = Daily.objects.order_by("date").last()5 ms9.4%
QuerySet.lastdjango/db/models/query.py:12255 ms9.4%
QuerySet.__iter__django/db/models/query.py:4395 ms9.4%
QuerySet._fetch_alldjango/db/models/query.py:22625 ms9.4%
ModelIterable.__iter__django/db/models/query.py:1035 ms9.4%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16255 ms9.4%
CursorWrapper.executedjango/db/backends/utils.py:795 ms9.4%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:925 ms9.4%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1005 ms9.4%
CursorWrapper._executedjango/db/backends/utils.py:1055 ms9.4%
Cursor.executepsycopg/cursor.py:1135 ms9.4%
Connection.waitpsycopg/connection.py:4955 ms9.4%
BaseCursor._execute_genpsycopg/_cursor_base.py:2065 ms9.4%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:3183 ms4.7%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2863 ms4.7%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:783 ms4.7%
indexaccounts/views.py:2843 ms4.7%
_redirect_unknown_account_paramsaccounts/views.py:228 unknown = [key for key in request.GET if key not in ACCOUNT_INDEX_QUERY_PARAMS]3 ms4.7%
cached_property.__get__django/utils/functional.py:473 ms4.7%
WSGIRequest.GETdjango/core/handlers/wsgi.py:893 ms4.7%
QueryDict.__init__django/http/request.py:6063 ms4.7%
Estimated from 21 samples; phase durations are exact. Frames from pytest and pluggy are shown .

Hot lines in your code

accounts/tests.py:555
response = self.client.get(url)
TestAccountIndexRobots.assert_indexable · Libraries
37 ms
accounts/views.py:425
return render(
index · Templates
11 ms
accounts/views.py:295
language_counts = Daily.objects.order_by("date").last()
index · Database
5 ms
accounts/views.py:228
unknown = [key for key in request.GET if key not in ACCOUNT_INDEX_QUERY_PARAMS]
_redirect_unknown_account_params · Libraries
3 ms

Fixtures

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

Database

8 queries · 3 ms
No repeated queries.

Biggest pieces of work

call test body
accounts/tests.py:576
56 ms

Reliability

5 results · 0 CI failures · 0 local failures

This test hasn't failed recently.

History

Latest 5 results, oldest first in the strip
When Environment Outcome Duration Commit
8 hours ago CI github-actions:test passed 57 ms d923a46 main Profile
8 hours ago CI github-actions:test passed 109 ms 82997f8 main Profile
8 hours ago CI github-actions:test passed 288 ms 623aa3e main Profile
13 hours ago CI github-actions:test passed 236 ms ab6465a main Profile
14 hours ago CI github-actions:test passed 87 ms 0c23747 main Run