Tests / accounts/tests.py
TestSelectedInstance::test_unselected_instance
First seen 3 years ago in 1cd3a8d
CI
github-actions:test
13 runs
Average
193 ms
median 190 ms
max 353 ms
max 353 ms
Phases
Setup 2 ms
Call 186 ms
Teardown 4 ms
Categories
Database 42 ms
App code 0.21 ms
Other (Libraries, Templates, pytest, Unsampled, ...) 151 ms
20 database queries per run
Needs 779 KB of memory (max 884 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 2 weeks ago ·
open run
call92 ms94.6%
TestSelectedInstance.test_unselected_instanceaccounts/tests.py:186 self.client.get("/?selected_instance=mastodon.social")62 ms63.1%
Client.getdjango/test/client.py:113362 ms63.1%
RequestFactory.getdjango/test/client.py:47562 ms63.1%
RequestFactory.genericdjango/test/client.py:67162 ms63.1%
Client.requestdjango/test/client.py:109162 ms63.1%
ClientHandler.__call__django/test/client.py:17362 ms63.1%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6362 ms63.1%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10462 ms63.1%
WhiteNoise.add_fileswhitenoise/base.py:10862 ms63.1%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12041 ms42.1%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13141 ms42.1%
WhiteNoise.get_static_filewhitenoise/base.py:21727 ms28.0%
StaticFile.__init__whitenoise/responders.py:7721 ms21.0%
StaticFile.get_alternativeswhitenoise/responders.py:20010 ms10.5%
__init____init__:-17 ms7.0%
Headers.__init__<stdlib>/wsgiref/headers.py:433 ms3.5%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:503 ms3.5%
Headers.__init__<stdlib>/wsgiref/headers.py:443 ms3.5%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:503 ms3.5%
StaticFile.get_alternativeswhitenoise/responders.py:2017 ms7.0%
StaticFile.get_alternativeswhitenoise/responders.py:2033 ms3.5%
StaticFile.__init__whitenoise/responders.py:737 ms7.0%
StaticFile.get_headerswhitenoise/responders.py:1783 ms3.5%
parsedate<stdlib>/email/_parseaddr.py:1853 ms3.5%
StaticFile.get_headerswhitenoise/responders.py:1673 ms3.5%
__init____init__:-13 ms3.5%
WhiteNoise.get_static_filewhitenoise/base.py:21110 ms10.5%
WhiteNoise.add_mime_headerswhitenoise/base.py:2303 ms3.5%
WhiteNoise.get_static_filewhitenoise/base.py:2123 ms3.5%
WhiteNoise.add_cache_headerswhitenoise/base.py:2333 ms3.5%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1763 ms3.5%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1973 ms3.5%
URLMixin.urldebug_toolbar/panels/staticfiles.py:203 ms3.5%
WhiteNoise.update_files_dictionarywhitenoise/base.py:11521 ms21.0%
scantreewhitenoise/base.py:27117 ms17.5%
scantreewhitenoise/base.py:27117 ms17.5%
scantreewhitenoise/base.py:2737 ms7.0%
<GC>~7 ms7.0%
scantreewhitenoise/base.py:2717 ms7.0%
scantreewhitenoise/base.py:2717 ms7.0%
scantreewhitenoise/base.py:2713 ms3.5%
scantreewhitenoise/base.py:2733 ms3.5%
scantreewhitenoise/base.py:2693 ms3.5%
scantreewhitenoise/base.py:2733 ms3.5%
TestSelectedInstance.test_unselected_instanceaccounts/tests.py:18714 ms14.0%
Client.getdjango/test/client.py:113314 ms14.0%
RequestFactory.getdjango/test/client.py:47514 ms14.0%
RequestFactory.genericdjango/test/client.py:67114 ms14.0%
Client.requestdjango/test/client.py:109114 ms14.0%
ClientHandler.__call__django/test/client.py:18614 ms14.0%
BaseHandler.get_responsedjango/core/handlers/base.py:14214 ms14.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5614 ms14.0%
MiddlewareMixin.__call__django/utils/deprecation.py:38014 ms14.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5614 ms14.0%
MiddlewareMixin.__call__django/utils/deprecation.py:38014 ms14.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5614 ms14.0%
MiddlewareMixin.__call__django/utils/deprecation.py:38014 ms14.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5614 ms14.0%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12314 ms14.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5614 ms14.0%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:14514 ms14.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5614 ms14.0%
MiddlewareMixin.__call__django/utils/deprecation.py:38014 ms14.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5614 ms14.0%
MiddlewareMixin.__call__django/utils/deprecation.py:38014 ms14.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5614 ms14.0%
MiddlewareMixin.__call__django/utils/deprecation.py:38014 ms14.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5614 ms14.0%
MiddlewareMixin.__call__django/utils/deprecation.py:38014 ms14.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5614 ms14.0%
MiddlewareMixin.__call__django/utils/deprecation.py:38014 ms14.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5614 ms14.0%
MiddlewareMixin.__call__django/utils/deprecation.py:38014 ms14.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5614 ms14.0%
MiddlewareMixin.__call__django/utils/deprecation.py:38014 ms14.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5614 ms14.0%
BaseHandler._get_responsedjango/core/handlers/base.py:19914 ms14.0%
indexaccounts/views.py:425 return render(14 ms14.0%
renderdjango/shortcuts.py:2714 ms14.0%
render_to_stringdjango/template/loader.py:6214 ms14.0%
Template.renderdjango/template/backends/django.py:10714 ms14.0%
Template.renderdjango/template/base.py:17514 ms14.0%
instrumented_test_renderdjango/test/utils.py:11314 ms14.0%
NodeList.renderdjango/template/base.py:110814 ms14.0%
Node.render_annotateddjango/template/base.py:106914 ms14.0%
ExtendsNode.renderdjango/template/loader_tags.py:16014 ms14.0%
instrumented_test_renderdjango/test/utils.py:11314 ms14.0%
NodeList.renderdjango/template/base.py:110814 ms14.0%
Node.render_annotateddjango/template/base.py:106914 ms14.0%
BlockNode.renderdjango/template/loader_tags.py:6614 ms14.0%
NodeList.renderdjango/template/base.py:110814 ms14.0%
Node.render_annotateddjango/template/base.py:106914 ms14.0%
ForNode.renderdjango/template/defaulttags.py:24914 ms14.0%
Node.render_annotateddjango/template/base.py:106914 ms14.0%
IfNode.renderdjango/template/defaulttags.py:32610 ms10.5%
infix.<locals>.Operator.evaldjango/template/smartif.py:6110 ms10.5%
<lambda>django/template/smartif.py:1067 ms7.0%
TemplateLiteral.evaldjango/template/defaulttags.py:9187 ms7.0%
FilterExpression.resolvedjango/template/base.py:8067 ms7.0%
Variable.resolvedjango/template/base.py:9457 ms7.0%
Variable._resolve_lookupdjango/template/base.py:9993 ms3.5%
Variable._resolve_lookupdjango/template/base.py:9963 ms3.5%
<lambda>django/template/smartif.py:1073 ms3.5%
TemplateLiteral.evaldjango/template/defaulttags.py:9183 ms3.5%
FilterExpression.resolvedjango/template/base.py:8063 ms3.5%
SimpleNode.renderdjango/template/library.py:3433 ms3.5%
querystringdjango/template/defaulttags.py:13483 ms3.5%
teardown5 ms4.7%
TestCase.tearDownClassdjango/test/testcases.py:1458 conn.close()5 ms4.7%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:265 ms4.7%
BaseDatabaseWrapper.closedjango/db/backends/base/base.py:3555 ms4.7%
DatabaseWrapper._closedjango/db/backends/postgresql/base.py:4085 ms4.7%
Connection.closepsycopg/connection.py:2015 ms4.7%
Estimated from 68 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
accounts/tests.py:186
self.client.get("/?selected_instance=mastodon.social")
TestSelectedInstance.test_unselected_instance
· Libraries
|
62 ms |
|
accounts/views.py:425
return render(
index
· Templates
|
14 ms |
Fixtures
Exact setup time| _dj_autoclear_mailbox function | 0.05 ms |
| _template_string_if_invalid_marker function | 0.04 ms |
| _django_db_marker function | 0.03 ms |
| _django_isolate_apps 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
20 queries · 14 msNo repeated queries.
Biggest pieces of work
|
call test body
accounts/tests.py:186
|
75 ms |
| call pytest internals | 17 ms |
|
teardown tearDownClass
django/test/testcases.py:1458
|
5 ms |
Reliability
14 results · 0 CI failures · 0 local failuresThis test hasn't failed recently.
History
Latest 14 results, oldest first in the strip| When | Environment | Outcome | Duration | |
|---|---|---|---|---|
| 2 weeks ago | CI github-actions:test | passed | 98 ms | Profile |
| 2 weeks, 5 days ago | CI github-actions:test | passed | 217 ms | Profile |
| 2 weeks, 6 days ago | CI github-actions:test | passed | 184 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 74 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 205 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 192 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 190 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 162 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 162 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 124 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 267 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 276 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 353 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 353 ms | Run |