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

TestPinAccountInStarterPack::test_unpinned_pack_orders_by_followers

First seen 1 month, 1 week ago in 0c23747
CI github-actions:test 13 runs
Average
201 ms
median 133 ms
max 689 ms
Phases
Setup 7 ms Call 191 ms Teardown 3 ms
Categories
Database 45 ms Factories 0.55 ms App code 0.49 ms Other (Libraries, Templates, pytest, Deep copies, ...) 155 ms

13 database queries per run

Needs 252 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
Show pytest frames
setup0.75 ms0.6%
call117 ms95.6%
TestPinAccountInStarterPack.test_unpinned_pack_orders_by_followersstarter_packs/tests.py:1087 response = self.client.get(self.share_url())116 ms94.5%
Client.getdjango/test/client.py:1133116 ms94.5%
RequestFactory.getdjango/test/client.py:475116 ms94.5%
RequestFactory.genericdjango/test/client.py:671116 ms94.5%
Client.requestdjango/test/client.py:1091112 ms91.1%
ClientHandler.__call__django/test/client.py:18664 ms52.4%
BaseHandler.get_responsedjango/core/handlers/base.py:14264 ms52.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5664 ms52.4%
MiddlewareMixin.__call__django/utils/deprecation.py:38064 ms52.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5664 ms52.4%
MiddlewareMixin.__call__django/utils/deprecation.py:38064 ms52.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5664 ms52.4%
MiddlewareMixin.__call__django/utils/deprecation.py:38064 ms52.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5664 ms52.4%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12364 ms52.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5664 ms52.4%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:14564 ms52.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5664 ms52.4%
MiddlewareMixin.__call__django/utils/deprecation.py:38064 ms52.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5664 ms52.4%
MiddlewareMixin.__call__django/utils/deprecation.py:38064 ms52.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5664 ms52.4%
MiddlewareMixin.__call__django/utils/deprecation.py:38064 ms52.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5664 ms52.4%
MiddlewareMixin.__call__django/utils/deprecation.py:38064 ms52.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5664 ms52.4%
MiddlewareMixin.__call__django/utils/deprecation.py:38064 ms52.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5664 ms52.4%
MiddlewareMixin.__call__django/utils/deprecation.py:38064 ms52.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5664 ms52.4%
MiddlewareMixin.__call__django/utils/deprecation.py:38064 ms52.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5664 ms52.4%
BaseHandler._get_responsedjango/core/handlers/base.py:19964 ms52.4%
share_starter_packstarter_packs/views.py:86038 ms30.7%
pack_header_avatarsstarter_packs/views.py:89 for pack_id, avatar, handle, name in rows:38 ms30.7%
QuerySet.__iter__django/db/models/query.py:43938 ms30.7%
QuerySet._fetch_alldjango/db/models/query.py:226238 ms30.7%
ValuesListIterable.__iter__django/db/models/query.py:26338 ms30.7%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:157438 ms30.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:161238 ms30.7%
CursorWrapper.executedjango/db/backends/utils.py:7936 ms29.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9236 ms29.6%
CursorWrapper._executedjango/db/backends/utils.py:10536 ms29.6%
Cursor.executepsycopg/cursor.py:11336 ms29.6%
Connection.waitpsycopg/connection.py:49536 ms29.6%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:9821 ms1.1%
share_starter_packstarter_packs/views.py:862 return render(25 ms20.5%
renderdjango/shortcuts.py:2725 ms20.5%
render_to_stringdjango/template/loader.py:6225 ms20.5%
Template.renderdjango/template/backends/django.py:10725 ms20.5%
Template.renderdjango/template/base.py:17525 ms20.5%
instrumented_test_renderdjango/test/utils.py:11325 ms20.5%
NodeList.renderdjango/template/base.py:110825 ms20.5%
Node.render_annotateddjango/template/base.py:106925 ms20.5%
ExtendsNode.renderdjango/template/loader_tags.py:16025 ms20.5%
instrumented_test_renderdjango/test/utils.py:11325 ms20.5%
NodeList.renderdjango/template/base.py:110825 ms20.5%
Node.render_annotateddjango/template/base.py:106925 ms20.5%
BlockNode.renderdjango/template/loader_tags.py:6618 ms14.8%
NodeList.renderdjango/template/base.py:110818 ms14.8%
Node.render_annotateddjango/template/base.py:106918 ms14.8%
IfNode.renderdjango/template/defaulttags.py:33215 ms12.5%
Page.__len__django/core/paginator.py:31215 ms12.5%
QuerySet.__len__django/db/models/query.py:42115 ms12.5%
QuerySet._fetch_alldjango/db/models/query.py:226215 ms12.5%
ModelIterable.__iter__django/db/models/query.py:10315 ms12.5%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16128 ms6.8%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7688 ms6.8%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:908 ms6.8%
SQLCompiler.get_order_bydjango/db/models/sql/compiler.py:4918 ms6.8%
SQLCompiler._order_by_pairsdjango/db/models/sql/compiler.py:3618 ms6.8%
deconstructible.<locals>.decorator.<locals>.__new__django/utils/deconstruct.py:158 ms6.8%
<GC>~8 ms6.8%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16257 ms5.7%
CursorWrapper.executedjango/db/backends/utils.py:797 ms5.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:927 ms5.7%
CursorWrapper._executedjango/db/backends/utils.py:1057 ms5.7%
Cursor.executepsycopg/cursor.py:1137 ms5.7%
Connection.waitpsycopg/connection.py:4957 ms5.7%
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%
TranslateNode.renderdjango/templatetags/i18n.py:901 ms1.1%
IfNode.renderdjango/template/defaulttags.py:3337 ms5.7%
NodeList.renderdjango/template/base.py:11087 ms5.7%
Node.render_annotateddjango/template/base.py:10697 ms5.7%
IncludeNode.renderdjango/template/loader_tags.py:2116 ms4.6%
Template.renderdjango/template/base.py:1776 ms4.6%
instrumented_test_renderdjango/test/utils.py:1136 ms4.6%
NodeList.renderdjango/template/base.py:11086 ms4.6%
Node.render_annotateddjango/template/base.py:10696 ms4.6%
SimpleNode.renderdjango/template/library.py:3436 ms4.6%
instances_datalistaccounts/templatetags/account_extras.py:36 for instance in instances:6 ms4.6%
QuerySet.__iter__django/db/models/query.py:4396 ms4.6%
QuerySet._fetch_alldjango/db/models/query.py:22626 ms4.6%
FlatValuesListIterable.__iter__django/db/models/query.py:3026 ms4.6%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15746 ms4.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16256 ms4.6%
CursorWrapper.executedjango/db/backends/utils.py:796 ms4.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:926 ms4.6%
CursorWrapper._executedjango/db/backends/utils.py:1056 ms4.6%
Cursor.executepsycopg/cursor.py:1136 ms4.6%
Connection.waitpsycopg/connection.py:4956 ms4.6%
BaseCursor._execute_genpsycopg/_cursor_base.py:2066 ms4.6%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2866 ms4.6%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:786 ms4.6%
URLNode.renderdjango/template/defaulttags.py:5111 ms1.1%
reversedjango/urls/base.py:981 ms1.1%
share_starter_packstarter_packs/views.py:886 .count(),1 ms1.1%
QuerySet.countdjango/db/models/query.py:6771 ms1.1%
Query.get_countdjango/db/models/sql/query.py:6571 ms1.1%
Query.get_aggregationdjango/db/models/sql/query.py:6391 ms1.1%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16251 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:1051 ms1.1%
Cursor.executepsycopg/cursor.py:1131 ms1.1%
Connection.waitpsycopg/connection.py:4951 ms1.1%
BaseCursor._execute_genpsycopg/_cursor_base.py:2061 ms1.1%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2861 ms1.1%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:781 ms1.1%
ClientHandler.__call__django/test/client.py:17347 ms38.7%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6347 ms38.7%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10447 ms38.7%
WhiteNoise.add_fileswhitenoise/base.py:10847 ms38.7%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12036 ms29.6%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13136 ms29.6%
WhiteNoise.get_static_filewhitenoise/base.py:21728 ms22.8%
StaticFile.__init__whitenoise/responders.py:7418 ms14.8%
parsedate<stdlib>/email/_parseaddr.py:18518 ms14.8%
parsedate_tz<stdlib>/email/_parseaddr.py:5018 ms14.8%
_parsedate_tz<stdlib>/email/_parseaddr.py:10518 ms14.8%
StaticFile.__init__whitenoise/responders.py:776 ms4.6%
StaticFile.get_alternativeswhitenoise/responders.py:2004 ms3.4%
__init____init__:-13 ms2.3%
Headers.__init__<stdlib>/wsgiref/headers.py:433 ms2.3%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:523 ms2.3%
StaticFile.get_alternativeswhitenoise/responders.py:2011 ms1.1%
StaticFile.__init__whitenoise/responders.py:763 ms2.3%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1881 ms1.1%
Headers.__contains__<stdlib>/wsgiref/headers.py:871 ms1.1%
Headers.get<stdlib>/wsgiref/headers.py:1061 ms1.1%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1891 ms1.1%
Headers.__getitem__<stdlib>/wsgiref/headers.py:831 ms1.1%
Headers.get<stdlib>/wsgiref/headers.py:1041 ms1.1%
StaticFile.__init__whitenoise/responders.py:721 ms1.1%
StaticFile.get_file_statswhitenoise/responders.py:1611 ms1.1%
__init____init__:-11 ms1.1%
FileEntry.__init__whitenoise/responders.py:2621 ms1.1%
WhiteNoise.get_static_filewhitenoise/base.py:2127 ms5.7%
WhiteNoise.add_cache_headerswhitenoise/base.py:2337 ms5.7%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1767 ms5.7%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1977 ms5.7%
URLMixin.urldebug_toolbar/panels/staticfiles.py:203 ms2.3%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:2353 ms2.3%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:2163 ms2.3%
FileSystemStorage.urldjango/core/files/storage/filesystem.py:2071 ms1.1%
urljoin<stdlib>/urllib/parse.py:7601 ms1.1%
WhiteNoise.update_files_dictionarywhitenoise/base.py:11511 ms9.1%
scantreewhitenoise/base.py:27111 ms9.1%
scantreewhitenoise/base.py:27110 ms8.0%
scantreewhitenoise/base.py:2718 ms6.8%
scantreewhitenoise/base.py:2718 ms6.8%
scantreewhitenoise/base.py:2718 ms6.8%
scantreewhitenoise/base.py:2737 ms5.7%
<GC>~6 ms4.6%
scantreewhitenoise/base.py:2691 ms1.1%
scantreewhitenoise/base.py:2731 ms1.1%
scantreewhitenoise/base.py:2731 ms1.1%
Client.requestdjango/test/client.py:10864 ms3.4%
Signal.connectdjango/dispatch/dispatcher.py:1394 ms3.4%
LazyObject.__getattribute__django/utils/functional.py:2804 ms3.4%
TransactionTestCase._post_teardowndjango/test/testcases.py:1243 self._fixture_teardown()1 ms1.1%
TestCase._fixture_teardowndjango/test/testcases.py:14971 ms1.1%
TestCase._should_check_constraintsdjango/test/testcases.py:15061 ms1.1%
DatabaseWrapper.is_usabledjango/db/backends/postgresql/base.py:5041 ms1.1%
Cursor.executepsycopg/cursor.py:1131 ms1.1%
Connection.waitpsycopg/connection.py:4951 ms1.1%
BaseCursor._execute_genpsycopg/_cursor_base.py:2061 ms1.1%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2861 ms1.1%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:781 ms1.1%
teardown5 ms3.7%
TestCase.tearDownClassdjango/test/testcases.py:1456 cls._rollback_atomics(cls.cls_atomics)3 ms2.8%
TestCase._rollback_atomicsdjango/test/testcases.py:14083 ms2.8%
Atomic.__exit__django/db/transaction.py:3073 ms2.8%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:263 ms2.8%
BaseDatabaseWrapper.rollbackdjango/db/backends/base/base.py:3373 ms2.8%
BaseDatabaseWrapper._rollbackdjango/db/backends/base/base.py:3083 ms2.8%
Connection.rollbackpsycopg/connection.py:3143 ms2.8%
Connection.waitpsycopg/connection.py:4953 ms2.8%
BaseConnection._rollback_genpsycopg/_connection_base.py:6173 ms2.8%
BaseConnection._exec_commandpsycopg/_connection_base.py:4743 ms2.8%
TestCase.tearDownClassdjango/test/testcases.py:1458 conn.close()1 ms0.9%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:261 ms0.9%
BaseDatabaseWrapper.closedjango/db/backends/base/base.py:3551 ms0.9%
DatabaseWrapper._closedjango/db/backends/postgresql/base.py:4081 ms0.9%
Connection.closepsycopg/connection.py:2011 ms0.9%
Estimated from 89 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

starter_packs/tests.py:1087
response = self.client.get(self.share_url())
TestPinAccountInStarterPack.test_unpinned_pack_orders_by_followers · Libraries
52 ms
starter_packs/views.py:89
for pack_id, avatar, handle, name in rows:
pack_header_avatars · Database
38 ms
starter_packs/views.py:862
return render(
share_starter_pack · Database
18 ms
accounts/templatetags/account_extras.py:36
for instance in instances:
instances_datalist · Database
6 ms
starter_packs/views.py:886
.count(),
share_starter_pack · Database
1 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

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.04 ms
_django_isolate_apps function 0.03 ms
_django_set_urlconf function 0.03 ms
_live_server_helper function 0.03 ms
_django_clear_site_cache function 0.02 ms
monkeypatch function 0.02 ms

Database

12 queries · 16 ms
No repeated queries.

Biggest pieces of work

call test body
starter_packs/tests.py:1087
116 ms
teardown tearDownClass
django/test/testcases.py:1456
5 ms
call _post_teardown
django/test/testcases.py:1243
1 ms
setup pytest internals 0.75 ms

Reliability

14 results · 0 CI failures · 0 local failures

This test hasn't failed recently.

History

Latest 14 results, oldest first in the strip
When Environment Outcome Duration Commit
2 weeks ago CI github-actions:test passed 122 ms 28600ed main Profile
2 weeks, 5 days ago CI github-actions:test passed 259 ms 600b717 main Profile
2 weeks, 6 days ago CI github-actions:test passed 180 ms c28a326 main Profile
3 weeks ago CI github-actions:test passed 74 ms 9b8826a main Profile
3 weeks ago CI github-actions:test passed 259 ms 4f01055 main Profile
1 month ago CI github-actions:test passed 164 ms 8ab642e main Profile
1 month ago CI github-actions:test passed 133 ms 9b75244 main Profile
1 month ago CI github-actions:test passed 111 ms 9603516 main Profile
1 month, 1 week ago CI github-actions:test passed 84 ms 615a272 main Profile
1 month, 1 week ago CI github-actions:test passed 100 ms d923a46 main Profile
1 month, 1 week ago CI github-actions:test passed 689 ms 82997f8 main Profile
1 month, 1 week ago CI github-actions:test passed 122 ms 623aa3e main Profile
1 month, 1 week ago CI github-actions:test passed 316 ms ab6465a main Profile
1 month, 1 week ago CI github-actions:test passed 96 ms 0c23747 main Run