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

TestShareStarterPack::test_api_formats_7___text_plain____text_html__

First seen 1 year, 3 months ago in 1e2abb0
CI github-actions:test 11 runs
Average
150 ms
median 119 ms
max 311 ms
Phases
Setup 1 ms Call 148 ms Teardown 0.49 ms
Categories
Database 30 ms App code 0.27 ms Other (Libraries, Templates, pytest, Unsampled, ...) 119 ms

12 database queries per run

Needs 424 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
call111 ms98.7%
feed_data.<locals>.wrapperddt.py:221 return func(self, *args, **kwargs)111 ms98.7%
TestShareStarterPack.test_api_formatsstarter_packs/tests.py:841 response = self.client.get(107 ms95.6%
Client.getdjango/test/client.py:1133107 ms95.6%
RequestFactory.getdjango/test/client.py:475107 ms95.6%
RequestFactory.genericdjango/test/client.py:671107 ms95.6%
Client.requestdjango/test/client.py:1091107 ms95.6%
ClientHandler.__call__django/test/client.py:17357 ms51.0%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6357 ms51.0%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10457 ms51.0%
WhiteNoise.add_fileswhitenoise/base.py:10857 ms51.0%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12039 ms35.0%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13139 ms35.0%
WhiteNoise.get_static_filewhitenoise/base.py:21732 ms28.7%
StaticFile.__init__whitenoise/responders.py:7618 ms15.9%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1887 ms6.4%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1897 ms6.4%
Headers.__getitem__<stdlib>/wsgiref/headers.py:837 ms6.4%
Headers.get<stdlib>/wsgiref/headers.py:1044 ms3.2%
URLMixin.urldebug_toolbar/panels/staticfiles.py:204 ms3.2%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:2354 ms3.2%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:2164 ms3.2%
FileSystemStorage.urldjango/core/files/storage/filesystem.py:2044 ms3.2%
StaticFile.get_alternativeswhitenoise/responders.py:2004 ms3.2%
__init____init__:-14 ms3.2%
StaticFile.__init__whitenoise/responders.py:734 ms3.2%
StaticFile.get_headerswhitenoise/responders.py:1784 ms3.2%
parsedate<stdlib>/email/_parseaddr.py:1854 ms3.2%
StaticFile.__init__whitenoise/responders.py:744 ms3.2%
Headers.__getitem__<stdlib>/wsgiref/headers.py:834 ms3.2%
StaticFile.__init__whitenoise/responders.py:754 ms3.2%
Headers.__getitem__<stdlib>/wsgiref/headers.py:834 ms3.2%
Headers.get<stdlib>/wsgiref/headers.py:1064 ms3.2%
StaticFile.__init__whitenoise/responders.py:724 ms3.2%
StaticFile.get_file_statswhitenoise/responders.py:1614 ms3.2%
__init____init__:-14 ms3.2%
FileEntry.__init__whitenoise/responders.py:2634 ms3.2%
FileEntry.stat_regular_filewhitenoise/responders.py:2764 ms3.2%
<GC>~4 ms3.2%
WhiteNoise.get_static_filewhitenoise/base.py:2127 ms6.4%
WhiteNoise.add_cache_headerswhitenoise/base.py:2337 ms6.4%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1767 ms6.4%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1977 ms6.4%
URLMixin.urldebug_toolbar/panels/staticfiles.py:204 ms3.2%
WhiteNoise.update_files_dictionarywhitenoise/base.py:11518 ms15.9%
scantreewhitenoise/base.py:27118 ms15.9%
scantreewhitenoise/base.py:27114 ms12.7%
scantreewhitenoise/base.py:2737 ms6.4%
scantreewhitenoise/base.py:2717 ms6.4%
scantreewhitenoise/base.py:2717 ms6.4%
scantreewhitenoise/base.py:2717 ms6.4%
scantreewhitenoise/base.py:2694 ms3.2%
scantreewhitenoise/base.py:2734 ms3.2%
scantreewhitenoise/base.py:2734 ms3.2%
ClientHandler.__call__django/test/client.py:18650 ms44.6%
BaseHandler.get_responsedjango/core/handlers/base.py:14250 ms44.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5650 ms44.6%
MiddlewareMixin.__call__django/utils/deprecation.py:38050 ms44.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5650 ms44.6%
MiddlewareMixin.__call__django/utils/deprecation.py:38050 ms44.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5650 ms44.6%
MiddlewareMixin.__call__django/utils/deprecation.py:38050 ms44.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5650 ms44.6%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12350 ms44.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5650 ms44.6%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:14550 ms44.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5650 ms44.6%
MiddlewareMixin.__call__django/utils/deprecation.py:38050 ms44.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5650 ms44.6%
MiddlewareMixin.__call__django/utils/deprecation.py:38050 ms44.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5650 ms44.6%
MiddlewareMixin.__call__django/utils/deprecation.py:38050 ms44.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5650 ms44.6%
MiddlewareMixin.__call__django/utils/deprecation.py:38050 ms44.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5650 ms44.6%
MiddlewareMixin.__call__django/utils/deprecation.py:38050 ms44.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5650 ms44.6%
MiddlewareMixin.__call__django/utils/deprecation.py:38050 ms44.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5650 ms44.6%
MiddlewareMixin.__call__django/utils/deprecation.py:38050 ms44.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5650 ms44.6%
BaseHandler._get_responsedjango/core/handlers/base.py:19950 ms44.6%
share_starter_packstarter_packs/views.py:858 owners = list(starter_pack.owners.select_related("accountaccess__account").order_by("username"))36 ms31.9%
QuerySet.__iter__django/db/models/query.py:43929 ms25.5%
QuerySet._fetch_alldjango/db/models/query.py:226229 ms25.5%
ModelIterable.__iter__django/db/models/query.py:10325 ms22.3%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:161221 ms19.1%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:76821 ms19.1%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:8914 ms12.7%
SQLCompiler.setup_querydjango/db/models/sql/compiler.py:7814 ms12.7%
SQLCompiler.get_selectdjango/db/models/sql/compiler.py:3107 ms6.4%
SQLCompiler.get_related_selectionsdjango/db/models/sql/compiler.py:12824 ms3.2%
SQLCompiler.get_related_selectionsdjango/db/models/sql/compiler.py:13234 ms3.2%
SQLCompiler.get_related_selectionsdjango/db/models/sql/compiler.py:12674 ms3.2%
SQLCompiler.get_related_selectionsdjango/db/models/sql/compiler.py:12284 ms3.2%
SQLCompiler.get_selectdjango/db/models/sql/compiler.py:3197 ms6.4%
SQLCompiler.compiledjango/db/models/sql/compiler.py:5794 ms3.2%
Col.as_sqldjango/db/models/expressions.py:13694 ms3.2%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:907 ms6.4%
SQLCompiler.get_order_bydjango/db/models/sql/compiler.py:4914 ms3.2%
SQLCompiler._order_by_pairsdjango/db/models/sql/compiler.py:4744 ms3.2%
SQLCompiler.get_order_bydjango/db/models/sql/compiler.py:4924 ms3.2%
BaseExpression.resolve_expressiondjango/db/models/expressions.py:2974 ms3.2%
BaseExpression.copydjango/db/models/expressions.py:4444 ms3.2%
copy<stdlib>/copy.py:1004 ms3.2%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16254 ms3.2%
CursorWrapper.executedjango/db/backends/utils.py:794 ms3.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:924 ms3.2%
ModelIterable.__iter__django/db/models/query.py:1354 ms3.2%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15784 ms3.2%
SQLCompiler.get_convertersdjango/db/models/sql/compiler.py:15274 ms3.2%
Col.get_db_convertersdjango/db/models/expressions.py:13844 ms3.2%
ReverseManyToOneDescriptor.__get__django/db/models/fields/related_descriptors.py:6974 ms3.2%
create_forward_many_to_many_manager.<locals>.ManyRelatedManager.__init__django/db/models/fields/related_descriptors.py:11054 ms3.2%
QuerySet.order_bydjango/db/models/query.py:19134 ms3.2%
share_starter_packstarter_packs/views.py:856 page_obj = paginator.get_page(page_number)11 ms9.6%
Paginator.get_pagedjango/core/paginator.py:16111 ms9.6%
Paginator.validate_numberdjango/core/paginator.py:15311 ms9.6%
cached_property.__get__django/utils/functional.py:4711 ms9.6%
Paginator.num_pagesdjango/core/paginator.py:18811 ms9.6%
cached_property.__get__django/utils/functional.py:4711 ms9.6%
Paginator.countdjango/core/paginator.py:18211 ms9.6%
QuerySet.countdjango/db/models/query.py:67711 ms9.6%
Query.get_countdjango/db/models/sql/query.py:65711 ms9.6%
Query.get_aggregationdjango/db/models/sql/query.py:63911 ms9.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16124 ms3.2%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7934 ms3.2%
SQLCompiler.get_from_clausedjango/db/models/sql/compiler.py:11604 ms3.2%
SQLCompiler.compiledjango/db/models/sql/compiler.py:5794 ms3.2%
Join.as_sqldjango/db/models/sql/datastructures.py:884 ms3.2%
DatabaseOperations.prepare_join_on_clausedjango/db/backends/postgresql/operations.py:4024 ms3.2%
ForeignKey.db_typedjango/db/models/fields/related.py:13094 ms3.2%
BigAutoField.rel_db_typedjango/db/models/fields/__init__.py:29774 ms3.2%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16234 ms3.2%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:264 ms3.2%
BaseDatabaseWrapper.cursordjango/db/backends/base/base.py:3204 ms3.2%
BaseDatabaseWrapper._cursordjango/db/backends/base/base.py:2984 ms3.2%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:264 ms3.2%
DatabaseWrapper.create_cursordjango/db/backends/postgresql/base.py:4424 ms3.2%
Connection.cursorpsycopg/connection.py:2594 ms3.2%
Cursor.__init__psycopg/cursor.py:474 ms3.2%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16254 ms3.2%
CursorWrapper.executedjango/db/backends/utils.py:794 ms3.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:924 ms3.2%
CursorWrapper._executedjango/db/backends/utils.py:1054 ms3.2%
Cursor.executepsycopg/cursor.py:1134 ms3.2%
Connection.waitpsycopg/connection.py:4954 ms3.2%
share_starter_packstarter_packs/views.py:741 .annotate(4 ms3.2%
QuerySet.annotatedjango/db/models/query.py:18424 ms3.2%
QuerySet._annotatedjango/db/models/query.py:18744 ms3.2%
QuerySet._annotate.<locals>.<genexpr>django/db/models/query.py:18784 ms3.2%
TestShareStarterPack.test_api_formatsstarter_packs/tests.py:842 reverse("share_starter_pack", args=[self.starter_pack.slug]),4 ms3.2%
TestData.__get__django/test/testcases.py:13704 ms3.2%
deepcopy<stdlib>/copy.py:1564 ms3.2%
_reconstruct<stdlib>/copy.py:2544 ms3.2%
deepcopy<stdlib>/copy.py:1304 ms3.2%
_deepcopy_dict<stdlib>/copy.py:2014 ms3.2%
deepcopy<stdlib>/copy.py:1564 ms3.2%
_reconstruct<stdlib>/copy.py:2544 ms3.2%
deepcopy<stdlib>/copy.py:1304 ms3.2%
_deepcopy_dict<stdlib>/copy.py:2014 ms3.2%
deepcopy<stdlib>/copy.py:1304 ms3.2%
_deepcopy_dict<stdlib>/copy.py:2014 ms3.2%
deepcopy<stdlib>/copy.py:1564 ms3.2%
_reconstruct<stdlib>/copy.py:2544 ms3.2%
deepcopy<stdlib>/copy.py:1304 ms3.2%
_deepcopy_dict<stdlib>/copy.py:2014 ms3.2%
deepcopy<stdlib>/copy.py:1564 ms3.2%
_reconstruct<stdlib>/copy.py:2544 ms3.2%
deepcopy<stdlib>/copy.py:1304 ms3.2%
_deepcopy_dict<stdlib>/copy.py:2014 ms3.2%
deepcopy<stdlib>/copy.py:1304 ms3.2%
_deepcopy_dict<stdlib>/copy.py:2014 ms3.2%
deepcopy<stdlib>/copy.py:1564 ms3.2%
_reconstruct<stdlib>/copy.py:2544 ms3.2%
deepcopy<stdlib>/copy.py:1304 ms3.2%
_deepcopy_dict<stdlib>/copy.py:2014 ms3.2%
deepcopy<stdlib>/copy.py:1564 ms3.2%
_reconstruct<stdlib>/copy.py:2544 ms3.2%
deepcopy<stdlib>/copy.py:1304 ms3.2%
_deepcopy_dict<stdlib>/copy.py:2014 ms3.2%
deepcopy<stdlib>/copy.py:1304 ms3.2%
_deepcopy_dict<stdlib>/copy.py:2014 ms3.2%
deepcopy<stdlib>/copy.py:1564 ms3.2%
_reconstruct<stdlib>/copy.py:2544 ms3.2%
deepcopy<stdlib>/copy.py:1304 ms3.2%
_deepcopy_dict<stdlib>/copy.py:2014 ms3.2%
deepcopy<stdlib>/copy.py:1564 ms3.2%
_reconstruct<stdlib>/copy.py:2474 ms3.2%
deepcopy<stdlib>/copy.py:1564 ms3.2%
_reconstruct<stdlib>/copy.py:2474 ms3.2%
deepcopy<stdlib>/copy.py:1564 ms3.2%
Estimated from 31 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

starter_packs/tests.py:841
response = self.client.get(
TestShareStarterPack.test_api_formats · Libraries
57 ms
starter_packs/views.py:858
owners = list(starter_pack.owners.select_related("accountaccess__account").order_by("username"))
share_starter_pack · Database
36 ms
starter_packs/views.py:856
page_obj = paginator.get_page(page_number)
share_starter_pack · Database
11 ms
starter_packs/tests.py:842
reverse("share_starter_pack", args=[self.starter_pack.slug]),
TestShareStarterPack.test_api_formats · Deep copies
4 ms
starter_packs/views.py:741
.annotate(
share_starter_pack · Database
4 ms

Fixtures

Exact setup time
_template_string_if_invalid_marker function 0.06 ms
monkeypatch function 0.06 ms
_dj_autoclear_mailbox function 0.05 ms
_django_set_urlconf function 0.05 ms
_django_db_marker function 0.05 ms
_django_isolate_apps function 0.05 ms
_live_server_helper function 0.05 ms
_django_clear_site_cache function 0.04 ms

Database

12 queries · 11 ms
No repeated queries.

Biggest pieces of work

call wrapper
ddt.py:221
111 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 112 ms c28a326 main Profile
16 hours ago CI github-actions:test passed 52 ms 9b8826a main Profile
22 hours ago CI github-actions:test passed 161 ms 4f01055 main Profile
1 week, 5 days ago CI github-actions:test passed 119 ms 8ab642e main Profile
2 weeks, 2 days ago CI github-actions:test passed 87 ms 9b75244 main Profile
2 weeks, 2 days ago CI github-actions:test passed 311 ms 9603516 main Profile
2 weeks, 4 days ago CI github-actions:test passed 119 ms 615a272 main Profile
3 weeks ago CI github-actions:test passed 71 ms d923a46 main Profile
3 weeks ago CI github-actions:test passed 231 ms 82997f8 main Profile
3 weeks ago CI github-actions:test passed 192 ms 623aa3e main Profile
3 weeks ago CI github-actions:test passed 195 ms ab6465a main Profile
3 weeks ago CI github-actions:test passed 101 ms 0c23747 main Run