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

TestEditStarterPack::test_not_logged_in

First seen 1 year, 10 months ago in 1b5db0c
CI github-actions:test 4 runs
Average
127 ms
median 130 ms
max 179 ms
Phases
Setup 2 ms Call 125 ms Teardown 0.32 ms
Categories
Database 9 ms Other (Libraries, pytest, Templates, Unsampled) 118 ms

7 database queries per run

Needs 681 KB of memory (max 816 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 7 hours ago · open run
Show pytest frames
call67 ms98.6%
TestEditStarterPack.test_not_logged_instarter_packs/tests.py:192 response = self.client.get(reverse("edit_starter_pack", args=[self.starter_pack.slug]))55 ms81.1%
Client.getdjango/test/client.py:113355 ms81.1%
RequestFactory.getdjango/test/client.py:47555 ms81.1%
RequestFactory.genericdjango/test/client.py:67155 ms81.1%
Client.requestdjango/test/client.py:109155 ms81.1%
ClientHandler.__call__django/test/client.py:17355 ms81.1%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6354 ms78.9%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10452 ms76.7%
WhiteNoise.add_fileswhitenoise/base.py:10852 ms76.7%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12042 ms61.4%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13140 ms59.2%
WhiteNoise.get_static_filewhitenoise/base.py:21736 ms52.6%
StaticFile.__init__whitenoise/responders.py:7713 ms19.7%
StaticFile.get_alternativeswhitenoise/responders.py:2007 ms11.0%
__init____init__:-17 ms11.0%
Headers.__init__<stdlib>/wsgiref/headers.py:444 ms6.6%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:503 ms4.4%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:481 ms2.2%
Headers.__init__<stdlib>/wsgiref/headers.py:433 ms4.4%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:501 ms2.2%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:481 ms2.2%
StaticFile.get_alternativeswhitenoise/responders.py:2011 ms2.2%
Headers.__setitem__<stdlib>/wsgiref/headers.py:641 ms2.2%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:501 ms2.2%
StaticFile.get_alternativeswhitenoise/responders.py:2071 ms2.2%
StaticFile.__init__whitenoise/responders.py:739 ms13.1%
StaticFile.get_headerswhitenoise/responders.py:1764 ms6.6%
formatdate<stdlib>/email/utils.py:2663 ms4.4%
format_datetime<stdlib>/email/utils.py:2841 ms2.2%
_format_timetuple_and_zone<stdlib>/email/utils.py:2361 ms2.2%
format_datetime<stdlib>/email/utils.py:2751 ms2.2%
Headers.__setitem__<stdlib>/wsgiref/headers.py:621 ms2.2%
Headers.__delitem__<stdlib>/wsgiref/headers.py:721 ms2.2%
StaticFile.get_headerswhitenoise/responders.py:1721 ms2.2%
StaticFile.get_headerswhitenoise/responders.py:1811 ms2.2%
Headers.__setitem__<stdlib>/wsgiref/headers.py:641 ms2.2%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:501 ms2.2%
StaticFile.get_headerswhitenoise/responders.py:1781 ms2.2%
Headers.__getitem__<stdlib>/wsgiref/headers.py:831 ms2.2%
StaticFile.__init__whitenoise/responders.py:727 ms11.0%
StaticFile.get_file_statswhitenoise/responders.py:1597 ms11.0%
<GC>~7 ms11.0%
StaticFile.__init__whitenoise/responders.py:764 ms6.6%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1884 ms6.6%
Headers.__contains__<stdlib>/wsgiref/headers.py:874 ms6.6%
Headers.get<stdlib>/wsgiref/headers.py:1061 ms2.2%
Headers.get<stdlib>/wsgiref/headers.py:1021 ms2.2%
StaticFile.__init__whitenoise/responders.py:741 ms2.2%
Headers.__getitem__<stdlib>/wsgiref/headers.py:831 ms2.2%
Headers.get<stdlib>/wsgiref/headers.py:1041 ms2.2%
WhiteNoise.get_static_filewhitenoise/base.py:2123 ms4.4%
WhiteNoise.add_cache_headerswhitenoise/base.py:2341 ms2.2%
Headers.__setitem__<stdlib>/wsgiref/headers.py:621 ms2.2%
Headers.__delitem__<stdlib>/wsgiref/headers.py:711 ms2.2%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:491 ms2.2%
WhiteNoise.get_static_filewhitenoise/base.py:2111 ms2.2%
WhiteNoise.add_mime_headerswhitenoise/base.py:2251 ms2.2%
MediaTypes.get_typewhitenoise/media_types.py:191 ms2.2%
splitext<frozen posixpath>:1261 ms2.2%
_splitext<frozen genericpath>:1841 ms2.2%
WhiteNoise.update_files_dictionarywhitenoise/base.py:11510 ms15.3%
scantreewhitenoise/base.py:2719 ms13.1%
scantreewhitenoise/base.py:2719 ms13.1%
scantreewhitenoise/base.py:2736 ms8.8%
scantreewhitenoise/base.py:2713 ms4.4%
scantreewhitenoise/base.py:2713 ms4.4%
scantreewhitenoise/base.py:2731 ms2.2%
scantreewhitenoise/base.py:2711 ms2.2%
scantreewhitenoise/base.py:2731 ms2.2%
scantreewhitenoise/base.py:2731 ms2.2%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:1111 ms2.2%
WhiteNoise.add_fileswhitenoise/base.py:1081 ms2.2%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1201 ms2.2%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:1311 ms2.2%
WhiteNoise.get_static_filewhitenoise/base.py:2171 ms2.2%
StaticFile.__init__whitenoise/responders.py:731 ms2.2%
StaticFile.get_headerswhitenoise/responders.py:1781 ms2.2%
parsedate<stdlib>/email/_parseaddr.py:1851 ms2.2%
parsedate_tz<stdlib>/email/_parseaddr.py:501 ms2.2%
_parsedate_tz<stdlib>/email/_parseaddr.py:761 ms2.2%
BaseHandler.load_middlewaredjango/core/handlers/base.py:971 ms2.2%
convert_exception_to_responsedjango/core/handlers/exception.py:531 ms2.2%
update_wrapper<stdlib>/functools.py:611 ms2.2%
TransactionTestCase._pre_setupdjango/test/testcases.py:1167 cls._fixture_setup()4 ms6.6%
TestCase._fixture_setupdjango/test/testcases.py:14814 ms6.6%
TestCase._enter_atomicsdjango/test/testcases.py:13994 ms6.6%
Atomic.__enter__django/db/transaction.py:2234 ms6.6%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:264 ms6.6%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4004 ms6.6%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3664 ms6.6%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:264 ms6.6%
BaseDatabaseWrapper.cursordjango/db/backends/base/base.py:3204 ms6.6%
BaseDatabaseWrapper._cursordjango/db/backends/base/base.py:2984 ms6.6%
BaseDatabaseWrapper._prepare_cursordjango/db/backends/base/base.py:2884 ms6.6%
BaseDatabaseWrapper.queries_loggeddjango/db/backends/base/base.py:1714 ms6.6%
LazyObject.__getattribute__django/utils/functional.py:2804 ms6.6%
TestEditStarterPack.test_not_logged_instarter_packs/tests.py:1933 ms4.4%
SimpleTestCase.assertRedirectsdjango/test/testcases.py:5023 ms4.4%
Client.getdjango/test/client.py:11333 ms4.4%
RequestFactory.getdjango/test/client.py:4753 ms4.4%
RequestFactory.genericdjango/test/client.py:6713 ms4.4%
Client.requestdjango/test/client.py:10913 ms4.4%
ClientHandler.__call__django/test/client.py:1863 ms4.4%
BaseHandler.get_responsedjango/core/handlers/base.py:1423 ms4.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:563 ms4.4%
MiddlewareMixin.__call__django/utils/deprecation.py:3803 ms4.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:563 ms4.4%
MiddlewareMixin.__call__django/utils/deprecation.py:3803 ms4.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:563 ms4.4%
MiddlewareMixin.__call__django/utils/deprecation.py:3803 ms4.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:563 ms4.4%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:1233 ms4.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:563 ms4.4%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1453 ms4.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:563 ms4.4%
MiddlewareMixin.__call__django/utils/deprecation.py:3803 ms4.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:563 ms4.4%
MiddlewareMixin.__call__django/utils/deprecation.py:3803 ms4.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:563 ms4.4%
MiddlewareMixin.__call__django/utils/deprecation.py:3803 ms4.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:563 ms4.4%
MiddlewareMixin.__call__django/utils/deprecation.py:3803 ms4.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:563 ms4.4%
MiddlewareMixin.__call__django/utils/deprecation.py:3803 ms4.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:563 ms4.4%
MiddlewareMixin.__call__django/utils/deprecation.py:3803 ms4.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:563 ms4.4%
MiddlewareMixin.__call__django/utils/deprecation.py:3803 ms4.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:563 ms4.4%
BaseHandler._get_responsedjango/core/handlers/base.py:1993 ms4.4%
loginaccounts/views.py:280 return render(request, "login.html")3 ms4.4%
renderdjango/shortcuts.py:273 ms4.4%
render_to_stringdjango/template/loader.py:623 ms4.4%
Template.renderdjango/template/backends/django.py:1073 ms4.4%
Template.renderdjango/template/base.py:1753 ms4.4%
instrumented_test_renderdjango/test/utils.py:1133 ms4.4%
NodeList.renderdjango/template/base.py:11083 ms4.4%
Node.render_annotateddjango/template/base.py:10693 ms4.4%
ExtendsNode.renderdjango/template/loader_tags.py:1603 ms4.4%
instrumented_test_renderdjango/test/utils.py:1133 ms4.4%
NodeList.renderdjango/template/base.py:11083 ms4.4%
Node.render_annotateddjango/template/base.py:10693 ms4.4%
BlockNode.renderdjango/template/loader_tags.py:661 ms2.2%
NodeList.renderdjango/template/base.py:11081 ms2.2%
Node.render_annotateddjango/template/base.py:10691 ms2.2%
WithNode.renderdjango/template/defaulttags.py:5811 ms2.2%
NodeList.renderdjango/template/base.py:11081 ms2.2%
Node.render_annotateddjango/template/base.py:10691 ms2.2%
IncludeNode.renderdjango/template/loader_tags.py:2111 ms2.2%
Template.renderdjango/template/base.py:1771 ms2.2%
instrumented_test_renderdjango/test/utils.py:1131 ms2.2%
NodeList.renderdjango/template/base.py:11081 ms2.2%
Node.render_annotateddjango/template/base.py:10691 ms2.2%
SimpleNode.renderdjango/template/library.py:3431 ms2.2%
instances_datalistaccounts/templatetags/account_extras.py:36 for instance in instances:1 ms2.2%
QuerySet.__iter__django/db/models/query.py:4391 ms2.2%
QuerySet._fetch_alldjango/db/models/query.py:22621 ms2.2%
FlatValuesListIterable.__iter__django/db/models/query.py:3021 ms2.2%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15741 ms2.2%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16251 ms2.2%
CursorWrapper.executedjango/db/backends/utils.py:791 ms2.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms2.2%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms2.2%
Cursor.executepsycopg/cursor.py:1131 ms2.2%
Connection.waitpsycopg/connection.py:4951 ms2.2%
IfNode.renderdjango/template/defaulttags.py:3331 ms2.2%
NodeList.renderdjango/template/base.py:11081 ms2.2%
Node.render_annotateddjango/template/base.py:10691 ms2.2%
IncludeNode.renderdjango/template/loader_tags.py:2111 ms2.2%
Template.renderdjango/template/base.py:1771 ms2.2%
instrumented_test_renderdjango/test/utils.py:1131 ms2.2%
NodeList.renderdjango/template/base.py:11081 ms2.2%
Node.render_annotateddjango/template/base.py:10691 ms2.2%
BlockTranslateNode.renderdjango/templatetags/i18n.py:1771 ms2.2%
gettextdjango/utils/translation/__init__.py:961 ms2.2%
gettextdjango/utils/translation/trans_real.py:3831 ms2.2%
Local.__getattr__asgiref/local.py:1571 ms2.2%
TransactionTestCase._post_teardowndjango/test/testcases.py:1243 self._fixture_teardown()3 ms4.4%
TestCase._fixture_teardowndjango/test/testcases.py:14971 ms2.2%
TestCase._should_check_constraintsdjango/test/testcases.py:15061 ms2.2%
DatabaseWrapper.is_usabledjango/db/backends/postgresql/base.py:5041 ms2.2%
Cursor.executepsycopg/cursor.py:1131 ms2.2%
Connection.waitpsycopg/connection.py:4951 ms2.2%
BaseCursor._execute_genpsycopg/_cursor_base.py:2041 ms2.2%
BaseCursor._start_querypsycopg/_cursor_base.py:3831 ms2.2%
TestCase._fixture_teardowndjango/test/testcases.py:14981 ms2.2%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4951 ms2.2%
CursorWrapper.executedjango/db/backends/utils.py:791 ms2.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms2.2%
CursorWrapper._executedjango/db/backends/utils.py:1031 ms2.2%
Cursor.executepsycopg/cursor.py:1131 ms2.2%
Connection.waitpsycopg/connection.py:4951 ms2.2%
Estimated from 45 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

starter_packs/tests.py:192
response = self.client.get(reverse("edit_starter_pack", args=[self.starter_pack.slug]))
TestEditStarterPack.test_not_logged_in · Libraries
55 ms
accounts/templatetags/account_extras.py:36
for instance in instances:
instances_datalist · Database
1 ms
accounts/views.py:280
return render(request, "login.html")
login · Templates
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.03 ms
_django_clear_site_cache function 0.02 ms
monkeypatch function 0.02 ms

Database

7 queries · 2 ms
No repeated queries.

Biggest pieces of work

call test body
starter_packs/tests.py:192
58 ms
call _pre_setup
django/test/testcases.py:1167
4 ms
call _post_teardown
django/test/testcases.py:1243
3 ms
call pytest internals 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 68 ms d923a46 main Profile
7 hours ago CI github-actions:test passed 150 ms 82997f8 main Profile
7 hours ago CI github-actions:test passed 109 ms 623aa3e main Profile
12 hours ago CI github-actions:test passed 179 ms ab6465a main Profile
12 hours ago CI github-actions:test passed 73 ms 0c23747 main Run
3 months, 3 weeks ago CI github-actions passed 60 ms 69d78ea HEAD Run
3 months, 3 weeks ago CI github-actions passed 86 ms 8fac7b5 main Run
3 months, 3 weeks ago CI github-actions passed 84 ms 36b9579 main Run
3 months, 3 weeks ago CI github-actions passed 101 ms 553d048 main Run
3 months, 3 weeks ago CI github-actions passed 83 ms 8eb0f44 HEAD Run
3 months, 3 weeks ago CI github-actions passed 97 ms e0fb3ac HEAD Run
3 months, 3 weeks ago CI github-actions passed 82 ms a849b58 HEAD Run
3 months, 3 weeks ago CI github-actions passed 91 ms 6418e05 HEAD Run
3 months, 3 weeks ago CI github-actions passed 103 ms 5b9b309 main Run
3 months, 4 weeks ago CI github-actions passed 98 ms 1f2c5a6 main Run
3 months, 4 weeks ago CI github-actions passed 93 ms 5ec7fa8 main Run
3 months, 4 weeks ago CI github-actions passed 95 ms 1e42064 main Run
3 months, 4 weeks ago CI github-actions passed 90 ms fcb1b79 main Run
3 months, 4 weeks ago CI github-actions passed 104 ms 1460ac2 HEAD Run
3 months, 4 weeks ago CI github-actions passed 100 ms 8129f09 HEAD Run