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

TestShareStarterPack::test_api_formats_4___application_json____application_json__

First seen 1 year, 3 months ago in 1e2abb0
CI github-actions:test 13 runs
Average
135 ms
median 113 ms
max 332 ms
Phases
Setup 2 ms Call 133 ms Teardown 0.34 ms
Categories
Database 19 ms Other (Libraries, pytest, Unsampled, Deep copies) 116 ms

8 database queries per run

Needs 384 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
setup1 ms1.3%
_template_string_if_invalid_markerpytest_django/plugin.py:829 marker = request.keywords.get("ignore_template_errors", None)1 ms1.3%
Mapping.get<frozen _collections_abc>:7951 ms1.3%
call73 ms98.1%
feed_data.<locals>.wrapperddt.py:221 return func(self, *args, **kwargs)70 ms94.1%
TestShareStarterPack.test_api_formatsstarter_packs/tests.py:841 response = self.client.get(69 ms92.7%
Client.getdjango/test/client.py:113369 ms92.7%
RequestFactory.getdjango/test/client.py:47569 ms92.7%
RequestFactory.genericdjango/test/client.py:67169 ms92.7%
Client.requestdjango/test/client.py:109169 ms92.7%
ClientHandler.__call__django/test/client.py:17359 ms79.3%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6358 ms77.9%
__init____init__:-157 ms76.6%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10457 ms76.6%
WhiteNoise.add_fileswhitenoise/base.py:10857 ms76.6%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12049 ms65.8%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13148 ms64.5%
WhiteNoise.get_static_filewhitenoise/base.py:21726 ms34.9%
StaticFile.__init__whitenoise/responders.py:739 ms12.1%
StaticFile.get_headerswhitenoise/responders.py:1765 ms6.7%
formatdate<stdlib>/email/utils.py:2663 ms4.0%
format_datetime<stdlib>/email/utils.py:2842 ms2.7%
_format_timetuple_and_zone<stdlib>/email/utils.py:2311.00 ms1.3%
_format_timetuple_and_zone<stdlib>/email/utils.py:2331.00 ms1.3%
format_datetime<stdlib>/email/utils.py:2751.00 ms1.3%
Headers.__setitem__<stdlib>/wsgiref/headers.py:631.00 ms1.3%
StaticFile.get_headerswhitenoise/responders.py:1812 ms2.7%
Headers.__setitem__<stdlib>/wsgiref/headers.py:641.00 ms1.3%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:491.00 ms1.3%
Headers.__setitem__<stdlib>/wsgiref/headers.py:621.00 ms1.3%
Headers.__delitem__<stdlib>/wsgiref/headers.py:711.00 ms1.3%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:501.00 ms1.3%
StaticFile.get_headerswhitenoise/responders.py:1782 ms2.7%
parsedate<stdlib>/email/_parseaddr.py:1851.00 ms1.3%
parsedate_tz<stdlib>/email/_parseaddr.py:501.00 ms1.3%
_parsedate_tz<stdlib>/email/_parseaddr.py:1621.00 ms1.3%
Headers.__getitem__<stdlib>/wsgiref/headers.py:831.00 ms1.3%
Headers.get<stdlib>/wsgiref/headers.py:1061.00 ms1.3%
StaticFile.__init__whitenoise/responders.py:776 ms8.1%
StaticFile.get_alternativeswhitenoise/responders.py:2004 ms5.4%
__init____init__:-14 ms5.4%
Headers.__init__<stdlib>/wsgiref/headers.py:443 ms4.0%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:502 ms2.7%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:491.00 ms1.3%
Headers.__init__<stdlib>/wsgiref/headers.py:421.00 ms1.3%
StaticFile.get_alternativeswhitenoise/responders.py:1981.00 ms1.3%
StaticFile.get_alternativeswhitenoise/responders.py:2011.00 ms1.3%
Headers.__setitem__<stdlib>/wsgiref/headers.py:621.00 ms1.3%
Headers.__delitem__<stdlib>/wsgiref/headers.py:711.00 ms1.3%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:501.00 ms1.3%
StaticFile.__init__whitenoise/responders.py:723 ms4.0%
StaticFile.get_file_statswhitenoise/responders.py:1612 ms2.7%
__init____init__:-12 ms2.7%
FileEntry.__init__whitenoise/responders.py:2632 ms2.7%
FileEntry.stat_regular_filewhitenoise/responders.py:2741.00 ms1.3%
FileEntry.stat_regular_filewhitenoise/responders.py:2821.00 ms1.3%
StaticFile.get_file_statswhitenoise/responders.py:1571.00 ms1.3%
__init____init__:-11.00 ms1.3%
FileEntry.__init__whitenoise/responders.py:2651.00 ms1.3%
StaticFile.__init__whitenoise/responders.py:763 ms4.0%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1892 ms2.7%
Headers.__getitem__<stdlib>/wsgiref/headers.py:832 ms2.7%
Headers.get<stdlib>/wsgiref/headers.py:1041.00 ms1.3%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:491.00 ms1.3%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1881.00 ms1.3%
Headers.__contains__<stdlib>/wsgiref/headers.py:871.00 ms1.3%
Headers.get<stdlib>/wsgiref/headers.py:1061.00 ms1.3%
StaticFile.__init__whitenoise/responders.py:743 ms4.0%
parsedate<stdlib>/email/_parseaddr.py:1852 ms2.7%
parsedate_tz<stdlib>/email/_parseaddr.py:502 ms2.7%
_parsedate_tz<stdlib>/email/_parseaddr.py:1611.00 ms1.3%
_parsedate_tz<stdlib>/email/_parseaddr.py:1401.00 ms1.3%
StaticFile.__init__whitenoise/responders.py:751.00 ms1.3%
Headers.__getitem__<stdlib>/wsgiref/headers.py:831.00 ms1.3%
Headers.get<stdlib>/wsgiref/headers.py:1051.00 ms1.3%
WhiteNoise.get_static_filewhitenoise/base.py:21218 ms24.2%
WhiteNoise.add_cache_headerswhitenoise/base.py:23317 ms22.8%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:17615 ms20.2%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:19715 ms20.2%
URLMixin.urldebug_toolbar/panels/staticfiles.py:209 ms12.1%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:2359 ms12.1%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:2085 ms6.7%
urlsplit<stdlib>/urllib/parse.py:5821.00 ms1.3%
_urlsplit<stdlib>/urllib/parse.py:6221.00 ms1.3%
urlsplit<stdlib>/urllib/parse.py:5791.00 ms1.3%
_coerce_args<stdlib>/urllib/parse.py:1261.00 ms1.3%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:2141.00 ms1.3%
ManifestFilesMixin.stored_namedjango/contrib/staticfiles/storage.py:6001.00 ms1.3%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:2291.00 ms1.3%
unquote<stdlib>/urllib/parse.py:8461.00 ms1.3%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:2161.00 ms1.3%
FileSystemStorage.urldjango/core/files/storage/filesystem.py:2041.00 ms1.3%
filepath_to_uridjango/utils/encoding.py:2451.00 ms1.3%
quote<stdlib>/urllib/parse.py:10721.00 ms1.3%
quote_from_bytes<stdlib>/urllib/parse.py:11071.00 ms1.3%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:2041.00 ms1.3%
URLMixin.urldebug_toolbar/panels/staticfiles.py:215 ms6.7%
<GC>~4 ms5.4%
LazyObject.__getattribute__django/utils/functional.py:2801.00 ms1.3%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1721.00 ms1.3%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1801.00 ms1.3%
basename<frozen posixpath>:1701.00 ms1.3%
_get_sep<frozen posixpath>:431.00 ms1.3%
WhiteNoise.add_cache_headerswhitenoise/base.py:2361.00 ms1.3%
WhiteNoise.get_static_filewhitenoise/base.py:2113 ms4.0%
WhiteNoise.add_mime_headerswhitenoise/base.py:2303 ms4.0%
Headers.add_header<stdlib>/wsgiref/headers.py:1862 ms2.7%
Headers.add_header<stdlib>/wsgiref/headers.py:1921.00 ms1.3%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:501.00 ms1.3%
WhiteNoise.get_static_filewhitenoise/base.py:2141.00 ms1.3%
Headers.__setitem__<stdlib>/wsgiref/headers.py:621.00 ms1.3%
Headers.__delitem__<stdlib>/wsgiref/headers.py:721.00 ms1.3%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:1231.00 ms1.3%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1157 ms9.4%
scantreewhitenoise/base.py:2715 ms6.7%
scantreewhitenoise/base.py:2714 ms5.4%
scantreewhitenoise/base.py:2712 ms2.7%
scantreewhitenoise/base.py:2712 ms2.7%
scantreewhitenoise/base.py:2712 ms2.7%
scantreewhitenoise/base.py:2732 ms2.7%
scantreewhitenoise/base.py:2731.00 ms1.3%
scantreewhitenoise/base.py:2691.00 ms1.3%
scantreewhitenoise/base.py:2731.00 ms1.3%
SecurityMiddleware.__init__django/middleware/security.py:101.00 ms1.3%
MiddlewareMixin.__init__django/utils/deprecation.py:3561.00 ms1.3%
iscoroutinefunction<stdlib>/inspect.py:3361.00 ms1.3%
_has_code_flag<stdlib>/inspect.py:3031.00 ms1.3%
BaseHandler.load_middlewaredjango/core/handlers/base.py:341.00 ms1.3%
ClientHandler.__call__django/test/client.py:18610 ms13.4%
BaseHandler.get_responsedjango/core/handlers/base.py:14210 ms13.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5610 ms13.4%
MiddlewareMixin.__call__django/utils/deprecation.py:38010 ms13.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5610 ms13.4%
MiddlewareMixin.__call__django/utils/deprecation.py:38010 ms13.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5610 ms13.4%
MiddlewareMixin.__call__django/utils/deprecation.py:38010 ms13.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5610 ms13.4%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12310 ms13.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5610 ms13.4%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:14510 ms13.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5610 ms13.4%
MiddlewareMixin.__call__django/utils/deprecation.py:38010 ms13.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5610 ms13.4%
MiddlewareMixin.__call__django/utils/deprecation.py:38010 ms13.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5610 ms13.4%
MiddlewareMixin.__call__django/utils/deprecation.py:38010 ms13.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5610 ms13.4%
MiddlewareMixin.__call__django/utils/deprecation.py:38010 ms13.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5610 ms13.4%
MiddlewareMixin.__call__django/utils/deprecation.py:38010 ms13.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5610 ms13.4%
MiddlewareMixin.__call__django/utils/deprecation.py:38010 ms13.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5610 ms13.4%
MiddlewareMixin.__call__django/utils/deprecation.py:38010 ms13.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5610 ms13.4%
BaseHandler._get_responsedjango/core/handlers/base.py:19910 ms13.4%
share_starter_packstarter_packs/views.py:781 for account in accounts6 ms8.1%
QuerySet.__iter__django/db/models/query.py:4396 ms8.1%
QuerySet._fetch_alldjango/db/models/query.py:22626 ms8.1%
ModelIterable.__iter__django/db/models/query.py:1035 ms6.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16255 ms6.7%
CursorWrapper.executedjango/db/backends/utils.py:795 ms6.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:925 ms6.7%
CursorWrapper._executedjango/db/backends/utils.py:1055 ms6.7%
Cursor.executepsycopg/cursor.py:1135 ms6.7%
Connection.waitpsycopg/connection.py:4955 ms6.7%
BaseCursor._execute_genpsycopg/_cursor_base.py:2065 ms6.7%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2865 ms6.7%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:785 ms6.7%
ModelIterable.__iter__django/db/models/query.py:1461.00 ms1.3%
RelatedPopulator.populatedjango/db/models/query.py:30441.00 ms1.3%
Model.from_dbdjango/db/models/base.py:6251.00 ms1.3%
Model.__init__django/db/models/base.py:5141.00 ms1.3%
share_starter_packstarter_packs/views.py:729 starter_pack = get_object_or_404(StarterPack, slug=starter_pack_slug, deleted_at__isnull=True)2 ms2.7%
get_object_or_404django/shortcuts.py:1002 ms2.7%
QuerySet.getdjango/db/models/query.py:7022 ms2.7%
QuerySet.__len__django/db/models/query.py:4212 ms2.7%
QuerySet._fetch_alldjango/db/models/query.py:22622 ms2.7%
ModelIterable.__iter__django/db/models/query.py:1032 ms2.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16121.00 ms1.3%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7681.00 ms1.3%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:891.00 ms1.3%
SQLCompiler.setup_querydjango/db/models/sql/compiler.py:781.00 ms1.3%
SQLCompiler.get_selectdjango/db/models/sql/compiler.py:2761.00 ms1.3%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16251.00 ms1.3%
CursorWrapper.executedjango/db/backends/utils.py:791.00 ms1.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921.00 ms1.3%
CursorWrapper._executedjango/db/backends/utils.py:1051.00 ms1.3%
Cursor.executepsycopg/cursor.py:1131.00 ms1.3%
Connection.waitpsycopg/connection.py:4951.00 ms1.3%
BaseCursor._execute_genpsycopg/_cursor_base.py:2061.00 ms1.3%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2861.00 ms1.3%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:781.00 ms1.3%
share_starter_packstarter_packs/views.py:740 .select_related("accountlookup", "instance_model")1.00 ms1.3%
QuerySet.select_relateddjango/db/models/query.py:17941.00 ms1.3%
QuerySet._chaindjango/db/models/query.py:22341.00 ms1.3%
QuerySet._clonedjango/db/models/query.py:22471.00 ms1.3%
Query.chaindjango/db/models/sql/query.py:4381.00 ms1.3%
Query.clonedjango/db/models/sql/query.py:4021.00 ms1.3%
WhereNode.clonedjango/db/models/sql/where.py:2181.00 ms1.3%
Node.createdjango/utils/tree.py:371.00 ms1.3%
share_starter_packstarter_packs/views.py:752 "url": request.build_absolute_uri(1.00 ms1.3%
HttpRequest.build_absolute_uridjango/http/request.py:2941.00 ms1.3%
cached_property.__get__django/utils/functional.py:471.00 ms1.3%
HttpRequest._current_scheme_hostdjango/http/request.py:3041.00 ms1.3%
HttpRequest.get_hostdjango/http/request.py:1991.00 ms1.3%
split_domain_portdjango/http/request.py:8561.00 ms1.3%
TestShareStarterPack.test_api_formatsstarter_packs/tests.py:845 self.assertEqual(response.status_code, 200)1.00 ms1.3%
TransactionTestCase._post_teardowndjango/test/testcases.py:1243 self._fixture_teardown()2 ms2.7%
TestCase._fixture_teardowndjango/test/testcases.py:14982 ms2.7%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4951.00 ms1.3%
CursorWrapper.executedjango/db/backends/utils.py:791.00 ms1.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921.00 ms1.3%
CursorWrapper._executedjango/db/backends/utils.py:1031.00 ms1.3%
Cursor.executepsycopg/cursor.py:1131.00 ms1.3%
Connection.waitpsycopg/connection.py:4951.00 ms1.3%
BaseCursor._execute_genpsycopg/_cursor_base.py:2061.00 ms1.3%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2861.00 ms1.3%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:781.00 ms1.3%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4961.00 ms1.3%
CursorWrapper.executedjango/db/backends/utils.py:791.00 ms1.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921.00 ms1.3%
CursorWrapper._executedjango/db/backends/utils.py:1031.00 ms1.3%
Cursor.executepsycopg/cursor.py:1131.00 ms1.3%
Connection.waitpsycopg/connection.py:4951.00 ms1.3%
BaseCursor._execute_genpsycopg/_cursor_base.py:2061.00 ms1.3%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2861.00 ms1.3%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:781.00 ms1.3%
_Environ.__setitem__<frozen os>:7351.00 ms1.3%
Estimated from 75 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
59 ms
starter_packs/views.py:781
for account in accounts
share_starter_pack · Database
6 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
2 ms
starter_packs/views.py:740
.select_related("accountlookup", "instance_model")
share_starter_pack · Database
1.00 ms
starter_packs/views.py:752
"url": request.build_absolute_uri(
share_starter_pack · Libraries
1.00 ms
starter_packs/tests.py:845
self.assertEqual(response.status_code, 200)
TestShareStarterPack.test_api_formats · pytest
1.00 ms

Fixtures

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

8 queries · 7 ms
No repeated queries.

Biggest pieces of work

call wrapper
ddt.py:221
70 ms
call _post_teardown
django/test/testcases.py:1243
2 ms
setup fixture _template_string_if_invalid_marker
pytest_django/plugin.py:829
1 ms
call __setitem__
<frozen os>:735
1.00 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 74 ms 28600ed main Profile
2 weeks, 5 days ago CI github-actions:test passed 123 ms 600b717 main Profile
2 weeks, 6 days ago CI github-actions:test passed 113 ms c28a326 main Profile
3 weeks ago CI github-actions:test passed 54 ms 9b8826a main Profile
3 weeks ago CI github-actions:test passed 113 ms 4f01055 main Profile
1 month ago CI github-actions:test passed 117 ms 8ab642e main Profile
1 month ago CI github-actions:test passed 70 ms 9b75244 main Profile
1 month ago CI github-actions:test passed 109 ms 9603516 main Profile
1 month, 1 week ago CI github-actions:test passed 68 ms 615a272 main Profile
1 month, 1 week ago CI github-actions:test passed 332 ms d923a46 main Profile
1 month, 1 week ago CI github-actions:test passed 185 ms 82997f8 main Profile
1 month, 1 week ago CI github-actions:test passed 179 ms 623aa3e main Profile
1 month, 1 week ago CI github-actions:test passed 213 ms ab6465a main Profile
1 month, 1 week ago CI github-actions:test passed 91 ms 0c23747 main Run