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

TestShareStarterPack::test_header_shows_gradient_and_account_avatars

First seen 1 month, 1 week ago in 0c23747
CI github-actions:test 13 runs
Average
169 ms
median 125 ms
max 496 ms
Phases
Setup 2 ms Call 165 ms Teardown 0.90 ms
Categories
Database 49 ms Test code 0.27 ms App code 0.08 ms Other (Libraries, Templates, pytest, Unsampled) 119 ms

14 database queries per run

Needs 498 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
setup4 ms3.9%
call90 ms95.8%
TestShareStarterPack.test_header_shows_gradient_and_account_avatarsstarter_packs/tests.py:723 response = self.client.get(reverse("share_starter_pack", args=[self.starter_pack.slug]))86 ms92.0%
Client.getdjango/test/client.py:113386 ms92.0%
RequestFactory.getdjango/test/client.py:47586 ms92.0%
RequestFactory.genericdjango/test/client.py:67186 ms92.0%
Client.requestdjango/test/client.py:109186 ms92.0%
ClientHandler.__call__django/test/client.py:18662 ms65.5%
BaseHandler.get_responsedjango/core/handlers/base.py:14262 ms65.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5662 ms65.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38062 ms65.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5662 ms65.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38062 ms65.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5662 ms65.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38062 ms65.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5662 ms65.5%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12362 ms65.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5662 ms65.5%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:14562 ms65.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5662 ms65.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38062 ms65.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5662 ms65.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38062 ms65.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5662 ms65.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38062 ms65.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5662 ms65.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38062 ms65.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5662 ms65.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38062 ms65.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5662 ms65.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38062 ms65.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5662 ms65.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38062 ms65.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5662 ms65.5%
BaseHandler._get_responsedjango/core/handlers/base.py:19962 ms65.5%
share_starter_packstarter_packs/views.py:862 return render(62 ms65.5%
renderdjango/shortcuts.py:2762 ms65.5%
render_to_stringdjango/template/loader.py:6262 ms65.5%
Template.renderdjango/template/backends/django.py:10762 ms65.5%
Template.renderdjango/template/base.py:17562 ms65.5%
instrumented_test_renderdjango/test/utils.py:11362 ms65.5%
NodeList.renderdjango/template/base.py:110862 ms65.5%
Node.render_annotateddjango/template/base.py:106962 ms65.5%
ExtendsNode.renderdjango/template/loader_tags.py:16062 ms65.5%
instrumented_test_renderdjango/test/utils.py:11362 ms65.5%
NodeList.renderdjango/template/base.py:110862 ms65.5%
Node.render_annotateddjango/template/base.py:106960 ms64.3%
BlockNode.renderdjango/template/loader_tags.py:6659 ms63.0%
NodeList.renderdjango/template/base.py:110859 ms63.0%
Node.render_annotateddjango/template/base.py:106959 ms63.0%
IfNode.renderdjango/template/defaulttags.py:33253 ms56.7%
Page.__len__django/core/paginator.py:31253 ms56.7%
QuerySet.__len__django/db/models/query.py:42153 ms56.7%
QuerySet._fetch_alldjango/db/models/query.py:226253 ms56.7%
ModelIterable.__iter__django/db/models/query.py:10353 ms56.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:161253 ms56.7%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:76853 ms56.7%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:8953 ms56.7%
SQLCompiler.setup_querydjango/db/models/sql/compiler.py:7853 ms56.7%
SQLCompiler.get_selectdjango/db/models/sql/compiler.py:31953 ms56.7%
SQLCompiler.compiledjango/db/models/sql/compiler.py:57953 ms56.7%
Col.as_sqldjango/db/models/expressions.py:136953 ms56.7%
IncludeNode.renderdjango/template/loader_tags.py:2116 ms6.3%
Template.renderdjango/template/base.py:1776 ms6.3%
instrumented_test_renderdjango/test/utils.py:1136 ms6.3%
NodeList.renderdjango/template/base.py:11086 ms6.3%
Node.render_annotateddjango/template/base.py:10696 ms6.3%
ForNode.renderdjango/template/defaulttags.py:2496 ms6.3%
Node.render_annotateddjango/template/base.py:10696 ms6.3%
IncludeNode.renderdjango/template/loader_tags.py:2116 ms6.3%
Template.renderdjango/template/base.py:1776 ms6.3%
instrumented_test_renderdjango/test/utils.py:1136 ms6.3%
NodeList.renderdjango/template/base.py:11086 ms6.3%
Node.render_annotateddjango/template/base.py:10696 ms6.3%
VariableNode.renderdjango/template/base.py:11676 ms6.3%
FilterExpression.resolvedjango/template/base.py:8066 ms6.3%
Variable.resolvedjango/template/base.py:9456 ms6.3%
Variable._resolve_lookupdjango/template/base.py:9826 ms6.3%
BaseContext.__getitem__django/template/context.py:886 ms6.3%
IfNode.renderdjango/template/defaulttags.py:3331 ms1.3%
NodeList.renderdjango/template/base.py:11081 ms1.3%
Node.render_annotateddjango/template/base.py:10691 ms1.3%
IncludeNode.renderdjango/template/loader_tags.py:2111 ms1.3%
Template.renderdjango/template/base.py:1771 ms1.3%
instrumented_test_renderdjango/test/utils.py:1131 ms1.3%
NodeList.renderdjango/template/base.py:11081 ms1.3%
Node.render_annotateddjango/template/base.py:10691 ms1.3%
CsrfTokenNode.renderdjango/template/defaulttags.py:821 ms1.3%
format_htmldjango/utils/html.py:1451 ms1.3%
conditional_escapedjango/utils/html.py:1291 ms1.3%
ClientHandler.__call__django/test/client.py:17325 ms26.5%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6325 ms26.5%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10425 ms26.5%
WhiteNoise.add_fileswhitenoise/base.py:10825 ms26.5%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12013 ms13.9%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13112 ms12.6%
WhiteNoise.get_static_filewhitenoise/base.py:2178 ms8.8%
StaticFile.__init__whitenoise/responders.py:736 ms6.3%
StaticFile.get_headerswhitenoise/responders.py:1784 ms3.8%
parsedate<stdlib>/email/_parseaddr.py:1854 ms3.8%
parsedate_tz<stdlib>/email/_parseaddr.py:504 ms3.8%
_parsedate_tz<stdlib>/email/_parseaddr.py:1424 ms3.8%
StaticFile.get_headerswhitenoise/responders.py:1762 ms2.5%
StaticFile.__init__whitenoise/responders.py:722 ms2.5%
StaticFile.get_file_statswhitenoise/responders.py:1611 ms1.3%
__init____init__:-11 ms1.3%
FileEntry.__init__whitenoise/responders.py:2601 ms1.3%
<GC>~1 ms1.3%
WhiteNoise.get_static_filewhitenoise/base.py:2124 ms3.8%
WhiteNoise.add_cache_headerswhitenoise/base.py:2334 ms3.8%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1764 ms3.8%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1974 ms3.8%
URLMixin.urldebug_toolbar/panels/staticfiles.py:204 ms3.8%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:2354 ms3.8%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:2084 ms3.8%
urlsplit<stdlib>/urllib/parse.py:5824 ms3.8%
WhiteNoise.update_files_dictionarywhitenoise/base.py:11512 ms12.6%
scantreewhitenoise/base.py:27111 ms11.3%
scantreewhitenoise/base.py:2719 ms10.1%
scantreewhitenoise/base.py:2734 ms3.8%
scantreewhitenoise/base.py:2694 ms3.8%
scantreewhitenoise/base.py:2712 ms2.5%
scantreewhitenoise/base.py:2712 ms2.5%
scantreewhitenoise/base.py:2712 ms2.5%
scantreewhitenoise/base.py:2691 ms1.3%
scantreewhitenoise/base.py:2731 ms1.3%
scantreewhitenoise/base.py:2731 ms1.3%
scantreewhitenoise/base.py:2691 ms1.3%
TestShareStarterPack.test_header_shows_gradient_and_account_avatarsstarter_packs/tests.py:727 account = self.starter_pack.starterpackaccount_set.first().account2 ms2.5%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:871 ms1.3%
QuerySet.firstdjango/db/models/query.py:12121 ms1.3%
QuerySet.__iter__django/db/models/query.py:4391 ms1.3%
QuerySet._fetch_alldjango/db/models/query.py:22621 ms1.3%
ModelIterable.__iter__django/db/models/query.py:1031 ms1.3%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16121 ms1.3%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7681 ms1.3%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:891 ms1.3%
SQLCompiler.setup_querydjango/db/models/sql/compiler.py:781 ms1.3%
SQLCompiler.get_selectdjango/db/models/sql/compiler.py:3321 ms1.3%
BaseExpression.select_formatdjango/db/models/expressions.py:5001 ms1.3%
ForwardManyToOneDescriptor.__get__django/db/models/fields/related_descriptors.py:2661 ms1.3%
FetchOne.fetchdjango/db/models/fetch_modes.py:171 ms1.3%
ForwardManyToOneDescriptor.fetch_onedjango/db/models/fields/related_descriptors.py:2791 ms1.3%
ForwardManyToOneDescriptor.get_objectdjango/db/models/fields/related_descriptors.py:2311 ms1.3%
QuerySet.getdjango/db/models/query.py:7021 ms1.3%
QuerySet.__len__django/db/models/query.py:4211 ms1.3%
QuerySet._fetch_alldjango/db/models/query.py:22621 ms1.3%
ModelIterable.__iter__django/db/models/query.py:991 ms1.3%
Query.get_compilerdjango/db/models/sql/query.py:3741 ms1.3%
BaseConnectionHandler.__getitem__django/utils/connection.py:581 ms1.3%
TransactionTestCase._post_teardowndjango/test/testcases.py:1243 self._fixture_teardown()1 ms1.3%
TestCase._fixture_teardowndjango/test/testcases.py:14981 ms1.3%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4961 ms1.3%
CursorWrapper.executedjango/db/backends/utils.py:791 ms1.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms1.3%
CursorWrapper._executedjango/db/backends/utils.py:1031 ms1.3%
Cursor.executepsycopg/cursor.py:1131 ms1.3%
Connection.waitpsycopg/connection.py:4951 ms1.3%
BaseCursor._execute_genpsycopg/_cursor_base.py:2061 ms1.3%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2861 ms1.3%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:781 ms1.3%
Estimated from 79 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

starter_packs/views.py:862
return render(
share_starter_pack · Database
62 ms
starter_packs/tests.py:723
response = self.client.get(reverse("share_starter_pack", args=[self.starter_pack.slug]))
TestShareStarterPack.test_header_shows_gradient_and_account_avatars · Libraries
25 ms
starter_packs/tests.py:727
account = self.starter_pack.starterpackaccount_set.first().account
TestShareStarterPack.test_header_shows_gradient_and_account_avatars · Database
2 ms

Fixtures

Exact setup time
_dj_autoclear_mailbox function 0.04 ms
_template_string_if_invalid_marker function 0.03 ms
_django_db_marker function 0.03 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

14 queries · 11 ms
No repeated queries.

Biggest pieces of work

call test body
starter_packs/tests.py:723
89 ms
setup pytest internals 4 ms
call _post_teardown
django/test/testcases.py:1243
1 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 94 ms 28600ed main Profile
2 weeks, 5 days ago CI github-actions:test passed 148 ms 600b717 main Profile
2 weeks, 6 days ago CI github-actions:test passed 122 ms c28a326 main Profile
3 weeks ago CI github-actions:test passed 67 ms 9b8826a main Profile
3 weeks ago CI github-actions:test passed 175 ms 4f01055 main Profile
1 month ago CI github-actions:test passed 496 ms 8ab642e main Profile
1 month ago CI github-actions:test passed 81 ms 9b75244 main Profile
1 month ago CI github-actions:test passed 113 ms 9603516 main Profile
1 month, 1 week ago CI github-actions:test passed 125 ms 615a272 main Profile
1 month, 1 week ago CI github-actions:test passed 78 ms d923a46 main Profile
1 month, 1 week ago CI github-actions:test passed 168 ms 82997f8 main Profile
1 month, 1 week ago CI github-actions:test passed 259 ms 623aa3e main Profile
1 month, 1 week ago CI github-actions:test passed 265 ms ab6465a main Profile
1 month, 1 week ago CI github-actions:test passed 97 ms 0c23747 main Run