Tests / starter_packs/tests.py
TestOwnerManagement::test_owner_handles_shown_on_list_card
First seen 1 month, 1 week ago in 0c23747
CI
github-actions:test
13 runs
Average
144 ms
median 145 ms
max 215 ms
max 215 ms
Phases
Setup 1 ms
Call 142 ms
Teardown 0.73 ms
Categories
Database 44 ms
App code 1 ms
Test code 0.37 ms
Other (Libraries, Templates, Unsampled, pytest, ...) 98 ms
17 database queries per run
Needs 300 KB of memory (max 976 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 2 weeks ago ·
open run
call65 ms98.5%
TestOwnerManagement.test_owner_handles_shown_on_list_cardstarter_packs/tests.py:635 response = self.client.get(reverse("starter_packs"))63 ms95.1%
Client.getdjango/test/client.py:113363 ms95.1%
RequestFactory.getdjango/test/client.py:47563 ms95.1%
RequestFactory.genericdjango/test/client.py:67163 ms95.1%
Client.requestdjango/test/client.py:109163 ms95.1%
ClientHandler.__call__django/test/client.py:18662 ms93.5%
BaseHandler.get_responsedjango/core/handlers/base.py:14262 ms93.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5662 ms93.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38062 ms93.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5662 ms93.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38062 ms93.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5662 ms93.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38062 ms93.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5662 ms93.5%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12362 ms93.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5662 ms93.5%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:14562 ms93.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5662 ms93.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38062 ms93.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5662 ms93.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38062 ms93.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5662 ms93.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38062 ms93.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5662 ms93.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38062 ms93.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5662 ms93.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38062 ms93.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5662 ms93.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38062 ms93.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5662 ms93.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38062 ms93.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5662 ms93.5%
BaseHandler._get_responsedjango/core/handlers/base.py:19962 ms93.5%
starter_packsstarter_packs/views.py:171 avatars = pack_header_avatars([pack.id for pack in page_obj], limit=6)52 ms78.2%
Sequence.__iter__<frozen _collections_abc>:102042 ms62.9%
Page.__getitem__django/core/paginator.py:32342 ms62.9%
QuerySet.__iter__django/db/models/query.py:43942 ms62.9%
QuerySet._fetch_alldjango/db/models/query.py:226224 ms35.7%
ModelIterable.__iter__django/db/models/query.py:10324 ms35.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:162521 ms32.3%
CursorWrapper.executedjango/db/backends/utils.py:7921 ms32.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9221 ms32.3%
CursorWrapper._executedjango/db/backends/utils.py:10520 ms30.6%
Cursor.executepsycopg/cursor.py:11320 ms30.6%
Connection.waitpsycopg/connection.py:49520 ms30.6%
BaseCursor._execute_genpsycopg/_cursor_base.py:20620 ms30.6%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:28620 ms30.6%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:7820 ms30.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16122 ms3.4%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7682 ms3.4%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:891 ms1.7%
SQLCompiler.setup_querydjango/db/models/sql/compiler.py:781 ms1.7%
SQLCompiler.get_selectdjango/db/models/sql/compiler.py:3191 ms1.7%
SQLCompiler.compiledjango/db/models/sql/compiler.py:5791 ms1.7%
Col.as_sqldjango/db/models/expressions.py:13671 ms1.7%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:901 ms1.7%
SQLCompiler.get_order_bydjango/db/models/sql/compiler.py:4911 ms1.7%
SQLCompiler._order_by_pairsdjango/db/models/sql/compiler.py:4741 ms1.7%
QuerySet._fetch_alldjango/db/models/query.py:226418 ms27.2%
QuerySet._prefetch_related_objectsdjango/db/models/query.py:149018 ms27.2%
prefetch_related_objectsdjango/db/models/query.py:272417 ms25.5%
prefetch_one_leveldjango/db/models/query.py:288014 ms20.4%
ReverseOneToOneDescriptor.get_prefetch_querysetsdjango/db/models/fields/related_descriptors.py:50111 ms17.0%
QuerySet.__iter__django/db/models/query.py:43911 ms17.0%
QuerySet._fetch_alldjango/db/models/query.py:226211 ms17.0%
ModelIterable.__iter__django/db/models/query.py:10311 ms17.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:162511 ms17.0%
CursorWrapper.executedjango/db/backends/utils.py:7911 ms17.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9211 ms17.0%
CursorWrapper._executedjango/db/backends/utils.py:10511 ms17.0%
Cursor.executepsycopg/cursor.py:11311 ms17.0%
Connection.waitpsycopg/connection.py:49511 ms17.0%
BaseCursor._execute_genpsycopg/_cursor_base.py:20610 ms15.3%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:28610 ms15.3%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:7810 ms15.3%
ForwardManyToOneDescriptor.get_prefetch_querysetsdjango/db/models/fields/related_descriptors.py:1921 ms1.7%
Query.resolve_refdjango/db/models/sql/query.py:20631 ms1.7%
ReverseOneToOneDescriptor.get_prefetch_querysetsdjango/db/models/fields/related_descriptors.py:4851 ms1.7%
QuerySet.fetch_modedjango/db/models/query.py:20021 ms1.7%
prefetch_one_leveldjango/db/models/query.py:28993 ms5.1%
QuerySet.__iter__django/db/models/query.py:4393 ms5.1%
QuerySet._fetch_alldjango/db/models/query.py:22623 ms5.1%
ModelIterable.__iter__django/db/models/query.py:1032 ms3.4%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16252 ms3.4%
CursorWrapper.executedjango/db/backends/utils.py:792 ms3.4%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.4%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms1.7%
Cursor.executepsycopg/cursor.py:1131 ms1.7%
Connection.waitpsycopg/connection.py:4951 ms1.7%
BaseCursor._execute_genpsycopg/_cursor_base.py:2061 ms1.7%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2861 ms1.7%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:781 ms1.7%
ModelIterable.__iter__django/db/models/query.py:1351 ms1.7%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15821 ms1.7%
SQLCompiler.has_composite_fieldsdjango/db/models/sql/compiler.py:15501 ms1.7%
prefetch_related_objectsdjango/db/models/query.py:26931 ms1.7%
pack_header_avatarsstarter_packs/views.py:89 for pack_id, avatar, handle, name in rows:8 ms11.9%
QuerySet.__iter__django/db/models/query.py:4398 ms11.9%
QuerySet._fetch_alldjango/db/models/query.py:22628 ms11.9%
ValuesListIterable.__iter__django/db/models/query.py:2638 ms11.9%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15748 ms11.9%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16128 ms11.9%
CursorWrapper.executedjango/db/backends/utils.py:796 ms8.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:926 ms8.5%
CursorWrapper._executedjango/db/backends/utils.py:1056 ms8.5%
Cursor.executepsycopg/cursor.py:1136 ms8.5%
Connection.waitpsycopg/connection.py:4956 ms8.5%
BaseCursor._execute_genpsycopg/_cursor_base.py:2066 ms8.5%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2866 ms8.5%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:786 ms8.5%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7931 ms1.7%
SQLCompiler.get_from_clausedjango/db/models/sql/compiler.py:11601 ms1.7%
SQLCompiler.compiledjango/db/models/sql/compiler.py:5791 ms1.7%
Join.as_sqldjango/db/models/sql/datastructures.py:881 ms1.7%
DatabaseOperations.prepare_join_on_clausedjango/db/backends/postgresql/operations.py:4021 ms1.7%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:9791 ms1.7%
pack_header_avatarsstarter_packs/views.py:75 StarterPackAccount.objects.filter(1 ms1.7%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:871 ms1.7%
QuerySet.filterdjango/db/models/query.py:16761 ms1.7%
QuerySet._filter_or_excludedjango/db/models/query.py:16941 ms1.7%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:17041 ms1.7%
Query.add_qdjango/db/models/sql/query.py:16811 ms1.7%
Query._add_qdjango/db/models/sql/query.py:17131 ms1.7%
Query.build_filterdjango/db/models/sql/query.py:16131 ms1.7%
Query.build_lookupdjango/db/models/sql/query.py:14301 ms1.7%
pack_header_avatarsstarter_packs/views.py:82 .values_list(1 ms1.7%
QuerySet.values_listdjango/db/models/query.py:15921 ms1.7%
QuerySet._valuesdjango/db/models/query.py:15311 ms1.7%
starter_packsstarter_packs/views.py:168 page_obj = paginator.get_page(page_number)6 ms8.5%
Paginator.get_pagedjango/core/paginator.py:1616 ms8.5%
Paginator.validate_numberdjango/core/paginator.py:1536 ms8.5%
cached_property.__get__django/utils/functional.py:476 ms8.5%
Paginator.num_pagesdjango/core/paginator.py:1886 ms8.5%
cached_property.__get__django/utils/functional.py:475 ms6.8%
Paginator.countdjango/core/paginator.py:1825 ms6.8%
QuerySet.countdjango/db/models/query.py:6775 ms6.8%
Query.get_countdjango/db/models/sql/query.py:6575 ms6.8%
Query.get_aggregationdjango/db/models/sql/query.py:6393 ms5.1%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16252 ms3.4%
CursorWrapper.executedjango/db/backends/utils.py:792 ms3.4%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.4%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms3.4%
Cursor.executepsycopg/cursor.py:1132 ms3.4%
Connection.waitpsycopg/connection.py:4952 ms3.4%
BaseCursor._execute_genpsycopg/_cursor_base.py:2061 ms1.7%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2861 ms1.7%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:781 ms1.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16231 ms1.7%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:261 ms1.7%
BaseDatabaseWrapper.cursordjango/db/backends/base/base.py:3201 ms1.7%
BaseDatabaseWrapper._cursordjango/db/backends/base/base.py:2981 ms1.7%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:261 ms1.7%
Query.get_aggregationdjango/db/models/sql/query.py:4911 ms1.7%
Expression.__hash__django/db/models/expressions.py:5621 ms1.7%
starter_packsstarter_packs/views.py:185 return render(3 ms5.1%
renderdjango/shortcuts.py:273 ms5.1%
render_to_stringdjango/template/loader.py:623 ms5.1%
Template.renderdjango/template/backends/django.py:1073 ms5.1%
Template.renderdjango/template/base.py:1753 ms5.1%
instrumented_test_renderdjango/test/utils.py:1133 ms5.1%
NodeList.renderdjango/template/base.py:11083 ms5.1%
Node.render_annotateddjango/template/base.py:10693 ms5.1%
ExtendsNode.renderdjango/template/loader_tags.py:1603 ms5.1%
instrumented_test_renderdjango/test/utils.py:1133 ms5.1%
NodeList.renderdjango/template/base.py:11083 ms5.1%
Node.render_annotateddjango/template/base.py:10693 ms5.1%
BlockNode.renderdjango/template/loader_tags.py:662 ms3.4%
NodeList.renderdjango/template/base.py:11082 ms3.4%
Node.render_annotateddjango/template/base.py:10692 ms3.4%
IfNode.renderdjango/template/defaulttags.py:3332 ms3.4%
NodeList.renderdjango/template/base.py:11082 ms3.4%
Node.render_annotateddjango/template/base.py:10692 ms3.4%
ForNode.renderdjango/template/defaulttags.py:2492 ms3.4%
Node.render_annotateddjango/template/base.py:10692 ms3.4%
SimpleNode.renderdjango/template/library.py:3432 ms3.4%
render_language_emojisaccounts/templatetags/account_extras.py:27 f"<img src='{static(lang.image)}' class='emojione' alt=':{lang.code}:' title=':{lang.code}:' />",2 ms3.4%
staticdjango/templatetags/static.py:1792 ms3.4%
StaticNode.handle_simpledjango/templatetags/static.py:1292 ms3.4%
URLMixin.urldebug_toolbar/panels/staticfiles.py:201 ms1.7%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:2351 ms1.7%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:2161 ms1.7%
IfNode.renderdjango/template/defaulttags.py:3331 ms1.7%
NodeList.renderdjango/template/base.py:11081 ms1.7%
Node.render_annotateddjango/template/base.py:10691 ms1.7%
IncludeNode.renderdjango/template/loader_tags.py:2111 ms1.7%
Template.renderdjango/template/base.py:1771 ms1.7%
instrumented_test_renderdjango/test/utils.py:1131 ms1.7%
NodeList.renderdjango/template/base.py:11081 ms1.7%
Node.render_annotateddjango/template/base.py:10691 ms1.7%
SimpleNode.renderdjango/template/library.py:3431 ms1.7%
instances_datalistaccounts/templatetags/account_extras.py:36 for instance in instances:1 ms1.7%
QuerySet.__iter__django/db/models/query.py:4391 ms1.7%
QuerySet._fetch_alldjango/db/models/query.py:22621 ms1.7%
FlatValuesListIterable.__iter__django/db/models/query.py:3021 ms1.7%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15741 ms1.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16251 ms1.7%
CursorWrapper.executedjango/db/backends/utils.py:791 ms1.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms1.7%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms1.7%
Cursor.executepsycopg/cursor.py:1131 ms1.7%
Connection.waitpsycopg/connection.py:4951 ms1.7%
BaseCursor._execute_genpsycopg/_cursor_base.py:2061 ms1.7%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2861 ms1.7%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:781 ms1.7%
starter_packsstarter_packs/views.py:160 for pack_languages in StarterPack.objects.filter(published_at__isnull=False, deleted_at__isnull=True).values_list(1 ms1.7%
QuerySet.__iter__django/db/models/query.py:4391 ms1.7%
QuerySet._fetch_alldjango/db/models/query.py:22621 ms1.7%
FlatValuesListIterable.__iter__django/db/models/query.py:3021 ms1.7%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15741 ms1.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16251 ms1.7%
CursorWrapper.executedjango/db/backends/utils.py:791 ms1.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms1.7%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms1.7%
Cursor.executepsycopg/cursor.py:1131 ms1.7%
Connection.waitpsycopg/connection.py:4951 ms1.7%
ClientHandler.__call__django/test/client.py:1731 ms1.7%
BaseHandler.load_middlewaredjango/core/handlers/base.py:631 ms1.7%
__init____init__:-11 ms1.7%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:1041 ms1.7%
WhiteNoise.add_fileswhitenoise/base.py:1081 ms1.7%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1201 ms1.7%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:1311 ms1.7%
WhiteNoise.get_static_filewhitenoise/base.py:2171 ms1.7%
StaticFile.__init__whitenoise/responders.py:731 ms1.7%
StaticFile.get_headerswhitenoise/responders.py:1781 ms1.7%
parsedate<stdlib>/email/_parseaddr.py:1851 ms1.7%
TestOwnerManagement.test_owner_handles_shown_on_list_cardstarter_packs/tests.py:634 self.pack.save()1 ms1.7%
Model.savedjango/db/models/base.py:9041 ms1.7%
TransactionTestCase._post_teardowndjango/test/testcases.py:1243 self._fixture_teardown()1 ms1.7%
TestCase._fixture_teardowndjango/test/testcases.py:14971 ms1.7%
TestCase._should_check_constraintsdjango/test/testcases.py:15061 ms1.7%
DatabaseWrapper.is_usabledjango/db/backends/postgresql/base.py:5041 ms1.7%
Cursor.executepsycopg/cursor.py:1131 ms1.7%
Connection.waitpsycopg/connection.py:4951 ms1.7%
Estimated from 58 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
starter_packs/views.py:171
avatars = pack_header_avatars([pack.id for pack in page_obj], limit=6)
starter_packs
· Database
|
42 ms |
|
starter_packs/views.py:89
for pack_id, avatar, handle, name in rows:
pack_header_avatars
· Database
|
8 ms |
|
starter_packs/views.py:168
page_obj = paginator.get_page(page_number)
starter_packs
· Database
|
6 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
|
2 ms |
|
starter_packs/tests.py:634
self.pack.save()
TestOwnerManagement.test_owner_handles_shown_on_list_card
· Database
|
1 ms |
|
starter_packs/tests.py:635
response = self.client.get(reverse("starter_packs"))
TestOwnerManagement.test_owner_handles_shown_on_list_card
· Libraries
|
1 ms |
|
starter_packs/views.py:160
for pack_languages in StarterPack.objects.filter(published_at__isnull=False, deleted_at__isnull=True).values_list(
starter_packs
· Database
|
1 ms |
|
starter_packs/views.py:75
StarterPackAccount.objects.filter(
pack_header_avatars
· Database
|
1 ms |
|
starter_packs/views.py:82
.values_list(
pack_header_avatars
· Database
|
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.04 ms |
| _template_string_if_invalid_marker function | 0.03 ms |
| _live_server_helper function | 0.03 ms |
| _django_db_marker function | 0.03 ms |
| _django_isolate_apps function | 0.03 ms |
| _django_set_urlconf function | 0.02 ms |
| _django_clear_site_cache function | 0.02 ms |
| monkeypatch function | 0.02 ms |
Database
17 queries · 9 msNo repeated queries.
Biggest pieces of work
|
call test body
starter_packs/tests.py:635
|
64 ms |
|
call _post_teardown
django/test/testcases.py:1243
|
1 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 | 66 ms | Profile |
| 2 weeks, 5 days ago | CI github-actions:test | passed | 145 ms | Profile |
| 2 weeks, 6 days ago | CI github-actions:test | passed | 208 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 97 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 208 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 161 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 159 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 112 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 113 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 67 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 215 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 210 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 108 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 98 ms | Run |