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

TestDeleteStarterPack::test_not_logged_in

First seen 1 year, 11 months ago in 1b5db0c
CI github-actions:test 11 runs
Average
113 ms
median 93 ms
max 242 ms
Phases
Setup 1 ms Call 111 ms Teardown 0.57 ms
Categories
Database 13 ms Other (Libraries, Templates, pytest, Unsampled, ...) 101 ms

7 database queries per run

Needs 23 KB of memory (max 236 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 7 hours ago · open run
Show pytest frames
setup2 ms1.6%
call117 ms96.9%
TestDeleteStarterPack.test_not_logged_instarter_packs/tests.py:329 self.assertRedirects(response, reverse("login") + f"?next=/starter-packs/{self.starter_pack.slug}/delete/")65 ms53.7%
SimpleTestCase.assertRedirectsdjango/test/testcases.py:50265 ms53.7%
Client.getdjango/test/client.py:113365 ms53.7%
RequestFactory.getdjango/test/client.py:47565 ms53.7%
RequestFactory.genericdjango/test/client.py:67165 ms53.7%
Client.requestdjango/test/client.py:109165 ms53.7%
ClientHandler.__call__django/test/client.py:18665 ms53.7%
BaseHandler.get_responsedjango/core/handlers/base.py:14265 ms53.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5665 ms53.7%
MiddlewareMixin.__call__django/utils/deprecation.py:38063 ms52.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5663 ms52.4%
MiddlewareMixin.__call__django/utils/deprecation.py:38063 ms52.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5663 ms52.4%
MiddlewareMixin.__call__django/utils/deprecation.py:38063 ms52.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5663 ms52.4%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12363 ms52.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5663 ms52.4%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:14563 ms52.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5663 ms52.4%
MiddlewareMixin.__call__django/utils/deprecation.py:38063 ms52.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5663 ms52.4%
MiddlewareMixin.__call__django/utils/deprecation.py:38063 ms52.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5663 ms52.4%
MiddlewareMixin.__call__django/utils/deprecation.py:38063 ms52.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5663 ms52.4%
MiddlewareMixin.__call__django/utils/deprecation.py:38063 ms52.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5663 ms52.4%
MiddlewareMixin.__call__django/utils/deprecation.py:38063 ms52.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5663 ms52.4%
MiddlewareMixin.__call__django/utils/deprecation.py:38063 ms52.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5663 ms52.4%
MiddlewareMixin.__call__django/utils/deprecation.py:38063 ms52.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5663 ms52.4%
BaseHandler._get_responsedjango/core/handlers/base.py:19963 ms52.4%
loginaccounts/views.py:280 return render(request, "login.html")63 ms52.4%
renderdjango/shortcuts.py:2763 ms52.4%
render_to_stringdjango/template/loader.py:6263 ms52.4%
Template.renderdjango/template/backends/django.py:10763 ms52.4%
Template.renderdjango/template/base.py:17563 ms52.4%
instrumented_test_renderdjango/test/utils.py:11363 ms52.4%
NodeList.renderdjango/template/base.py:110863 ms52.4%
Node.render_annotateddjango/template/base.py:106963 ms52.4%
ExtendsNode.renderdjango/template/loader_tags.py:16063 ms52.4%
instrumented_test_renderdjango/test/utils.py:11363 ms52.4%
NodeList.renderdjango/template/base.py:110863 ms52.4%
Node.render_annotateddjango/template/base.py:106963 ms52.4%
BlockNode.renderdjango/template/loader_tags.py:6662 ms51.1%
NodeList.renderdjango/template/base.py:110860 ms49.8%
Node.render_annotateddjango/template/base.py:106960 ms49.8%
WithNode.renderdjango/template/defaulttags.py:58160 ms49.8%
NodeList.renderdjango/template/base.py:110860 ms49.8%
Node.render_annotateddjango/template/base.py:106960 ms49.8%
IncludeNode.renderdjango/template/loader_tags.py:21160 ms49.8%
Template.renderdjango/template/base.py:17760 ms49.8%
instrumented_test_renderdjango/test/utils.py:11360 ms49.8%
NodeList.renderdjango/template/base.py:110860 ms49.8%
Node.render_annotateddjango/template/base.py:106960 ms49.8%
SimpleNode.renderdjango/template/library.py:34360 ms49.8%
instances_datalistaccounts/templatetags/account_extras.py:36 for instance in instances:59 ms48.4%
QuerySet.__iter__django/db/models/query.py:43959 ms48.4%
QuerySet._fetch_alldjango/db/models/query.py:226259 ms48.4%
FlatValuesListIterable.__iter__django/db/models/query.py:30257 ms47.1%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:157457 ms47.1%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:162557 ms47.1%
CursorWrapper.executedjango/db/backends/utils.py:7957 ms47.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9257 ms47.1%
CursorWrapper._executedjango/db/backends/utils.py:10557 ms47.1%
Cursor.executepsycopg/cursor.py:11357 ms47.1%
Connection.waitpsycopg/connection.py:49557 ms47.1%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms1.3%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms1.3%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms1.3%
FlatValuesListIterable.__iter__django/db/models/query.py:3012 ms1.3%
instances_datalistaccounts/templatetags/account_extras.py:34 instances = Instance.objects.filter(deleted_at__isnull=True).values_list("domain", flat=True)2 ms1.3%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms1.3%
QuerySet.filterdjango/db/models/query.py:16762 ms1.3%
QuerySet._filter_or_excludedjango/db/models/query.py:16942 ms1.3%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:17042 ms1.3%
Query.add_qdjango/db/models/sql/query.py:16812 ms1.3%
Query._add_qdjango/db/models/sql/query.py:17132 ms1.3%
Query.build_filterdjango/db/models/sql/query.py:15512 ms1.3%
IfNode.renderdjango/template/defaulttags.py:3332 ms1.3%
NodeList.renderdjango/template/base.py:11082 ms1.3%
Node.render_annotateddjango/template/base.py:10692 ms1.3%
IncludeNode.renderdjango/template/loader_tags.py:2112 ms1.3%
Template.renderdjango/template/base.py:1772 ms1.3%
instrumented_test_renderdjango/test/utils.py:1132 ms1.3%
NodeList.renderdjango/template/base.py:11082 ms1.3%
Node.render_annotateddjango/template/base.py:10692 ms1.3%
SimpleNode.renderdjango/template/library.py:3432 ms1.3%
instances_datalistaccounts/templatetags/account_extras.py:36 for instance in instances:2 ms1.3%
QuerySet.__iter__django/db/models/query.py:4392 ms1.3%
QuerySet._fetch_alldjango/db/models/query.py:22622 ms1.3%
FlatValuesListIterable.__iter__django/db/models/query.py:3022 ms1.3%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15742 ms1.3%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16252 ms1.3%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.3%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms1.3%
Cursor.executepsycopg/cursor.py:1132 ms1.3%
Connection.waitpsycopg/connection.py:4952 ms1.3%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms1.3%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms1.3%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms1.3%
MiddlewareMixin.__call__django/utils/deprecation.py:3822 ms1.3%
AnonymousCacheMiddleware.process_responsefedidevs/middleware.py:442 ms1.3%
_is_publicly_cacheablefedidevs/middleware.py:76 if _is_private_request(request):2 ms1.3%
_is_private_requestfedidevs/middleware.py:60 if request.COOKIES.get(settings.LANGUAGE_COOKIE_NAME):2 ms1.3%
LazyObject.__getattribute__django/utils/functional.py:2802 ms1.3%
TestDeleteStarterPack.test_not_logged_instarter_packs/tests.py:328 response = self.client.get(reverse("delete_starter_pack", args=[self.starter_pack.slug]))38 ms31.4%
Client.getdjango/test/client.py:113338 ms31.4%
RequestFactory.getdjango/test/client.py:47538 ms31.4%
RequestFactory.genericdjango/test/client.py:67138 ms31.4%
Client.requestdjango/test/client.py:109138 ms31.4%
ClientHandler.__call__django/test/client.py:17338 ms31.4%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6338 ms31.4%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10438 ms31.4%
WhiteNoise.add_fileswhitenoise/base.py:10838 ms31.4%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12033 ms27.5%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13133 ms27.5%
WhiteNoise.get_static_filewhitenoise/base.py:21725 ms21.0%
StaticFile.__init__whitenoise/responders.py:7211 ms9.2%
StaticFile.get_file_statswhitenoise/responders.py:16110 ms7.9%
__init____init__:-18 ms6.5%
FileEntry.__init__whitenoise/responders.py:2638 ms6.5%
FileEntry.stat_regular_filewhitenoise/responders.py:2768 ms6.5%
<GC>~8 ms6.5%
StaticFile.__init__whitenoise/responders.py:736 ms5.2%
StaticFile.get_headerswhitenoise/responders.py:1673 ms2.6%
StaticFile.get_headerswhitenoise/responders.py:1763 ms2.6%
formatdate<stdlib>/email/utils.py:2663 ms2.6%
StaticFile.__init__whitenoise/responders.py:775 ms3.9%
StaticFile.get_alternativeswhitenoise/responders.py:1982 ms1.3%
StaticFile.get_alternatives.<locals>.<lambda>whitenoise/responders.py:1982 ms1.3%
<GC>~2 ms1.3%
StaticFile.get_alternativeswhitenoise/responders.py:2012 ms1.3%
StaticFile.get_alternativeswhitenoise/responders.py:2002 ms1.3%
__init____init__:-12 ms1.3%
Headers.__init__<stdlib>/wsgiref/headers.py:442 ms1.3%
StaticFile.__init__whitenoise/responders.py:762 ms1.3%
WhiteNoise.get_static_filewhitenoise/base.py:2126 ms5.2%
WhiteNoise.add_cache_headerswhitenoise/base.py:2336 ms5.2%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1765 ms3.9%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1975 ms3.9%
URLMixin.urldebug_toolbar/panels/staticfiles.py:203 ms2.6%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:2352 ms1.3%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:2162 ms1.3%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1155 ms3.9%
scantreewhitenoise/base.py:2713 ms2.6%
scantreewhitenoise/base.py:2692 ms1.3%
scantreewhitenoise/base.py:2712 ms1.3%
scantreewhitenoise/base.py:2712 ms1.3%
scantreewhitenoise/base.py:2712 ms1.3%
scantreewhitenoise/base.py:2732 ms1.3%
TransactionTestCase._post_teardowndjango/test/testcases.py:1243 self._fixture_teardown()13 ms10.5%
TestCase._fixture_teardowndjango/test/testcases.py:149811 ms9.2%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4956 ms5.2%
CursorWrapper.executedjango/db/backends/utils.py:796 ms5.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:926 ms5.2%
CursorWrapper._executedjango/db/backends/utils.py:1036 ms5.2%
Cursor.executepsycopg/cursor.py:1136 ms5.2%
Connection.waitpsycopg/connection.py:4956 ms5.2%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms1.3%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms1.3%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms1.3%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4965 ms3.9%
CursorWrapper.executedjango/db/backends/utils.py:795 ms3.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:925 ms3.9%
CursorWrapper._executedjango/db/backends/utils.py:1035 ms3.9%
Cursor.executepsycopg/cursor.py:1135 ms3.9%
Connection.waitpsycopg/connection.py:4955 ms3.9%
TestCase._fixture_teardowndjango/test/testcases.py:14972 ms1.3%
TestCase._should_check_constraintsdjango/test/testcases.py:15062 ms1.3%
DatabaseWrapper.is_usabledjango/db/backends/postgresql/base.py:5042 ms1.3%
Cursor.executepsycopg/cursor.py:1132 ms1.3%
Connection.waitpsycopg/connection.py:4952 ms1.3%
TransactionTestCase._pre_setupdjango/test/testcases.py:1167 cls._fixture_setup()2 ms1.3%
TestCase._fixture_setupdjango/test/testcases.py:14812 ms1.3%
TestCase._enter_atomicsdjango/test/testcases.py:13992 ms1.3%
Atomic.__enter__django/db/transaction.py:2232 ms1.3%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms1.3%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4002 ms1.3%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3662 ms1.3%
Estimated from 75 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

accounts/templatetags/account_extras.py:36
for instance in instances:
instances_datalist · Database
60 ms
starter_packs/tests.py:328
response = self.client.get(reverse("delete_starter_pack", args=[self.starter_pack.slug]))
TestDeleteStarterPack.test_not_logged_in · Libraries
38 ms
accounts/views.py:280
return render(request, "login.html")
login · Templates
2 ms
accounts/templatetags/account_extras.py:34
instances = Instance.objects.filter(deleted_at__isnull=True).values_list("domain", flat=True)
instances_datalist · Database
2 ms
fedidevs/middleware.py:60
if request.COOKIES.get(settings.LANGUAGE_COOKIE_NAME):
_is_private_request · Libraries
2 ms

Fixtures

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

Database

7 queries · 10 ms
No repeated queries.

Biggest pieces of work

call test body
starter_packs/tests.py:329
103 ms
call _post_teardown
django/test/testcases.py:1243
13 ms
setup pytest internals 2 ms
call _pre_setup
django/test/testcases.py:1167
2 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 121 ms c28a326 main Profile
16 hours ago CI github-actions:test passed 49 ms 9b8826a main Profile
22 hours ago CI github-actions:test passed 108 ms 4f01055 main Profile
1 week, 5 days ago CI github-actions:test passed 143 ms 8ab642e main Profile
2 weeks, 2 days ago CI github-actions:test passed 65 ms 9b75244 main Profile
2 weeks, 2 days ago CI github-actions:test passed 89 ms 9603516 main Profile
2 weeks, 4 days ago CI github-actions:test passed 93 ms 615a272 main Profile
3 weeks ago CI github-actions:test passed 69 ms d923a46 main Profile
3 weeks ago CI github-actions:test passed 177 ms 82997f8 main Profile
3 weeks ago CI github-actions:test passed 92 ms 623aa3e main Profile
3 weeks ago CI github-actions:test passed 242 ms ab6465a main Profile
3 weeks ago CI github-actions:test passed 204 ms 0c23747 main Run