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

TestShareStarterPack::test_not_existing_starter_pack

First seen 1 year, 11 months ago in 1b5db0c
CI github-actions:test 11 runs
Average
118 ms
median 111 ms
max 226 ms
Phases
Setup 1 ms Call 116 ms Teardown 0.29 ms
Categories
Database 10 ms Other (Libraries, pytest, Unsampled, Templates, ...) 108 ms

6 database queries per run

Needs 222 KB of memory (max 820 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 7 hours ago · open run
Show pytest frames
setup1 ms0.9%
call126 ms98.8%
TestShareStarterPack.test_not_existing_starter_packstarter_packs/tests.py:676 response = self.client.get(reverse("share_starter_pack", args=["not-existing"]))99 ms77.2%
Client.getdjango/test/client.py:113399 ms77.2%
RequestFactory.getdjango/test/client.py:47599 ms77.2%
RequestFactory.genericdjango/test/client.py:67199 ms77.2%
Client.requestdjango/test/client.py:109199 ms77.2%
ClientHandler.__call__django/test/client.py:17385 ms66.4%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6385 ms66.4%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10485 ms66.4%
WhiteNoise.add_fileswhitenoise/base.py:10885 ms66.4%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12077 ms60.2%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13177 ms60.2%
WhiteNoise.get_static_filewhitenoise/base.py:21139 ms30.9%
WhiteNoise.add_mime_headerswhitenoise/base.py:23037 ms29.3%
Headers.add_header<stdlib>/wsgiref/headers.py:19135 ms27.8%
WhiteNoise.get_static_filewhitenoise/base.py:21726 ms20.1%
StaticFile.__init__whitenoise/responders.py:748 ms6.2%
Headers.__getitem__<stdlib>/wsgiref/headers.py:836 ms4.6%
Headers.get<stdlib>/wsgiref/headers.py:1046 ms4.6%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:506 ms4.6%
parsedate<stdlib>/email/_parseaddr.py:1852 ms1.5%
StaticFile.__init__whitenoise/responders.py:738 ms6.2%
StaticFile.get_headerswhitenoise/responders.py:1764 ms3.1%
formatdate<stdlib>/email/utils.py:2664 ms3.1%
format_datetime<stdlib>/email/utils.py:2842 ms1.5%
StaticFile.get_headerswhitenoise/responders.py:1672 ms1.5%
StaticFile.get_headerswhitenoise/responders.py:1712 ms1.5%
Headers.__contains__<stdlib>/wsgiref/headers.py:872 ms1.5%
Headers.get<stdlib>/wsgiref/headers.py:1042 ms1.5%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:502 ms1.5%
StaticFile.__init__whitenoise/responders.py:776 ms4.6%
StaticFile.get_alternativeswhitenoise/responders.py:2004 ms3.1%
__init____init__:-14 ms3.1%
Headers.__init__<stdlib>/wsgiref/headers.py:444 ms3.1%
StaticFile.get_alternativeswhitenoise/responders.py:2062 ms1.5%
compile<stdlib>/re/__init__.py:2892 ms1.5%
<GC>~2 ms1.5%
StaticFile.__init__whitenoise/responders.py:722 ms1.5%
StaticFile.get_file_statswhitenoise/responders.py:1612 ms1.5%
StaticFile.__init__whitenoise/responders.py:762 ms1.5%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1882 ms1.5%
WhiteNoise.get_static_filewhitenoise/base.py:21212 ms9.3%
WhiteNoise.add_cache_headerswhitenoise/base.py:23312 ms9.3%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:17612 ms9.3%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:19712 ms9.3%
URLMixin.urldebug_toolbar/panels/staticfiles.py:2012 ms9.3%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:23512 ms9.3%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:21610 ms7.7%
FileSystemStorage.urldjango/core/files/storage/filesystem.py:2078 ms6.2%
urljoin<stdlib>/urllib/parse.py:7078 ms6.2%
FileSystemStorage.urldjango/core/files/storage/filesystem.py:2062 ms1.5%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1158 ms6.2%
scantreewhitenoise/base.py:2718 ms6.2%
scantreewhitenoise/base.py:2716 ms4.6%
scantreewhitenoise/base.py:2714 ms3.1%
scantreewhitenoise/base.py:2714 ms3.1%
scantreewhitenoise/base.py:2692 ms1.5%
scantreewhitenoise/base.py:2712 ms1.5%
scantreewhitenoise/base.py:2732 ms1.5%
scantreewhitenoise/base.py:2732 ms1.5%
<GC>~2 ms1.5%
scantreewhitenoise/base.py:2732 ms1.5%
ClientHandler.__call__django/test/client.py:18612 ms9.3%
BaseHandler.get_responsedjango/core/handlers/base.py:14212 ms9.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5612 ms9.3%
MiddlewareMixin.__call__django/utils/deprecation.py:38012 ms9.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5612 ms9.3%
MiddlewareMixin.__call__django/utils/deprecation.py:3808 ms6.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:568 ms6.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3808 ms6.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:568 ms6.2%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:1238 ms6.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:568 ms6.2%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1458 ms6.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:568 ms6.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3796 ms4.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:564 ms3.1%
MiddlewareMixin.__call__django/utils/deprecation.py:3804 ms3.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:564 ms3.1%
MiddlewareMixin.__call__django/utils/deprecation.py:3804 ms3.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:564 ms3.1%
MiddlewareMixin.__call__django/utils/deprecation.py:3802 ms1.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:562 ms1.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3802 ms1.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:562 ms1.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3802 ms1.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:562 ms1.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3802 ms1.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:562 ms1.5%
BaseHandler._get_responsedjango/core/handlers/base.py:1992 ms1.5%
share_starter_packstarter_packs/views.py:729 starter_pack = get_object_or_404(StarterPack, slug=starter_pack_slug, deleted_at__isnull=True)2 ms1.5%
get_object_or_404django/shortcuts.py:1002 ms1.5%
QuerySet.getdjango/db/models/query.py:6922 ms1.5%
QuerySet.filterdjango/db/models/query.py:16762 ms1.5%
QuerySet._filter_or_excludedjango/db/models/query.py:16942 ms1.5%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:17042 ms1.5%
Query.add_qdjango/db/models/sql/query.py:16812 ms1.5%
Query._add_qdjango/db/models/sql/query.py:17132 ms1.5%
Query.build_filterdjango/db/models/sql/query.py:15512 ms1.5%
Query.solve_lookup_typedjango/db/models/sql/query.py:13582 ms1.5%
Query.names_to_pathdjango/db/models/sql/query.py:18892 ms1.5%
SessionMiddleware.process_requestdjango/contrib/sessions/middleware.py:202 ms1.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3802 ms1.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:562 ms1.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3802 ms1.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:562 ms1.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3802 ms1.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:562 ms1.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3802 ms1.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:562 ms1.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3802 ms1.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:562 ms1.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3802 ms1.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:562 ms1.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3802 ms1.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:562 ms1.5%
BaseHandler._get_responsedjango/core/handlers/base.py:1992 ms1.5%
share_starter_packstarter_packs/views.py:729 starter_pack = get_object_or_404(StarterPack, slug=starter_pack_slug, deleted_at__isnull=True)2 ms1.5%
get_object_or_404django/shortcuts.py:1002 ms1.5%
QuerySet.getdjango/db/models/query.py:6922 ms1.5%
QuerySet.filterdjango/db/models/query.py:16762 ms1.5%
QuerySet._filter_or_excludedjango/db/models/query.py:16942 ms1.5%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:17042 ms1.5%
Query.add_qdjango/db/models/sql/query.py:16812 ms1.5%
Query._add_qdjango/db/models/sql/query.py:17132 ms1.5%
Query.build_filterdjango/db/models/sql/query.py:16132 ms1.5%
Query.build_lookupdjango/db/models/sql/query.py:14302 ms1.5%
BaseExpression.get_lookupdjango/db/models/expressions.py:4042 ms1.5%
RegisterLookupMixin.get_lookupdjango/db/models/query_utils.py:3532 ms1.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3824 ms3.1%
CSPMiddleware.process_responsecsp/middleware.py:834 ms3.1%
build_policycsp/utils.py:992 ms1.5%
copy<stdlib>/copy.py:732 ms1.5%
build_policycsp/utils.py:1422 ms1.5%
ClientHandler.__call__django/test/client.py:2072 ms1.5%
HttpResponseBase.closedjango/http/response.py:3482 ms1.5%
TransactionTestCase._post_teardowndjango/test/testcases.py:1243 self._fixture_teardown()26 ms20.1%
TestCase._fixture_teardowndjango/test/testcases.py:149724 ms18.5%
TestCase._should_check_constraintsdjango/test/testcases.py:150624 ms18.5%
DatabaseWrapper.is_usabledjango/db/backends/postgresql/base.py:50424 ms18.5%
Cursor.executepsycopg/cursor.py:11324 ms18.5%
Connection.waitpsycopg/connection.py:49524 ms18.5%
BaseCursor._execute_genpsycopg/_cursor_base.py:20624 ms18.5%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:28624 ms18.5%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:7824 ms18.5%
TestCase._fixture_teardowndjango/test/testcases.py:14982 ms1.5%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4952 ms1.5%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.5%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms1.5%
Cursor.executepsycopg/cursor.py:1132 ms1.5%
Connection.waitpsycopg/connection.py:4952 ms1.5%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms1.5%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms1.5%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms1.5%
TransactionTestCase._pre_setupdjango/test/testcases.py:1167 cls._fixture_setup()2 ms1.5%
TestCase._fixture_setupdjango/test/testcases.py:14812 ms1.5%
TestCase._enter_atomicsdjango/test/testcases.py:13992 ms1.5%
Atomic.__enter__django/db/transaction.py:2232 ms1.5%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms1.5%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4002 ms1.5%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3672 ms1.5%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.5%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms1.5%
Cursor.executepsycopg/cursor.py:1132 ms1.5%
Connection.waitpsycopg/connection.py:4952 ms1.5%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms1.5%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms1.5%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms1.5%
teardown0.32 ms0.3%
Estimated from 68 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

starter_packs/tests.py:676
response = self.client.get(reverse("share_starter_pack", args=["not-existing"]))
TestShareStarterPack.test_not_existing_starter_pack · Libraries
95 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
4 ms

Fixtures

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

Database

6 queries · 4 ms
No repeated queries.

Biggest pieces of work

call test body
starter_packs/tests.py:676
99 ms
call _post_teardown
django/test/testcases.py:1243
26 ms
call _pre_setup
django/test/testcases.py:1167
2 ms
setup pytest internals 1 ms
teardown pytest internals 0.32 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 128 ms c28a326 main Profile
16 hours ago CI github-actions:test passed 39 ms 9b8826a main Profile
22 hours ago CI github-actions:test passed 116 ms 4f01055 main Profile
1 week, 5 days ago CI github-actions:test passed 111 ms 8ab642e main Profile
2 weeks, 2 days ago CI github-actions:test passed 67 ms 9b75244 main Profile
2 weeks, 2 days ago CI github-actions:test passed 79 ms 9603516 main Profile
2 weeks, 4 days ago CI github-actions:test passed 98 ms 615a272 main Profile
3 weeks ago CI github-actions:test passed 43 ms d923a46 main Profile
3 weeks ago CI github-actions:test passed 226 ms 82997f8 main Profile
3 weeks ago CI github-actions:test passed 174 ms 623aa3e main Profile
3 weeks ago CI github-actions:test passed 215 ms ab6465a main Profile
3 weeks ago CI github-actions:test passed 69 ms 0c23747 main Run