Tests / starter_packs/tests.py
TestRemoteFollowStarterPack::test_error_when_no_subscribe_endpoint
First seen 1 month, 1 week ago in 0c23747
CI
github-actions:test
13 runs
Average
146 ms
median 120 ms
max 329 ms
max 329 ms
Phases
Setup 2 ms
Call 144 ms
Teardown 0.32 ms
Categories
Database 29 ms
Other (Mocking, Templates, pytest, Unsampled, ...) 117 ms
12 database queries per run
Needs 166 KB of memory (max 1 MB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 2 weeks ago ·
open run
call92 ms98.0%
TestRemoteFollowStarterPack.test_error_when_no_subscribe_endpointstarter_packs/tests.py:1264 response = self.client.post(self.url, {"handle": "[email protected]"}, follow=True)90 ms95.8%
Client.postdjango/test/client.py:116267 ms70.8%
RequestFactory.postdjango/test/client.py:49967 ms70.8%
RequestFactory.genericdjango/test/client.py:67167 ms70.8%
Client.requestdjango/test/client.py:109167 ms70.8%
ClientHandler.__call__django/test/client.py:17367 ms70.8%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6367 ms70.8%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10466 ms69.7%
WhiteNoise.add_fileswhitenoise/base.py:10866 ms69.7%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12066 ms69.7%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13166 ms69.7%
WhiteNoise.get_static_filewhitenoise/base.py:21264 ms68.6%
WhiteNoise.add_cache_headerswhitenoise/base.py:23364 ms68.6%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:17664 ms68.6%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:19764 ms68.6%
URLMixin.urldebug_toolbar/panels/staticfiles.py:2064 ms68.6%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:23564 ms68.6%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:20763 ms67.5%
urldefrag<stdlib>/urllib/parse.py:78563 ms67.5%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:2141 ms1.1%
ManifestFilesMixin.stored_namedjango/contrib/staticfiles/storage.py:5951 ms1.1%
unquote<stdlib>/urllib/parse.py:8501 ms1.1%
WhiteNoise.get_static_filewhitenoise/base.py:2171 ms1.1%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:1111 ms1.1%
WhiteNoise.add_fileswhitenoise/base.py:1081 ms1.1%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1151 ms1.1%
scantreewhitenoise/base.py:2731 ms1.1%
Client.postdjango/test/client.py:117224 ms25.0%
Client._handle_redirectsdjango/test/client.py:139324 ms25.0%
ClientMixin._follow_redirectdjango/test/client.py:101124 ms25.0%
Client.getdjango/test/client.py:113324 ms25.0%
RequestFactory.getdjango/test/client.py:47524 ms25.0%
RequestFactory.genericdjango/test/client.py:67124 ms25.0%
Client.requestdjango/test/client.py:109124 ms25.0%
ClientHandler.__call__django/test/client.py:18624 ms25.0%
BaseHandler.get_responsedjango/core/handlers/base.py:14224 ms25.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5624 ms25.0%
MiddlewareMixin.__call__django/utils/deprecation.py:38024 ms25.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5624 ms25.0%
MiddlewareMixin.__call__django/utils/deprecation.py:38024 ms25.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5624 ms25.0%
MiddlewareMixin.__call__django/utils/deprecation.py:38024 ms25.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5624 ms25.0%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12324 ms25.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5624 ms25.0%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:14524 ms25.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5624 ms25.0%
MiddlewareMixin.__call__django/utils/deprecation.py:38024 ms25.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5624 ms25.0%
MiddlewareMixin.__call__django/utils/deprecation.py:38024 ms25.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5624 ms25.0%
MiddlewareMixin.__call__django/utils/deprecation.py:38024 ms25.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5624 ms25.0%
MiddlewareMixin.__call__django/utils/deprecation.py:38024 ms25.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5624 ms25.0%
MiddlewareMixin.__call__django/utils/deprecation.py:38024 ms25.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5624 ms25.0%
MiddlewareMixin.__call__django/utils/deprecation.py:38024 ms25.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5624 ms25.0%
MiddlewareMixin.__call__django/utils/deprecation.py:38024 ms25.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5624 ms25.0%
BaseHandler._get_responsedjango/core/handlers/base.py:19924 ms25.0%
share_starter_packstarter_packs/views.py:886 .count(),15 ms16.3%
QuerySet.countdjango/db/models/query.py:67715 ms16.3%
Query.get_countdjango/db/models/sql/query.py:65715 ms16.3%
Query.get_aggregationdjango/db/models/sql/query.py:63915 ms16.3%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:162515 ms16.3%
CursorWrapper.executedjango/db/backends/utils.py:7915 ms16.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9215 ms16.3%
CursorWrapper._executedjango/db/backends/utils.py:10515 ms16.3%
Cursor.executepsycopg/cursor.py:11315 ms16.3%
Connection.waitpsycopg/connection.py:49515 ms16.3%
BaseCursor._execute_genpsycopg/_cursor_base.py:20615 ms16.3%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:28615 ms16.3%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:7815 ms16.3%
share_starter_packstarter_packs/views.py:8604 ms4.4%
pack_header_avatarsstarter_packs/views.py:89 for pack_id, avatar, handle, name in rows:4 ms4.4%
QuerySet.__iter__django/db/models/query.py:4394 ms4.4%
QuerySet._fetch_alldjango/db/models/query.py:22624 ms4.4%
ValuesListIterable.__iter__django/db/models/query.py:2634 ms4.4%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15744 ms4.4%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16254 ms4.4%
CursorWrapper.executedjango/db/backends/utils.py:794 ms4.4%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:924 ms4.4%
CursorWrapper._executedjango/db/backends/utils.py:1054 ms4.4%
Cursor.executepsycopg/cursor.py:1134 ms4.4%
Connection.waitpsycopg/connection.py:4954 ms4.4%
BaseCursor._execute_genpsycopg/_cursor_base.py:2064 ms4.4%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2864 ms4.4%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:784 ms4.4%
share_starter_packstarter_packs/views.py:862 return render(4 ms4.4%
renderdjango/shortcuts.py:274 ms4.4%
render_to_stringdjango/template/loader.py:624 ms4.4%
Template.renderdjango/template/backends/django.py:1074 ms4.4%
Template.renderdjango/template/base.py:1754 ms4.4%
instrumented_test_renderdjango/test/utils.py:1134 ms4.4%
NodeList.renderdjango/template/base.py:11084 ms4.4%
Node.render_annotateddjango/template/base.py:10694 ms4.4%
ExtendsNode.renderdjango/template/loader_tags.py:1604 ms4.4%
instrumented_test_renderdjango/test/utils.py:1134 ms4.4%
NodeList.renderdjango/template/base.py:11084 ms4.4%
Node.render_annotateddjango/template/base.py:10694 ms4.4%
BlockNode.renderdjango/template/loader_tags.py:662 ms2.2%
NodeList.renderdjango/template/base.py:11082 ms2.2%
Node.render_annotateddjango/template/base.py:10692 ms2.2%
SimpleNode.renderdjango/template/library.py:3431 ms1.1%
render_language_emojisaccounts/templatetags/account_extras.py:27 f"<img src='{static(lang.image)}' class='emojione' alt=':{lang.code}:' title=':{lang.code}:' />",1 ms1.1%
staticdjango/templatetags/static.py:1791 ms1.1%
StaticNode.handle_simpledjango/templatetags/static.py:1291 ms1.1%
URLMixin.urldebug_toolbar/panels/staticfiles.py:201 ms1.1%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:2351 ms1.1%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:2141 ms1.1%
ManifestFilesMixin.stored_namedjango/contrib/staticfiles/storage.py:6111 ms1.1%
urlunsplit<stdlib>/urllib/parse.py:6671 ms1.1%
IfNode.renderdjango/template/defaulttags.py:3321 ms1.1%
Page.__len__django/core/paginator.py:3121 ms1.1%
QuerySet.__len__django/db/models/query.py:4211 ms1.1%
QuerySet._fetch_alldjango/db/models/query.py:22621 ms1.1%
ModelIterable.__iter__django/db/models/query.py:1031 ms1.1%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16121 ms1.1%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7681 ms1.1%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:891 ms1.1%
SQLCompiler.setup_querydjango/db/models/sql/compiler.py:781 ms1.1%
SQLCompiler.get_selectdjango/db/models/sql/compiler.py:3101 ms1.1%
SQLCompiler.get_related_selectionsdjango/db/models/sql/compiler.py:12281 ms1.1%
SimpleNode.renderdjango/template/library.py:3431 ms1.1%
heroicon_outlineheroicons/templatetags/heroicons.py:231 ms1.1%
_render_iconheroicons/templatetags/heroicons.py:411 ms1.1%
_render_iconheroicons/__init__.py:651 ms1.1%
tostring<stdlib>/xml/etree/ElementTree.py:11061 ms1.1%
ElementTree.write<stdlib>/xml/etree/ElementTree.py:7451 ms1.1%
_serialize_xml<stdlib>/xml/etree/ElementTree.py:9011 ms1.1%
IfNode.renderdjango/template/defaulttags.py:3331 ms1.1%
NodeList.renderdjango/template/base.py:11081 ms1.1%
Node.render_annotateddjango/template/base.py:10691 ms1.1%
IncludeNode.renderdjango/template/loader_tags.py:2111 ms1.1%
Template.renderdjango/template/base.py:1771 ms1.1%
instrumented_test_renderdjango/test/utils.py:1131 ms1.1%
NodeList.renderdjango/template/base.py:11081 ms1.1%
Node.render_annotateddjango/template/base.py:10691 ms1.1%
SimpleNode.renderdjango/template/library.py:3431 ms1.1%
instances_datalistaccounts/templatetags/account_extras.py:36 for instance in instances:1 ms1.1%
QuerySet.__iter__django/db/models/query.py:4391 ms1.1%
QuerySet._fetch_alldjango/db/models/query.py:22621 ms1.1%
FlatValuesListIterable.__iter__django/db/models/query.py:3021 ms1.1%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15741 ms1.1%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16231 ms1.1%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:261 ms1.1%
TransactionTestCase._post_teardowndjango/test/testcases.py:1243 self._fixture_teardown()2 ms2.2%
TestCase._fixture_teardowndjango/test/testcases.py:14981 ms1.1%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4951 ms1.1%
CursorWrapper.executedjango/db/backends/utils.py:791 ms1.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms1.1%
CursorWrapper._executedjango/db/backends/utils.py:1031 ms1.1%
Cursor.executepsycopg/cursor.py:1131 ms1.1%
Connection.waitpsycopg/connection.py:4951 ms1.1%
TestCase._fixture_teardowndjango/test/testcases.py:15001 ms1.1%
TestCase._rollback_atomicsdjango/test/testcases.py:14081 ms1.1%
Atomic.__exit__django/db/transaction.py:2951 ms1.1%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:261 ms1.1%
BaseDatabaseWrapper.savepoint_rollbackdjango/db/backends/base/base.py:4131 ms1.1%
BaseDatabaseWrapper._savepoint_rollbackdjango/db/backends/base/base.py:3711 ms1.1%
CursorWrapper.executedjango/db/backends/utils.py:791 ms1.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms1.1%
CursorWrapper._executedjango/db/backends/utils.py:1031 ms1.1%
Cursor.executepsycopg/cursor.py:1131 ms1.1%
Connection.waitpsycopg/connection.py:4951 ms1.1%
Estimated from 90 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
starter_packs/tests.py:1264
response = self.client.post(self.url, {"handle": "[email protected]"}, follow=True)
TestRemoteFollowStarterPack.test_error_when_no_subscribe_endpoint
· Mocking
|
67 ms |
|
starter_packs/views.py:886
.count(),
share_starter_pack
· Database
|
15 ms |
|
starter_packs/views.py:89
for pack_id, avatar, handle, name in rows:
pack_header_avatars
· Database
|
4 ms |
|
starter_packs/views.py:862
return render(
share_starter_pack
· Templates
|
2 ms |
|
accounts/templatetags/account_extras.py:27
f"<img src='{static(lang.image)}' class='emojione' alt=':{lang.code}:' title=':{lang.code}:' />",
render_language_emojis
· Templates
|
1 ms |
|
accounts/templatetags/account_extras.py:36
for instance in instances:
instances_datalist
· Database
|
1 ms |
Fixtures
Exact setup time| _dj_autoclear_mailbox function | 0.39 ms |
| _django_db_marker function | 0.04 ms |
| _template_string_if_invalid_marker function | 0.04 ms |
| _django_isolate_apps function | 0.03 ms |
| _django_clear_site_cache function | 0.03 ms |
| _django_set_urlconf function | 0.03 ms |
| _live_server_helper function | 0.03 ms |
| monkeypatch function | 0.02 ms |
Database
12 queries · 10 msNo repeated queries.
Biggest pieces of work
|
call test body
starter_packs/tests.py:1264
|
90 ms |
|
call _post_teardown
django/test/testcases.py:1243
|
2 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 | 94 ms | Profile |
| 2 weeks, 5 days ago | CI github-actions:test | passed | 110 ms | Profile |
| 2 weeks, 6 days ago | CI github-actions:test | passed | 157 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 59 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 125 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 148 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 119 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 120 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 100 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 62 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 301 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 329 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 180 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 124 ms | Run |