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

TestShareStarterPack::test_non_discoverable_accounts

First seen 1 year, 11 months ago in 9225ae0
CI github-actions:test 11 runs
Average
212 ms
median 162 ms
max 617 ms
Phases
Setup 7 ms Call 204 ms Teardown 0.32 ms
Categories
Database 65 ms Factories 0.95 ms App code 0.28 ms Test code 0.21 ms Other (Libraries, Templates, pytest, Unsampled, ...) 145 ms

21 database queries per run

Needs 187 KB of memory (max 1 MB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 7 hours ago · open run
Show pytest frames
setup2 ms0.9%
call161 ms98.9%
TestShareStarterPack.test_non_discoverable_accountsstarter_packs/tests.py:736 response = self.client.get(reverse("share_starter_pack", args=[self.starter_pack.slug]))145 ms89.0%
Client.getdjango/test/client.py:1133145 ms89.0%
RequestFactory.getdjango/test/client.py:475145 ms89.0%
RequestFactory.genericdjango/test/client.py:671145 ms89.0%
Client.requestdjango/test/client.py:1091145 ms89.0%
ClientHandler.__call__django/test/client.py:173124 ms76.1%
BaseHandler.load_middlewaredjango/core/handlers/base.py:63124 ms76.1%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:104124 ms76.1%
WhiteNoise.add_fileswhitenoise/base.py:108124 ms76.1%
WhiteNoise.update_files_dictionarywhitenoise/base.py:120114 ms70.2%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:131106 ms65.3%
WhiteNoise.get_static_filewhitenoise/base.py:21793 ms57.3%
StaticFile.__init__whitenoise/responders.py:7234 ms20.8%
StaticFile.get_file_statswhitenoise/responders.py:16329 ms17.8%
<GC>~29 ms17.8%
StaticFile.get_file_statswhitenoise/responders.py:1613 ms2.0%
StaticFile.__init__whitenoise/responders.py:7326 ms15.8%
StaticFile.get_headerswhitenoise/responders.py:17614 ms8.9%
formatdate<stdlib>/email/utils.py:26610 ms5.9%
format_datetime<stdlib>/email/utils.py:2845 ms3.0%
_format_timetuple_and_zone<stdlib>/email/utils.py:2313 ms2.0%
format_datetime<stdlib>/email/utils.py:2752 ms1.0%
Headers.__setitem__<stdlib>/wsgiref/headers.py:642 ms1.0%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:522 ms1.0%
StaticFile.get_headerswhitenoise/responders.py:1815 ms3.0%
StaticFile.get_headerswhitenoise/responders.py:1673 ms2.0%
StaticFile.get_headerswhitenoise/responders.py:1782 ms1.0%
Headers.__getitem__<stdlib>/wsgiref/headers.py:832 ms1.0%
StaticFile.get_headerswhitenoise/responders.py:1702 ms1.0%
StaticFile.__init__whitenoise/responders.py:7714 ms8.9%
StaticFile.get_alternativeswhitenoise/responders.py:2008 ms4.9%
__init____init__:-15 ms3.0%
Headers.__init__<stdlib>/wsgiref/headers.py:432 ms1.0%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:502 ms1.0%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:492 ms1.0%
StaticFile.get_alternativeswhitenoise/responders.py:2063 ms2.0%
compile<stdlib>/re/__init__.py:2913 ms2.0%
_compile<stdlib>/re/__init__.py:3343 ms2.0%
StaticFile.get_alternativeswhitenoise/responders.py:2012 ms1.0%
StaticFile.get_alternativeswhitenoise/responders.py:2032 ms1.0%
StaticFile.__init__whitenoise/responders.py:7611 ms6.9%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1888 ms4.9%
Headers.__contains__<stdlib>/wsgiref/headers.py:876 ms4.0%
Headers.get<stdlib>/wsgiref/headers.py:1065 ms3.0%
Headers.get<stdlib>/wsgiref/headers.py:1052 ms1.0%
Headers.__contains__<stdlib>/wsgiref/headers.py:852 ms1.0%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1893 ms2.0%
Headers.__getitem__<stdlib>/wsgiref/headers.py:833 ms2.0%
Headers.get<stdlib>/wsgiref/headers.py:1052 ms1.0%
URLMixin.urldebug_toolbar/panels/staticfiles.py:202 ms1.0%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:2352 ms1.0%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:2162 ms1.0%
StaticFile.__init__whitenoise/responders.py:746 ms4.0%
parsedate<stdlib>/email/_parseaddr.py:1853 ms2.0%
Headers.__getitem__<stdlib>/wsgiref/headers.py:833 ms2.0%
StaticFile.__init__whitenoise/responders.py:752 ms1.0%
Headers.__getitem__<stdlib>/wsgiref/headers.py:832 ms1.0%
Headers.get<stdlib>/wsgiref/headers.py:1062 ms1.0%
WhiteNoise.get_static_filewhitenoise/base.py:21211 ms6.9%
WhiteNoise.add_cache_headerswhitenoise/base.py:23311 ms6.9%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:17611 ms6.9%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:19711 ms6.9%
URLMixin.urldebug_toolbar/panels/staticfiles.py:208 ms4.9%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:2355 ms3.0%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:2142 ms1.0%
ManifestFilesMixin.stored_namedjango/contrib/staticfiles/storage.py:5952 ms1.0%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:2082 ms1.0%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:2162 ms1.0%
FileSystemStorage.urldjango/core/files/storage/filesystem.py:2072 ms1.0%
urljoin<stdlib>/urllib/parse.py:7062 ms1.0%
new_method_proxy.<locals>.innerdjango/utils/functional.py:2532 ms1.0%
WhiteNoise.get_static_filewhitenoise/base.py:2112 ms1.0%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:1235 ms3.0%
WhiteNoise.is_compressed_variantwhitenoise/base.py:2045 ms3.0%
WhiteNoise.update_files_dictionarywhitenoise/base.py:11510 ms5.9%
scantreewhitenoise/base.py:27110 ms5.9%
scantreewhitenoise/base.py:2735 ms3.0%
scantreewhitenoise/base.py:2715 ms3.0%
scantreewhitenoise/base.py:2712 ms1.0%
scantreewhitenoise/base.py:2712 ms1.0%
scantreewhitenoise/base.py:2732 ms1.0%
scantreewhitenoise/base.py:2692 ms1.0%
ClientHandler.__call__django/test/client.py:18621 ms12.9%
BaseHandler.get_responsedjango/core/handlers/base.py:14221 ms12.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5621 ms12.9%
MiddlewareMixin.__call__django/utils/deprecation.py:38021 ms12.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5621 ms12.9%
MiddlewareMixin.__call__django/utils/deprecation.py:38021 ms12.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5621 ms12.9%
MiddlewareMixin.__call__django/utils/deprecation.py:38021 ms12.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5621 ms12.9%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12321 ms12.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5621 ms12.9%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:14521 ms12.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5621 ms12.9%
MiddlewareMixin.__call__django/utils/deprecation.py:38021 ms12.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5621 ms12.9%
MiddlewareMixin.__call__django/utils/deprecation.py:38021 ms12.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5621 ms12.9%
MiddlewareMixin.__call__django/utils/deprecation.py:38021 ms12.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5621 ms12.9%
MiddlewareMixin.__call__django/utils/deprecation.py:38021 ms12.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5621 ms12.9%
MiddlewareMixin.__call__django/utils/deprecation.py:38021 ms12.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5621 ms12.9%
MiddlewareMixin.__call__django/utils/deprecation.py:38021 ms12.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5621 ms12.9%
MiddlewareMixin.__call__django/utils/deprecation.py:38021 ms12.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5621 ms12.9%
BaseHandler._get_responsedjango/core/handlers/base.py:19921 ms12.9%
share_starter_packstarter_packs/views.py:8605 ms3.0%
pack_header_avatarsstarter_packs/views.py:75 StarterPackAccount.objects.filter(3 ms2.0%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:873 ms2.0%
QuerySet.filterdjango/db/models/query.py:16763 ms2.0%
QuerySet._filter_or_excludedjango/db/models/query.py:16943 ms2.0%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:17043 ms2.0%
Query.add_qdjango/db/models/sql/query.py:16813 ms2.0%
Query._add_qdjango/db/models/sql/query.py:17132 ms1.0%
Query.build_filterdjango/db/models/sql/query.py:15512 ms1.0%
pack_header_avatarsstarter_packs/views.py:89 for pack_id, avatar, handle, name in rows:2 ms1.0%
QuerySet.__iter__django/db/models/query.py:4392 ms1.0%
QuerySet._fetch_alldjango/db/models/query.py:22622 ms1.0%
ValuesListIterable.__iter__django/db/models/query.py:2632 ms1.0%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15742 ms1.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16122 ms1.0%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:9822 ms1.0%
share_starter_packstarter_packs/views.py:862 return render(5 ms3.0%
renderdjango/shortcuts.py:275 ms3.0%
render_to_stringdjango/template/loader.py:625 ms3.0%
Template.renderdjango/template/backends/django.py:1075 ms3.0%
Template.renderdjango/template/base.py:1755 ms3.0%
instrumented_test_renderdjango/test/utils.py:1135 ms3.0%
NodeList.renderdjango/template/base.py:11085 ms3.0%
Node.render_annotateddjango/template/base.py:10695 ms3.0%
ExtendsNode.renderdjango/template/loader_tags.py:1605 ms3.0%
instrumented_test_renderdjango/test/utils.py:1135 ms3.0%
NodeList.renderdjango/template/base.py:11085 ms3.0%
Node.render_annotateddjango/template/base.py:10695 ms3.0%
BlockNode.renderdjango/template/loader_tags.py:663 ms2.0%
NodeList.renderdjango/template/base.py:11083 ms2.0%
Node.render_annotateddjango/template/base.py:10693 ms2.0%
SimpleNode.renderdjango/template/library.py:3432 ms1.0%
render_language_emojisaccounts/templatetags/account_extras.py:27 f"<img src='{static(lang.image)}' class='emojione' alt=':{lang.code}:' title=':{lang.code}:' />",2 ms1.0%
staticdjango/templatetags/static.py:1792 ms1.0%
StaticNode.handle_simpledjango/templatetags/static.py:1292 ms1.0%
URLMixin.urldebug_toolbar/panels/staticfiles.py:202 ms1.0%
IfNode.renderdjango/template/defaulttags.py:3322 ms1.0%
Page.__len__django/core/paginator.py:3122 ms1.0%
QuerySet.__len__django/db/models/query.py:4212 ms1.0%
QuerySet._fetch_alldjango/db/models/query.py:22622 ms1.0%
ModelIterable.__iter__django/db/models/query.py:1032 ms1.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16122 ms1.0%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7682 ms1.0%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:892 ms1.0%
SQLCompiler.setup_querydjango/db/models/sql/compiler.py:782 ms1.0%
SQLCompiler.get_selectdjango/db/models/sql/compiler.py:3192 ms1.0%
SQLCompiler.compiledjango/db/models/sql/compiler.py:5792 ms1.0%
Col.as_sqldjango/db/models/expressions.py:13692 ms1.0%
CsrfTokenNode.renderdjango/template/defaulttags.py:782 ms1.0%
new_method_proxy.<locals>.innerdjango/utils/functional.py:2512 ms1.0%
SimpleLazyObject._setupdjango/utils/functional.py:4042 ms1.0%
csrf.<locals>._get_valdjango/template/context_processors.py:262 ms1.0%
get_tokendjango/middleware/csrf.py:1132 ms1.0%
_add_new_csrf_cookiedjango/middleware/csrf.py:862 ms1.0%
_get_new_csrf_stringdjango/middleware/csrf.py:562 ms1.0%
get_random_stringdjango/utils/crypto.py:782 ms1.0%
get_random_string.<locals>.<genexpr>django/utils/crypto.py:782 ms1.0%
Random.choice<stdlib>/random.py:3542 ms1.0%
Random._randbelow_with_getrandbits<stdlib>/random.py:2492 ms1.0%
SystemRandom.getrandbits<stdlib>/random.py:9152 ms1.0%
share_starter_packstarter_packs/views.py:858 owners = list(starter_pack.owners.select_related("accountaccess__account").order_by("username"))3 ms2.0%
QuerySet.__iter__django/db/models/query.py:4393 ms2.0%
QuerySet._fetch_alldjango/db/models/query.py:22623 ms2.0%
ModelIterable.__iter__django/db/models/query.py:1033 ms2.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16122 ms1.0%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7682 ms1.0%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:892 ms1.0%
SQLCompiler.setup_querydjango/db/models/sql/compiler.py:782 ms1.0%
SQLCompiler.get_selectdjango/db/models/sql/compiler.py:3102 ms1.0%
SQLCompiler.get_related_selectionsdjango/db/models/sql/compiler.py:13232 ms1.0%
SQLCompiler.get_related_selectionsdjango/db/models/sql/compiler.py:12602 ms1.0%
SQLCompiler.get_default_columnsdjango/db/models/sql/compiler.py:10312 ms1.0%
Field.get_coldjango/db/models/fields/__init__.py:5792 ms1.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16252 ms1.0%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.0%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.0%
Cursor.executepsycopg/cursor.py:1132 ms1.0%
Connection.waitpsycopg/connection.py:4952 ms1.0%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms1.0%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms1.0%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms1.0%
share_starter_packstarter_packs/views.py:886 .count(),3 ms2.0%
QuerySet.countdjango/db/models/query.py:6773 ms2.0%
Query.get_countdjango/db/models/sql/query.py:6573 ms2.0%
Query.get_aggregationdjango/db/models/sql/query.py:6393 ms2.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16123 ms2.0%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7682 ms1.0%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:892 ms1.0%
SQLCompiler.setup_querydjango/db/models/sql/compiler.py:782 ms1.0%
SQLCompiler.get_selectdjango/db/models/sql/compiler.py:3192 ms1.0%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7962 ms1.0%
SQLCompiler.compiledjango/db/models/sql/compiler.py:5792 ms1.0%
WhereNode.as_sqldjango/db/models/sql/where.py:1512 ms1.0%
SQLCompiler.compiledjango/db/models/sql/compiler.py:5792 ms1.0%
RelatedLookupMixin.as_sqldjango/db/models/fields/related_lookups.py:1282 ms1.0%
share_starter_packstarter_packs/views.py:743 StarterPackAccount.objects.filter(starter_pack=starter_pack, account=OuterRef("pk"), pinned=True),2 ms1.0%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms1.0%
QuerySet.filterdjango/db/models/query.py:16762 ms1.0%
QuerySet._filter_or_excludedjango/db/models/query.py:16942 ms1.0%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:17042 ms1.0%
Query.add_qdjango/db/models/sql/query.py:16812 ms1.0%
Query._add_qdjango/db/models/sql/query.py:17132 ms1.0%
Query.build_filterdjango/db/models/sql/query.py:15512 ms1.0%
share_starter_packstarter_packs/views.py:741 .annotate(2 ms1.0%
share_starter_packstarter_packs/views.py:856 page_obj = paginator.get_page(page_number)2 ms1.0%
Paginator.get_pagedjango/core/paginator.py:1612 ms1.0%
Paginator.validate_numberdjango/core/paginator.py:1532 ms1.0%
cached_property.__get__django/utils/functional.py:472 ms1.0%
Paginator.num_pagesdjango/core/paginator.py:1882 ms1.0%
cached_property.__get__django/utils/functional.py:472 ms1.0%
Paginator.countdjango/core/paginator.py:1822 ms1.0%
QuerySet.countdjango/db/models/query.py:6772 ms1.0%
Query.get_countdjango/db/models/sql/query.py:6572 ms1.0%
Query.get_aggregationdjango/db/models/sql/query.py:6392 ms1.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16252 ms1.0%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.0%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.0%
Cursor.executepsycopg/cursor.py:1132 ms1.0%
Connection.waitpsycopg/connection.py:4952 ms1.0%
TestShareStarterPack.test_non_discoverable_accountsstarter_packs/tests.py:743 self.assertNotContains(response, account.account.username)8 ms4.9%
ForwardManyToOneDescriptor.__get__django/db/models/fields/related_descriptors.py:2668 ms4.9%
FetchOne.fetchdjango/db/models/fetch_modes.py:178 ms4.9%
ForwardManyToOneDescriptor.fetch_onedjango/db/models/fields/related_descriptors.py:2798 ms4.9%
ForwardManyToOneDescriptor.get_objectdjango/db/models/fields/related_descriptors.py:2318 ms4.9%
QuerySet.getdjango/db/models/query.py:7028 ms4.9%
QuerySet.__len__django/db/models/query.py:4218 ms4.9%
QuerySet._fetch_alldjango/db/models/query.py:22628 ms4.9%
ModelIterable.__iter__django/db/models/query.py:1038 ms4.9%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16255 ms3.0%
CursorWrapper.executedjango/db/backends/utils.py:795 ms3.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:925 ms3.0%
CursorWrapper._executedjango/db/backends/utils.py:1053 ms2.0%
Cursor.executepsycopg/cursor.py:1133 ms2.0%
Connection.waitpsycopg/connection.py:4953 ms2.0%
BaseCursor._execute_genpsycopg/_cursor_base.py:2063 ms2.0%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2863 ms2.0%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:783 ms2.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16123 ms2.0%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7683 ms2.0%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:892 ms1.0%
SQLCompiler.setup_querydjango/db/models/sql/compiler.py:782 ms1.0%
SQLCompiler.get_selectdjango/db/models/sql/compiler.py:3192 ms1.0%
SQLCompiler.compiledjango/db/models/sql/compiler.py:5792 ms1.0%
TransactionTestCase._post_teardowndjango/test/testcases.py:1243 self._fixture_teardown()5 ms3.0%
TestCase._fixture_teardowndjango/test/testcases.py:14983 ms2.0%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4953 ms2.0%
CursorWrapper.executedjango/db/backends/utils.py:793 ms2.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms2.0%
CursorWrapper._executedjango/db/backends/utils.py:1033 ms2.0%
Cursor.executepsycopg/cursor.py:1133 ms2.0%
Connection.waitpsycopg/connection.py:4953 ms2.0%
BaseCursor._execute_genpsycopg/_cursor_base.py:2063 ms2.0%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2863 ms2.0%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:783 ms2.0%
TestCase._fixture_teardowndjango/test/testcases.py:15002 ms1.0%
TestCase._rollback_atomicsdjango/test/testcases.py:14082 ms1.0%
Atomic.__exit__django/db/transaction.py:2952 ms1.0%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms1.0%
BaseDatabaseWrapper.savepoint_rollbackdjango/db/backends/base/base.py:4132 ms1.0%
BaseDatabaseWrapper._savepoint_rollbackdjango/db/backends/base/base.py:3712 ms1.0%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.0%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms1.0%
Cursor.executepsycopg/cursor.py:1132 ms1.0%
Connection.waitpsycopg/connection.py:4952 ms1.0%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms1.0%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms1.0%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms1.0%
TestShareStarterPack.test_non_discoverable_accountsstarter_packs/tests.py:733 Account.objects.update(discoverable=False)2 ms1.0%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms1.0%
QuerySet.updatedjango/db/models/query.py:14212 ms1.0%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21212 ms1.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16252 ms1.0%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.0%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.0%
Cursor.executepsycopg/cursor.py:1132 ms1.0%
Connection.waitpsycopg/connection.py:4952 ms1.0%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms1.0%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms1.0%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms1.0%
TestShareStarterPack.test_non_discoverable_accountsstarter_packs/tests.py:734 self.starter_pack.num_accounts = 02 ms1.0%
TestData.__get__django/test/testcases.py:13702 ms1.0%
deepcopy<stdlib>/copy.py:1562 ms1.0%
_reconstruct<stdlib>/copy.py:2542 ms1.0%
deepcopy<stdlib>/copy.py:1302 ms1.0%
_deepcopy_dict<stdlib>/copy.py:2012 ms1.0%
deepcopy<stdlib>/copy.py:1562 ms1.0%
_reconstruct<stdlib>/copy.py:2542 ms1.0%
deepcopy<stdlib>/copy.py:1302 ms1.0%
_deepcopy_dict<stdlib>/copy.py:2012 ms1.0%
deepcopy<stdlib>/copy.py:1302 ms1.0%
_deepcopy_dict<stdlib>/copy.py:2012 ms1.0%
deepcopy<stdlib>/copy.py:1562 ms1.0%
_reconstruct<stdlib>/copy.py:2542 ms1.0%
deepcopy<stdlib>/copy.py:1302 ms1.0%
_deepcopy_dict<stdlib>/copy.py:2012 ms1.0%
deepcopy<stdlib>/copy.py:1562 ms1.0%
_reconstruct<stdlib>/copy.py:2542 ms1.0%
deepcopy<stdlib>/copy.py:1302 ms1.0%
_deepcopy_dict<stdlib>/copy.py:2012 ms1.0%
deepcopy<stdlib>/copy.py:1302 ms1.0%
_deepcopy_dict<stdlib>/copy.py:2012 ms1.0%
deepcopy<stdlib>/copy.py:1562 ms1.0%
_reconstruct<stdlib>/copy.py:2542 ms1.0%
deepcopy<stdlib>/copy.py:1302 ms1.0%
_deepcopy_dict<stdlib>/copy.py:2012 ms1.0%
deepcopy<stdlib>/copy.py:1562 ms1.0%
_reconstruct<stdlib>/copy.py:2542 ms1.0%
deepcopy<stdlib>/copy.py:1302 ms1.0%
_deepcopy_dict<stdlib>/copy.py:2012 ms1.0%
deepcopy<stdlib>/copy.py:1302 ms1.0%
_deepcopy_dict<stdlib>/copy.py:2012 ms1.0%
deepcopy<stdlib>/copy.py:1562 ms1.0%
_reconstruct<stdlib>/copy.py:2542 ms1.0%
deepcopy<stdlib>/copy.py:1302 ms1.0%
_deepcopy_dict<stdlib>/copy.py:2012 ms1.0%
deepcopy<stdlib>/copy.py:1562 ms1.0%
_reconstruct<stdlib>/copy.py:2472 ms1.0%
deepcopy<stdlib>/copy.py:1562 ms1.0%
_reconstruct<stdlib>/copy.py:2472 ms1.0%
Estimated from 101 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

starter_packs/tests.py:736
response = self.client.get(reverse("share_starter_pack", args=[self.starter_pack.slug]))
TestShareStarterPack.test_non_discoverable_accounts · Libraries
124 ms
starter_packs/tests.py:743
self.assertNotContains(response, account.account.username)
TestShareStarterPack.test_non_discoverable_accounts · Database
8 ms
starter_packs/views.py:858
owners = list(starter_pack.owners.select_related("accountaccess__account").order_by("username"))
share_starter_pack · Database
3 ms
starter_packs/views.py:75
StarterPackAccount.objects.filter(
pack_header_avatars · Database
3 ms
starter_packs/views.py:886
.count(),
share_starter_pack · Database
3 ms
starter_packs/views.py:862
return render(
share_starter_pack · Templates
3 ms
starter_packs/tests.py:733
Account.objects.update(discoverable=False)
TestShareStarterPack.test_non_discoverable_accounts · Database
2 ms
starter_packs/tests.py:734
self.starter_pack.num_accounts = 0
TestShareStarterPack.test_non_discoverable_accounts · Deep copies
2 ms
starter_packs/views.py:743
StarterPackAccount.objects.filter(starter_pack=starter_pack, account=OuterRef("pk"), pinned=True),
share_starter_pack · Database
2 ms
starter_packs/views.py:741
.annotate(
share_starter_pack · App code
2 ms

Fixtures

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

Database

19 queries · 15 ms

Repeated queries are usually N+1 lookups: fetch them once with select_related / prefetch_related (or selectinload).

5×
SELECT "accounts_account"."id", "accounts_account"."account_id", "accounts_account"."instance", "accounts_account"."instance_model_id", "accounts_account"."username_at_instance", "accounts_account"."search", "accounts_account"."username", "accounts_account"."acct", "accounts_account"."display_name"…

Biggest pieces of work

call test body
starter_packs/tests.py:736
156 ms
call _post_teardown
django/test/testcases.py:1243
5 ms
setup pytest internals 2 ms

Reliability

12 results · 0 CI failures · 0 local failures

This test hasn't failed recently.

History

Latest 12 results, oldest first in the strip
When Environment Outcome Duration Commit
7 hours ago CI github-actions:test passed 162 ms c28a326 main Profile
16 hours ago CI github-actions:test passed 366 ms 9b8826a main Profile
22 hours ago CI github-actions:test passed 150 ms 4f01055 main Profile
1 week, 5 days ago CI github-actions:test passed 126 ms 8ab642e main Profile
2 weeks, 2 days ago CI github-actions:test passed 97 ms 9b75244 main Profile
2 weeks, 2 days ago CI github-actions:test passed 111 ms 9603516 main Profile
2 weeks, 4 days ago CI github-actions:test passed 190 ms 615a272 main Profile
3 weeks ago CI github-actions:test passed 74 ms d923a46 main Profile
3 weeks ago CI github-actions:test passed 264 ms 82997f8 main Profile
3 weeks ago CI github-actions:test passed 617 ms 623aa3e main Profile
3 weeks ago CI github-actions:test passed 170 ms ab6465a main Profile
3 weeks ago CI github-actions:test passed 98 ms 0c23747 main Run