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

TestPinAccountInStarterPack::test_pin_button_shown_on_review_page

First seen 1 month, 1 week ago in 0c23747
CI github-actions:test 13 runs
Average
183 ms
median 200 ms
max 339 ms
Phases
Setup 6 ms Call 176 ms Teardown 0.76 ms
Categories
Database 48 ms App code 0.08 ms Factories 0.08 ms Other (Libraries, Templates, pytest, Unsampled, ...) 134 ms

30 database queries per run

Needs 318 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
call313 ms98.2%
TestPinAccountInStarterPack.test_pin_button_shown_on_review_pagestarter_packs/tests.py:1027 response = self.client.get(reverse("review_starter_pack", args=[self.starter_pack.slug]))298 ms93.6%
Client.getdjango/test/client.py:1133298 ms93.6%
RequestFactory.getdjango/test/client.py:475298 ms93.6%
RequestFactory.genericdjango/test/client.py:671298 ms93.6%
Client.requestdjango/test/client.py:1091298 ms93.6%
ClientHandler.__call__django/test/client.py:173269 ms84.3%
BaseHandler.load_middlewaredjango/core/handlers/base.py:63269 ms84.3%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:104269 ms84.3%
WhiteNoise.add_fileswhitenoise/base.py:108269 ms84.3%
WhiteNoise.update_files_dictionarywhitenoise/base.py:120255 ms80.1%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:131255 ms80.1%
WhiteNoise.get_static_filewhitenoise/base.py:217219 ms68.8%
StaticFile.__init__whitenoise/responders.py:72205 ms64.5%
StaticFile.get_file_statswhitenoise/responders.py:161205 ms64.5%
__init____init__:-1205 ms64.5%
FileEntry.__init__whitenoise/responders.py:263205 ms64.5%
FileEntry.stat_regular_filewhitenoise/responders.py:276205 ms64.5%
<GC>~205 ms64.5%
StaticFile.__init__whitenoise/responders.py:7710 ms3.2%
StaticFile.get_alternativeswhitenoise/responders.py:20310 ms3.2%
Headers.__setitem__<stdlib>/wsgiref/headers.py:6010 ms3.2%
<GC>~10 ms3.2%
2 smaller frames hidden
WhiteNoise.get_static_filewhitenoise/base.py:21236 ms11.3%
WhiteNoise.add_cache_headerswhitenoise/base.py:23335 ms11.0%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:17635 ms11.0%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:19735 ms11.0%
URLMixin.urldebug_toolbar/panels/staticfiles.py:2134 ms10.6%
1 smaller frames hidden
WhiteNoise.update_files_dictionarywhitenoise/base.py:11514 ms4.3%
scantreewhitenoise/base.py:27112 ms3.9%
scantreewhitenoise/base.py:27110 ms3.2%
scantreewhitenoise/base.py:27310 ms3.2%
1 smaller frames hidden
1 smaller frames hidden
ClientHandler.__call__django/test/client.py:18629 ms9.2%
BaseHandler.get_responsedjango/core/handlers/base.py:14229 ms9.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5629 ms9.2%
MiddlewareMixin.__call__django/utils/deprecation.py:38029 ms9.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5629 ms9.2%
MiddlewareMixin.__call__django/utils/deprecation.py:38029 ms9.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5629 ms9.2%
MiddlewareMixin.__call__django/utils/deprecation.py:38029 ms9.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5629 ms9.2%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12329 ms9.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5629 ms9.2%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:14529 ms9.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5629 ms9.2%
MiddlewareMixin.__call__django/utils/deprecation.py:38029 ms9.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5629 ms9.2%
MiddlewareMixin.__call__django/utils/deprecation.py:38029 ms9.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5629 ms9.2%
MiddlewareMixin.__call__django/utils/deprecation.py:38029 ms9.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5629 ms9.2%
MiddlewareMixin.__call__django/utils/deprecation.py:38029 ms9.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5629 ms9.2%
MiddlewareMixin.__call__django/utils/deprecation.py:38029 ms9.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5629 ms9.2%
MiddlewareMixin.__call__django/utils/deprecation.py:38029 ms9.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5629 ms9.2%
MiddlewareMixin.__call__django/utils/deprecation.py:38029 ms9.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5629 ms9.2%
BaseHandler._get_responsedjango/core/handlers/base.py:19929 ms9.2%
user_passes_test.<locals>.decorator.<locals>._view_wrapperdjango/contrib/auth/decorators.py:6229 ms9.2%
review_starter_packstarter_packs/views.py:352 return render(29 ms9.2%
renderdjango/shortcuts.py:2729 ms9.2%
render_to_stringdjango/template/loader.py:6229 ms9.2%
Template.renderdjango/template/backends/django.py:10729 ms9.2%
Template.renderdjango/template/base.py:17529 ms9.2%
instrumented_test_renderdjango/test/utils.py:11329 ms9.2%
NodeList.renderdjango/template/base.py:110829 ms9.2%
Node.render_annotateddjango/template/base.py:106929 ms9.2%
ExtendsNode.renderdjango/template/loader_tags.py:16029 ms9.2%
instrumented_test_renderdjango/test/utils.py:11329 ms9.2%
NodeList.renderdjango/template/base.py:110829 ms9.2%
Node.render_annotateddjango/template/base.py:106929 ms9.2%
BlockNode.renderdjango/template/loader_tags.py:6629 ms9.2%
NodeList.renderdjango/template/base.py:110829 ms9.2%
Node.render_annotateddjango/template/base.py:106929 ms9.2%
IncludeNode.renderdjango/template/loader_tags.py:21129 ms9.2%
Template.renderdjango/template/base.py:17729 ms9.2%
instrumented_test_renderdjango/test/utils.py:11329 ms9.2%
NodeList.renderdjango/template/base.py:110829 ms9.2%
Node.render_annotateddjango/template/base.py:106929 ms9.2%
ForNode.renderdjango/template/defaulttags.py:20229 ms9.2%
Page.__len__django/core/paginator.py:31229 ms9.2%
QuerySet.__len__django/db/models/query.py:42129 ms9.2%
QuerySet._fetch_alldjango/db/models/query.py:226229 ms9.2%
ModelIterable.__iter__django/db/models/query.py:10329 ms9.2%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:162529 ms9.2%
CursorWrapper.executedjango/db/backends/utils.py:7929 ms9.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9229 ms9.2%
CursorWrapper._executedjango/db/backends/utils.py:10529 ms9.2%
Cursor.executepsycopg/cursor.py:11329 ms9.2%
Connection.waitpsycopg/connection.py:49529 ms9.2%
TestPinAccountInStarterPack.test_pin_button_shown_on_review_pagestarter_packs/tests.py:1026 self.client.force_login(self.owner)12 ms3.9%
ClientMixin.force_logindjango/test/client.py:85812 ms3.9%
ClientMixin._logindjango/test/client.py:8845 ms1.4%
ClientMixin.sessiondjango/test/client.py:8155 ms1.4%
SessionStore.savedjango/contrib/sessions/backends/db.py:1215 ms1.4%
SessionStore.createdjango/contrib/sessions/backends/db.py:703 ms1.1%
SessionBase._get_new_session_keydjango/contrib/sessions/backends/base.py:2012 ms0.7%
SessionStore.existsdjango/contrib/sessions/backends/db.py:632 ms0.7%
QuerySet.existsdjango/db/models/query.py:14582 ms0.7%
Query.has_resultsdjango/db/models/sql/query.py:6872 ms0.7%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15932 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16252 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
1 smaller frames hidden
1 smaller frames hidden
ClientMixin._logindjango/test/client.py:8895 ms1.4%
logindjango/contrib/auth/__init__.py:1893 ms1.1%
SessionBase.cycle_keydjango/contrib/sessions/backends/base.py:4372 ms0.7%
1 smaller frames hidden
1 smaller frames hidden
ClientMixin._logindjango/test/client.py:8913 ms1.1%
SessionStore.savedjango/contrib/sessions/backends/db.py:1262 ms0.7%
1 smaller frames hidden
TransactionTestCase._pre_setupdjango/test/testcases.py:1167 cls._fixture_setup()2 ms0.7%
TestCase._fixture_setupdjango/test/testcases.py:14812 ms0.7%
TestCase._enter_atomicsdjango/test/testcases.py:13992 ms0.7%
Atomic.__enter__django/db/transaction.py:2232 ms0.7%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms0.7%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4002 ms0.7%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3672 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms0.7%
Cursor.executepsycopg/cursor.py:1132 ms0.7%
Connection.waitpsycopg/connection.py:4952 ms0.7%
Estimated from 277 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

starter_packs/tests.py:1027
response = self.client.get(reverse("review_starter_pack", args=[self.starter_pack.slug]))
TestPinAccountInStarterPack.test_pin_button_shown_on_review_page · Libraries
269 ms
starter_packs/views.py:352
return render(
review_starter_pack · Database
29 ms
starter_packs/tests.py:1026
self.client.force_login(self.owner)
TestPinAccountInStarterPack.test_pin_button_shown_on_review_page · Database
12 ms

Fixtures

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

Database

29 queries · 24 ms
No repeated queries.

Biggest pieces of work

call test body
starter_packs/tests.py:1027
310 ms
call _pre_setup
django/test/testcases.py:1167
2 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 319 ms 28600ed main Profile
2 weeks, 5 days ago CI github-actions:test passed 170 ms 600b717 main Profile
2 weeks, 6 days ago CI github-actions:test passed 206 ms c28a326 main Profile
3 weeks ago CI github-actions:test passed 62 ms 9b8826a main Profile
3 weeks ago CI github-actions:test passed 211 ms 4f01055 main Profile
1 month ago CI github-actions:test passed 206 ms 8ab642e main Profile
1 month ago CI github-actions:test passed 94 ms 9b75244 main Profile
1 month ago CI github-actions:test passed 123 ms 9603516 main Profile
1 month, 1 week ago CI github-actions:test passed 127 ms 615a272 main Profile
1 month, 1 week ago CI github-actions:test passed 79 ms d923a46 main Profile
1 month, 1 week ago CI github-actions:test passed 339 ms 82997f8 main Profile
1 month, 1 week ago CI github-actions:test passed 200 ms 623aa3e main Profile
1 month, 1 week ago CI github-actions:test passed 240 ms ab6465a main Profile
1 month, 1 week ago CI github-actions:test passed 124 ms 0c23747 main Run