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

TestShareStarterPack::test_api_formats_4___application_json____application_json__

First seen 1 year, 2 months ago in 1e2abb0
CI github-actions:test 4 runs
Average
228 ms
median 199 ms
max 332 ms
Phases
Setup 2 ms Call 225 ms Teardown 0.36 ms
Categories
Database 18 ms Other (Libraries, Unsampled, pytest, Deep copies) 209 ms

8 database queries per run

Needs 148 KB of memory (max 580 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 7 hours ago · open run
Show pytest frames
call331 ms99.7%
feed_data.<locals>.wrapperddt.py:221 return func(self, *args, **kwargs)330 ms99.4%
TestShareStarterPack.test_api_formatsstarter_packs/tests.py:841 response = self.client.get(328 ms98.8%
Client.getdjango/test/client.py:1133328 ms98.8%
RequestFactory.getdjango/test/client.py:475328 ms98.8%
RequestFactory.genericdjango/test/client.py:671328 ms98.8%
Client.requestdjango/test/client.py:1091328 ms98.8%
ClientHandler.__call__django/test/client.py:173322 ms96.9%
BaseHandler.load_middlewaredjango/core/handlers/base.py:63321 ms96.6%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:104321 ms96.6%
WhiteNoise.add_fileswhitenoise/base.py:108321 ms96.6%
WhiteNoise.update_files_dictionarywhitenoise/base.py:120315 ms94.7%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:131313 ms94.1%
WhiteNoise.get_static_filewhitenoise/base.py:217297 ms89.4%
StaticFile.__init__whitenoise/responders.py:72261 ms78.5%
StaticFile.get_file_statswhitenoise/responders.py:161259 ms77.9%
__init____init__:-1259 ms77.9%
FileEntry.__init__whitenoise/responders.py:260247 ms74.2%
<GC>~247 ms74.2%
FileEntry.__init__whitenoise/responders.py:26310 ms3.1%
FileEntry.stat_regular_filewhitenoise/responders.py:2768 ms2.5%
<GC>~8 ms2.5%
FileEntry.stat_regular_filewhitenoise/responders.py:2742 ms0.6%
1 smaller frames hidden
1 smaller frames hidden
StaticFile.__init__whitenoise/responders.py:7321 ms6.2%
StaticFile.get_headerswhitenoise/responders.py:1769 ms2.8%
formatdate<stdlib>/email/utils.py:2664 ms1.2%
format_datetime<stdlib>/email/utils.py:2842 ms0.6%
1 smaller frames hidden
Headers.__setitem__<stdlib>/wsgiref/headers.py:622 ms0.6%
Headers.__delitem__<stdlib>/wsgiref/headers.py:722 ms0.6%
3 smaller frames hidden
StaticFile.get_headerswhitenoise/responders.py:1675 ms1.6%
__init____init__:-14 ms1.2%
Headers.__init__<stdlib>/wsgiref/headers.py:442 ms0.6%
2 smaller frames hidden
StaticFile.get_headerswhitenoise/responders.py:1812 ms0.6%
Headers.__setitem__<stdlib>/wsgiref/headers.py:642 ms0.6%
StaticFile.get_headerswhitenoise/responders.py:1782 ms0.6%
parsedate<stdlib>/email/_parseaddr.py:1852 ms0.6%
parsedate_tz<stdlib>/email/_parseaddr.py:502 ms0.6%
2 smaller frames hidden
StaticFile.__init__whitenoise/responders.py:778 ms2.5%
StaticFile.get_alternativeswhitenoise/responders.py:2013 ms0.9%
Headers.__setitem__<stdlib>/wsgiref/headers.py:622 ms0.6%
StaticFile.get_alternativeswhitenoise/responders.py:2062 ms0.6%
compile<stdlib>/re/__init__.py:2912 ms0.6%
_compile<stdlib>/re/__init__.py:3372 ms0.6%
StaticFile.get_alternativeswhitenoise/responders.py:2002 ms0.6%
__init____init__:-12 ms0.6%
Headers.__init__<stdlib>/wsgiref/headers.py:442 ms0.6%
1 smaller frames hidden
StaticFile.__init__whitenoise/responders.py:743 ms0.9%
parsedate<stdlib>/email/_parseaddr.py:1853 ms0.9%
parsedate_tz<stdlib>/email/_parseaddr.py:503 ms0.9%
_parsedate_tz<stdlib>/email/_parseaddr.py:812 ms0.6%
1 smaller frames hidden
StaticFile.__init__whitenoise/responders.py:763 ms0.9%
1 smaller frames hidden
WhiteNoise.get_static_filewhitenoise/base.py:21210 ms3.1%
WhiteNoise.add_cache_headerswhitenoise/base.py:2339 ms2.8%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1767 ms2.2%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1977 ms2.2%
LazyObject.__getattribute__django/utils/functional.py:2804 ms1.2%
URLMixin.urldebug_toolbar/panels/staticfiles.py:203 ms0.9%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:2353 ms0.9%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:2162 ms0.6%
FileSystemStorage.urldjango/core/files/storage/filesystem.py:2072 ms0.6%
1 smaller frames hidden
2 smaller frames hidden
1 smaller frames hidden
WhiteNoise.get_static_filewhitenoise/base.py:2114 ms1.2%
WhiteNoise.add_mime_headerswhitenoise/base.py:2303 ms0.9%
1 smaller frames hidden
1 smaller frames hidden
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:1232 ms0.6%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1154 ms1.2%
scantreewhitenoise/base.py:2713 ms0.9%
scantreewhitenoise/base.py:2713 ms0.9%
scantreewhitenoise/base.py:2713 ms0.9%
scantreewhitenoise/base.py:2713 ms0.9%
scantreewhitenoise/base.py:2712 ms0.6%
scantreewhitenoise/base.py:2732 ms0.6%
1 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
ClientHandler.__call__django/test/client.py:1866 ms1.9%
BaseHandler.get_responsedjango/core/handlers/base.py:1426 ms1.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:566 ms1.9%
MiddlewareMixin.__call__django/utils/deprecation.py:3806 ms1.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:566 ms1.9%
MiddlewareMixin.__call__django/utils/deprecation.py:3806 ms1.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:566 ms1.9%
MiddlewareMixin.__call__django/utils/deprecation.py:3806 ms1.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:566 ms1.9%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:1236 ms1.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:566 ms1.9%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1456 ms1.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:566 ms1.9%
MiddlewareMixin.__call__django/utils/deprecation.py:3806 ms1.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:566 ms1.9%
MiddlewareMixin.__call__django/utils/deprecation.py:3806 ms1.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:566 ms1.9%
MiddlewareMixin.__call__django/utils/deprecation.py:3806 ms1.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:566 ms1.9%
MiddlewareMixin.__call__django/utils/deprecation.py:3806 ms1.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:566 ms1.9%
MiddlewareMixin.__call__django/utils/deprecation.py:3806 ms1.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:566 ms1.9%
MiddlewareMixin.__call__django/utils/deprecation.py:3806 ms1.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:566 ms1.9%
MiddlewareMixin.__call__django/utils/deprecation.py:3806 ms1.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:566 ms1.9%
BaseHandler._get_responsedjango/core/handlers/base.py:1996 ms1.9%
share_starter_packstarter_packs/views.py:781 for account in accounts5 ms1.6%
QuerySet.__iter__django/db/models/query.py:4395 ms1.6%
QuerySet._fetch_alldjango/db/models/query.py:22625 ms1.6%
ModelIterable.__iter__django/db/models/query.py:1035 ms1.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16254 ms1.2%
CursorWrapper.executedjango/db/backends/utils.py:794 ms1.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:924 ms1.2%
CursorWrapper._executedjango/db/backends/utils.py:1053 ms0.9%
Cursor.executepsycopg/cursor.py:1133 ms0.9%
Connection.waitpsycopg/connection.py:4953 ms0.9%
BaseCursor._execute_genpsycopg/_cursor_base.py:2063 ms0.9%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2863 ms0.9%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:783 ms0.9%
1 smaller frames hidden
1 smaller frames hidden
TestShareStarterPack.test_api_formatsstarter_packs/tests.py:842 reverse("share_starter_pack", args=[self.starter_pack.slug]),2 ms0.6%
TestData.__get__django/test/testcases.py:13702 ms0.6%
deepcopy<stdlib>/copy.py:1572 ms0.6%
_reconstruct<stdlib>/copy.py:2552 ms0.6%
deepcopy<stdlib>/copy.py:1312 ms0.6%
_deepcopy_dict<stdlib>/copy.py:2022 ms0.6%
deepcopy<stdlib>/copy.py:1572 ms0.6%
_reconstruct<stdlib>/copy.py:2552 ms0.6%
deepcopy<stdlib>/copy.py:1312 ms0.6%
_deepcopy_dict<stdlib>/copy.py:2022 ms0.6%
deepcopy<stdlib>/copy.py:1312 ms0.6%
_deepcopy_dict<stdlib>/copy.py:2022 ms0.6%
deepcopy<stdlib>/copy.py:1572 ms0.6%
_reconstruct<stdlib>/copy.py:2552 ms0.6%
deepcopy<stdlib>/copy.py:1312 ms0.6%
_deepcopy_dict<stdlib>/copy.py:2022 ms0.6%
deepcopy<stdlib>/copy.py:1572 ms0.6%
_reconstruct<stdlib>/copy.py:2552 ms0.6%
deepcopy<stdlib>/copy.py:1312 ms0.6%
_deepcopy_dict<stdlib>/copy.py:2022 ms0.6%
deepcopy<stdlib>/copy.py:1312 ms0.6%
_deepcopy_dict<stdlib>/copy.py:2022 ms0.6%
deepcopy<stdlib>/copy.py:1572 ms0.6%
_reconstruct<stdlib>/copy.py:2552 ms0.6%
deepcopy<stdlib>/copy.py:1312 ms0.6%
_deepcopy_dict<stdlib>/copy.py:2022 ms0.6%
deepcopy<stdlib>/copy.py:1572 ms0.6%
_reconstruct<stdlib>/copy.py:2552 ms0.6%
deepcopy<stdlib>/copy.py:1312 ms0.6%
_deepcopy_dict<stdlib>/copy.py:2022 ms0.6%
deepcopy<stdlib>/copy.py:1312 ms0.6%
_deepcopy_dict<stdlib>/copy.py:2022 ms0.6%
deepcopy<stdlib>/copy.py:1572 ms0.6%
_reconstruct<stdlib>/copy.py:2552 ms0.6%
deepcopy<stdlib>/copy.py:1312 ms0.6%
_deepcopy_dict<stdlib>/copy.py:2022 ms0.6%
1 smaller frames hidden
Estimated from 320 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
322 ms
starter_packs/views.py:781
for account in accounts
share_starter_pack · Database
5 ms
starter_packs/tests.py:842
reverse("share_starter_pack", args=[self.starter_pack.slug]),
TestShareStarterPack.test_api_formats · Deep copies
2 ms
starter_packs/views.py:729
starter_pack = get_object_or_404(StarterPack, slug=starter_pack_slug, deleted_at__isnull=True)
share_starter_pack · Database
1 ms

Fixtures

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

8 queries · 6 ms
No repeated queries.

Biggest pieces of work

call wrapper
ddt.py:221
330 ms
call _post_teardown
django/test/testcases.py:1243
1 ms

Reliability

5 results · 0 CI failures · 0 local failures

This test hasn't failed recently.

History

Latest 50 results, oldest first in the strip
When Environment Outcome Duration Commit
7 hours ago CI github-actions:test passed 332 ms d923a46 main Profile
8 hours ago CI github-actions:test passed 185 ms 82997f8 main Profile
8 hours ago CI github-actions:test passed 179 ms 623aa3e main Profile
13 hours ago CI github-actions:test passed 213 ms ab6465a main Profile
13 hours ago CI github-actions:test passed 91 ms 0c23747 main Run
3 months, 3 weeks ago CI github-actions passed 52 ms 69d78ea HEAD Run
3 months, 3 weeks ago CI github-actions passed 73 ms 8fac7b5 main Run
3 months, 3 weeks ago CI github-actions passed 76 ms 36b9579 main Run
3 months, 3 weeks ago CI github-actions passed 87 ms 553d048 main Run
3 months, 3 weeks ago CI github-actions passed 73 ms 8eb0f44 HEAD Run
3 months, 3 weeks ago CI github-actions passed 87 ms e0fb3ac HEAD Run
3 months, 3 weeks ago CI github-actions passed 72 ms a849b58 HEAD Run
3 months, 3 weeks ago CI github-actions passed 82 ms 6418e05 HEAD Run
3 months, 3 weeks ago CI github-actions passed 88 ms 5b9b309 main Run
3 months, 4 weeks ago CI github-actions passed 86 ms 1f2c5a6 main Run
3 months, 4 weeks ago CI github-actions passed 84 ms 5ec7fa8 main Run
3 months, 4 weeks ago CI github-actions passed 88 ms 1e42064 main Run
3 months, 4 weeks ago CI github-actions passed 86 ms fcb1b79 main Run
3 months, 4 weeks ago CI github-actions passed 91 ms 1460ac2 HEAD Run
3 months, 4 weeks ago CI github-actions passed 86 ms 8129f09 HEAD Run