Tests / fedidevs/tests.py
TestAnonymousCacheAndCsrf::test_query_string_pages_are_not_noindexed
First seen 14 hours ago in 0c23747
CI
github-actions:test
4 runs
Average
163 ms
median 170 ms
max 261 ms
max 261 ms
Phases
Setup 3 ms
Call 157 ms
Teardown 3 ms
Categories
Database 12 ms
Other (Libraries, Templates, pytest, Unsampled) 150 ms
7 database queries per run
Needs 3 KB of memory (max 12 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 8 hours ago ·
open run
call44 ms89.1%
CallInfo.from_call_pytest/runner.py:36144 ms89.1%
call_and_report.<locals>.<lambda>_pytest/runner.py:25044 ms89.1%
HookCaller.__call__pluggy/_hooks.py:51244 ms89.1%
PluginManager._hookexecpluggy/_manager.py:12044 ms89.1%
_multicallpluggy/_callers.py:12144 ms89.1%
pytest_runtest_call_pytest/runner.py:18444 ms89.1%
_django_setup_unittest.<locals>.non_debugging_runtestpytest_django/plugin.py:61444 ms89.1%
SimpleTestCase.__call__django/test/testcases.py:31444 ms89.1%
SimpleTestCase._setup_and_calldjango/test/testcases.py:36942 ms84.4%
TestCase.__call__<stdlib>/unittest/case.py:74742 ms84.4%
TestCase.run<stdlib>/unittest/case.py:69142 ms84.4%
TestCase._callTestMethod<stdlib>/unittest/case.py:63742 ms84.4%
TestAnonymousCacheAndCsrf.test_query_string_pages_are_not_noindexedfedidevs/tests.py:104 response = self.client.get("/login/?q=")42 ms84.4%
Client.getdjango/test/client.py:113342 ms84.4%
RequestFactory.getdjango/test/client.py:47542 ms84.4%
RequestFactory.genericdjango/test/client.py:67142 ms84.4%
Client.requestdjango/test/client.py:109142 ms84.4%
ClientHandler.__call__django/test/client.py:17330 ms60.9%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6330 ms60.9%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10428 ms56.3%
WhiteNoise.add_fileswhitenoise/base.py:10828 ms56.3%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12021 ms42.2%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13121 ms42.2%
WhiteNoise.get_static_filewhitenoise/base.py:21714 ms28.1%
StaticFile.__init__whitenoise/responders.py:739 ms18.8%
StaticFile.get_headerswhitenoise/responders.py:1767 ms14.1%
StaticFile.get_headerswhitenoise/responders.py:1782 ms4.7%
parsedate<stdlib>/email/_parseaddr.py:1852 ms4.7%
StaticFile.__init__whitenoise/responders.py:775 ms9.4%
StaticFile.get_alternativeswhitenoise/responders.py:1982 ms4.7%
<GC>~2 ms4.7%
StaticFile.get_alternativeswhitenoise/responders.py:2012 ms4.7%
WhiteNoise.get_static_filewhitenoise/base.py:2125 ms9.4%
WhiteNoise.add_cache_headerswhitenoise/base.py:2335 ms9.4%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1765 ms9.4%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1975 ms9.4%
WhiteNoise.get_static_filewhitenoise/base.py:2142 ms4.7%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1157 ms14.1%
scantreewhitenoise/base.py:2717 ms14.1%
scantreewhitenoise/base.py:2715 ms9.4%
scantreewhitenoise/base.py:2715 ms9.4%
scantreewhitenoise/base.py:2715 ms9.4%
scantreewhitenoise/base.py:2712 ms4.7%
scantreewhitenoise/base.py:2732 ms4.7%
scantreewhitenoise/base.py:2732 ms4.7%
scantreewhitenoise/base.py:2732 ms4.7%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:1112 ms4.7%
WhiteNoise.add_fileswhitenoise/base.py:1082 ms4.7%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1202 ms4.7%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:1312 ms4.7%
WhiteNoise.get_static_filewhitenoise/base.py:2172 ms4.7%
StaticFile.__init__whitenoise/responders.py:732 ms4.7%
StaticFile.get_headerswhitenoise/responders.py:1762 ms4.7%
formatdate<stdlib>/email/utils.py:2662 ms4.7%
ClientHandler.__call__django/test/client.py:18612 ms23.4%
BaseHandler.get_responsedjango/core/handlers/base.py:14212 ms23.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5612 ms23.4%
MiddlewareMixin.__call__django/utils/deprecation.py:38012 ms23.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5612 ms23.4%
MiddlewareMixin.__call__django/utils/deprecation.py:3809 ms18.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:569 ms18.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3809 ms18.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:569 ms18.8%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:1239 ms18.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:569 ms18.8%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1459 ms18.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:569 ms18.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3809 ms18.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:569 ms18.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3809 ms18.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:569 ms18.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3809 ms18.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:569 ms18.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3809 ms18.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:569 ms18.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3809 ms18.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:569 ms18.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3809 ms18.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:569 ms18.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3809 ms18.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:569 ms18.8%
BaseHandler._get_responsedjango/core/handlers/base.py:1999 ms18.8%
loginaccounts/views.py:280 return render(request, "login.html")9 ms18.8%
renderdjango/shortcuts.py:279 ms18.8%
render_to_stringdjango/template/loader.py:629 ms18.8%
Template.renderdjango/template/backends/django.py:1079 ms18.8%
Template.renderdjango/template/base.py:1759 ms18.8%
instrumented_test_renderdjango/test/utils.py:1139 ms18.8%
NodeList.renderdjango/template/base.py:11089 ms18.8%
Node.render_annotateddjango/template/base.py:10699 ms18.8%
ExtendsNode.renderdjango/template/loader_tags.py:1607 ms14.1%
instrumented_test_renderdjango/test/utils.py:1137 ms14.1%
NodeList.renderdjango/template/base.py:11087 ms14.1%
Node.render_annotateddjango/template/base.py:10697 ms14.1%
CsrfTokenNode.renderdjango/template/defaulttags.py:782 ms4.7%
new_method_proxy.<locals>.innerdjango/utils/functional.py:2512 ms4.7%
SimpleLazyObject._setupdjango/utils/functional.py:4042 ms4.7%
csrf.<locals>._get_valdjango/template/context_processors.py:262 ms4.7%
get_tokendjango/middleware/csrf.py:1132 ms4.7%
_add_new_csrf_cookiedjango/middleware/csrf.py:862 ms4.7%
_get_new_csrf_stringdjango/middleware/csrf.py:562 ms4.7%
get_random_stringdjango/utils/crypto.py:782 ms4.7%
get_random_string.<locals>.<genexpr>django/utils/crypto.py:782 ms4.7%
Random.choice<stdlib>/random.py:3542 ms4.7%
Random._randbelow_with_getrandbits<stdlib>/random.py:2492 ms4.7%
SystemRandom.getrandbits<stdlib>/random.py:9152 ms4.7%
BlockNode.renderdjango/template/loader_tags.py:662 ms4.7%
NodeList.renderdjango/template/base.py:11082 ms4.7%
Node.render_annotateddjango/template/base.py:10692 ms4.7%
WithNode.renderdjango/template/defaulttags.py:5812 ms4.7%
NodeList.renderdjango/template/base.py:11082 ms4.7%
Node.render_annotateddjango/template/base.py:10692 ms4.7%
IncludeNode.renderdjango/template/loader_tags.py:2112 ms4.7%
Template.renderdjango/template/base.py:1772 ms4.7%
instrumented_test_renderdjango/test/utils.py:1132 ms4.7%
NodeList.renderdjango/template/base.py:11082 ms4.7%
Node.render_annotateddjango/template/base.py:10692 ms4.7%
SimpleNode.renderdjango/template/library.py:3432 ms4.7%
instances_datalistaccounts/templatetags/account_extras.py:36 for instance in instances:2 ms4.7%
QuerySet.__iter__django/db/models/query.py:4392 ms4.7%
QuerySet._fetch_alldjango/db/models/query.py:22622 ms4.7%
FlatValuesListIterable.__iter__django/db/models/query.py:3022 ms4.7%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15742 ms4.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16232 ms4.7%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms4.7%
IfNode.renderdjango/template/defaulttags.py:3332 ms4.7%
NodeList.renderdjango/template/base.py:11082 ms4.7%
Node.render_annotateddjango/template/base.py:10692 ms4.7%
IncludeNode.renderdjango/template/loader_tags.py:2112 ms4.7%
Template.renderdjango/template/base.py:1772 ms4.7%
instrumented_test_renderdjango/test/utils.py:1132 ms4.7%
NodeList.renderdjango/template/base.py:11082 ms4.7%
Node.render_annotateddjango/template/base.py:10692 ms4.7%
SimpleNode.renderdjango/template/library.py:3432 ms4.7%
instances_datalistaccounts/templatetags/account_extras.py:34 instances = Instance.objects.filter(deleted_at__isnull=True).values_list("domain", flat=True)2 ms4.7%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms4.7%
QuerySet.filterdjango/db/models/query.py:16762 ms4.7%
QuerySet._filter_or_excludedjango/db/models/query.py:16942 ms4.7%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:17042 ms4.7%
Query.add_qdjango/db/models/sql/query.py:16812 ms4.7%
Query._add_qdjango/db/models/sql/query.py:17132 ms4.7%
Query.build_filterdjango/db/models/sql/query.py:16132 ms4.7%
ExtendsNode.renderdjango/template/loader_tags.py:1522 ms4.7%
NodeList.get_nodes_by_typedjango/template/base.py:11142 ms4.7%
Node.get_nodes_by_typedjango/template/base.py:10962 ms4.7%
IfNode.nodelistdjango/template/defaulttags.py:3202 ms4.7%
MiddlewareMixin.__call__django/utils/deprecation.py:3822 ms4.7%
CSPMiddleware.process_responsecsp/middleware.py:832 ms4.7%
SimpleTestCase._setup_and_calldjango/test/testcases.py:3722 ms4.7%
TransactionTestCase._post_teardowndjango/test/testcases.py:1243 self._fixture_teardown()2 ms4.7%
TestCase._fixture_teardowndjango/test/testcases.py:15002 ms4.7%
TestCase._rollback_atomicsdjango/test/testcases.py:14082 ms4.7%
Atomic.__exit__django/db/transaction.py:2952 ms4.7%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms4.7%
BaseDatabaseWrapper.savepoint_rollbackdjango/db/backends/base/base.py:4132 ms4.7%
BaseDatabaseWrapper._savepoint_rollbackdjango/db/backends/base/base.py:3712 ms4.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms4.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms4.7%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1002 ms4.7%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms4.7%
Cursor.executepsycopg/cursor.py:1132 ms4.7%
Connection.waitpsycopg/connection.py:4952 ms4.7%
teardown5 ms9.5%
CallInfo.from_call_pytest/runner.py:3615 ms9.5%
call_and_report.<locals>.<lambda>_pytest/runner.py:2505 ms9.5%
HookCaller.__call__pluggy/_hooks.py:5125 ms9.5%
PluginManager._hookexecpluggy/_manager.py:1205 ms9.5%
_multicallpluggy/_callers.py:1215 ms9.5%
pytest_runtest_teardown_pytest/runner.py:1995 ms9.5%
SetupState.teardown_exact_pytest/runner.py:5685 ms9.5%
FixtureDef.finish_pytest/fixtures.py:11565 ms9.5%
_teardown_yield_fixture_pytest/fixtures.py:10145 ms9.5%
UnitTestCase._register_unittest_setup_class_fixture.<locals>.unittest_setup_class_fixture_pytest/unittest.py:1695 ms9.5%
TestCase.tearDownClassdjango/test/testcases.py:1458 conn.close()5 ms9.5%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:265 ms9.5%
BaseDatabaseWrapper.closedjango/db/backends/base/base.py:3555 ms9.5%
DatabaseWrapper._closedjango/db/backends/postgresql/base.py:4085 ms9.5%
Connection.closepsycopg/connection.py:2015 ms9.5%
Estimated from 24 samples; phase durations are exact. Frames from pytest and pluggy are
shown
.
Hot lines in your code
|
fedidevs/tests.py:104
response = self.client.get("/login/?q=")
TestAnonymousCacheAndCsrf.test_query_string_pages_are_not_noindexed
· Libraries
|
32 ms |
|
accounts/views.py:280
return render(request, "login.html")
login
· Templates
|
5 ms |
|
accounts/templatetags/account_extras.py:36
for instance in instances:
instances_datalist
· Database
|
2 ms |
|
accounts/templatetags/account_extras.py:34
instances = Instance.objects.filter(deleted_at__isnull=True).values_list("domain", flat=True)
instances_datalist
· Database
|
2 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 |
| _live_server_helper function | 0.02 ms |
| _django_set_urlconf function | 0.02 ms |
| _django_clear_site_cache function | 0.02 ms |
| monkeypatch function | 0.01 ms |
Database
7 queries · 2 msNo repeated queries.
Biggest pieces of work
|
call test body
fedidevs/tests.py:104
|
42 ms |
|
teardown tearDownClass
django/test/testcases.py:1458
|
5 ms |
|
call _post_teardown
django/test/testcases.py:1243
|
2 ms |
Reliability
5 results · 0 CI failures · 0 local failuresThis test hasn't failed recently.
History
Latest 5 results, oldest first in the strip| When | Environment | Outcome | Duration | |
|---|---|---|---|---|
| 8 hours ago | CI github-actions:test | passed | 50 ms | Profile |
| 8 hours ago | CI github-actions:test | passed | 261 ms | Profile |
| 8 hours ago | CI github-actions:test | passed | 180 ms | Profile |
| 13 hours ago | CI github-actions:test | passed | 161 ms | Profile |
| 14 hours ago | CI github-actions:test | passed | 78 ms | Run |