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

TestPinAccountInStarterPack::test_removing_account_swaps_pin_button_to_disabled

First seen 3 weeks ago in 0c23747
CI github-actions:test 11 runs
Average
141 ms
median 115 ms
max 282 ms
Phases
Setup 6 ms Call 135 ms Teardown 0.35 ms
Categories
Database 63 ms Factories 0.10 ms Other (Libraries, pytest, Unsampled, Deep copies, ...) 78 ms

36 database queries per run

Needs 216 KB of memory (max 1 MB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 7 hours ago · open run
Show pytest frames
call110 ms98.8%
TestPinAccountInStarterPack.test_removing_account_swaps_pin_button_to_disabledstarter_packs/tests.py:1100 response = self.client.post(101 ms90.5%
Client.postdjango/test/client.py:1162101 ms90.5%
RequestFactory.postdjango/test/client.py:499101 ms90.5%
RequestFactory.genericdjango/test/client.py:671101 ms90.5%
Client.requestdjango/test/client.py:1091101 ms90.5%
ClientHandler.__call__django/test/client.py:18687 ms78.2%
BaseHandler.get_responsedjango/core/handlers/base.py:14287 ms78.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5687 ms78.2%
MiddlewareMixin.__call__django/utils/deprecation.py:38087 ms78.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5687 ms78.2%
MiddlewareMixin.__call__django/utils/deprecation.py:38087 ms78.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5687 ms78.2%
MiddlewareMixin.__call__django/utils/deprecation.py:38087 ms78.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5687 ms78.2%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12387 ms78.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5687 ms78.2%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:14587 ms78.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5687 ms78.2%
MiddlewareMixin.__call__django/utils/deprecation.py:38087 ms78.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5687 ms78.2%
MiddlewareMixin.__call__django/utils/deprecation.py:38082 ms74.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5682 ms74.1%
MiddlewareMixin.__call__django/utils/deprecation.py:38082 ms74.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5682 ms74.1%
MiddlewareMixin.__call__django/utils/deprecation.py:38082 ms74.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5682 ms74.1%
MiddlewareMixin.__call__django/utils/deprecation.py:38082 ms74.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5682 ms74.1%
MiddlewareMixin.__call__django/utils/deprecation.py:38082 ms74.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5682 ms74.1%
MiddlewareMixin.__call__django/utils/deprecation.py:38082 ms74.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5682 ms74.1%
BaseHandler._get_responsedjango/core/handlers/base.py:19982 ms74.1%
user_passes_test.<locals>.decorator.<locals>._view_wrapperdjango/contrib/auth/decorators.py:6278 ms70.0%
toggle_account_to_starter_packstarter_packs/views.py:66055 ms49.4%
get_splash_image_signaturestarter_packs/splash_images.py:8855 ms49.4%
get_splash_image_accountsstarter_packs/splash_images.py:77 return list(accounts)50 ms45.3%
QuerySet.__iter__django/db/models/query.py:43950 ms45.3%
QuerySet._fetch_alldjango/db/models/query.py:226250 ms45.3%
ModelIterable.__iter__django/db/models/query.py:10341 ms37.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:162523 ms20.6%
CursorWrapper.executedjango/db/backends/utils.py:7923 ms20.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9223 ms20.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:161218 ms16.5%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:76818 ms16.5%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:8918 ms16.5%
SQLCompiler.setup_querydjango/db/models/sql/compiler.py:7818 ms16.5%
SQLCompiler.get_selectdjango/db/models/sql/compiler.py:31914 ms12.3%
SQLCompiler.compiledjango/db/models/sql/compiler.py:57914 ms12.3%
Col.as_sqldjango/db/models/expressions.py:13699 ms8.2%
SQLCompiler.get_selectdjango/db/models/sql/compiler.py:3105 ms4.1%
SQLCompiler.get_related_selectionsdjango/db/models/sql/compiler.py:12605 ms4.1%
SQLCompiler.get_default_columnsdjango/db/models/sql/compiler.py:10105 ms4.1%
ModelIterable.__iter__django/db/models/query.py:1355 ms4.1%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15785 ms4.1%
SQLCompiler.get_convertersdjango/db/models/sql/compiler.py:15275 ms4.1%
Col.get_db_convertersdjango/db/models/expressions.py:13845 ms4.1%
ModelIterable.__iter__django/db/models/query.py:1365 ms4.1%
Model.from_dbdjango/db/models/base.py:6255 ms4.1%
Model.__init__django/db/models/base.py:5335 ms4.1%
get_splash_image_accountsstarter_packs/splash_images.py:68 Account.objects.filter(5 ms4.1%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:875 ms4.1%
QuerySet.filterdjango/db/models/query.py:16765 ms4.1%
QuerySet._filter_or_excludedjango/db/models/query.py:16945 ms4.1%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:17045 ms4.1%
Query.add_qdjango/db/models/sql/query.py:16815 ms4.1%
Query._add_qdjango/db/models/sql/query.py:17135 ms4.1%
Query.build_filterdjango/db/models/sql/query.py:15775 ms4.1%
Query.setup_joinsdjango/db/models/sql/query.py:20025 ms4.1%
toggle_account_to_starter_packstarter_packs/views.py:674 "num_accounts": StarterPackAccount.objects.filter(starter_pack=starter_pack).count(),18 ms16.5%
QuerySet.countdjango/db/models/query.py:67714 ms12.3%
Query.get_countdjango/db/models/sql/query.py:65714 ms12.3%
Query.get_aggregationdjango/db/models/sql/query.py:6399 ms8.2%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16259 ms8.2%
CursorWrapper.executedjango/db/backends/utils.py:799 ms8.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:929 ms8.2%
CursorWrapper._executedjango/db/backends/utils.py:1059 ms8.2%
Cursor.executepsycopg/cursor.py:1139 ms8.2%
Connection.waitpsycopg/connection.py:4959 ms8.2%
BaseCursor._execute_genpsycopg/_cursor_base.py:2069 ms8.2%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2869 ms8.2%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:789 ms8.2%
Query.get_aggregationdjango/db/models/sql/query.py:4715 ms4.1%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:875 ms4.1%
QuerySet.filterdjango/db/models/query.py:16765 ms4.1%
QuerySet._filter_or_excludedjango/db/models/query.py:16945 ms4.1%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:17045 ms4.1%
Query.add_qdjango/db/models/sql/query.py:16815 ms4.1%
Query._add_qdjango/db/models/sql/query.py:17135 ms4.1%
Query.build_filterdjango/db/models/sql/query.py:15515 ms4.1%
toggle_account_to_starter_packstarter_packs/views.py:658 starter_pack.save(update_fields=["num_accounts"])5 ms4.1%
Model.savedjango/db/models/base.py:9045 ms4.1%
Model.save_basedjango/db/models/base.py:9965 ms4.1%
Model._save_tabledjango/db/models/base.py:11405 ms4.1%
Model._do_updatedjango/db/models/base.py:12445 ms4.1%
QuerySet._updatedjango/db/models/query.py:14485 ms4.1%
SQLUpdateCompiler.execute_returning_sqldjango/db/models/sql/compiler.py:21505 ms4.1%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21215 ms4.1%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16255 ms4.1%
CursorWrapper.executedjango/db/backends/utils.py:795 ms4.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:925 ms4.1%
CursorWrapper._executedjango/db/backends/utils.py:1055 ms4.1%
Cursor.executepsycopg/cursor.py:1135 ms4.1%
Connection.waitpsycopg/connection.py:4955 ms4.1%
BaseCursor._execute_genpsycopg/_cursor_base.py:2065 ms4.1%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2865 ms4.1%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:785 ms4.1%
Atomic.__exit__django/db/transaction.py:2595 ms4.1%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:265 ms4.1%
BaseDatabaseWrapper.savepoint_commitdjango/db/backends/base/base.py:4315 ms4.1%
BaseDatabaseWrapper._savepoint_commitdjango/db/backends/base/base.py:3755 ms4.1%
CursorWrapper.executedjango/db/backends/utils.py:795 ms4.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:925 ms4.1%
CursorWrapper._executedjango/db/backends/utils.py:1035 ms4.1%
Cursor.executepsycopg/cursor.py:1135 ms4.1%
Connection.waitpsycopg/connection.py:4955 ms4.1%
BaseCursor._execute_genpsycopg/_cursor_base.py:2065 ms4.1%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2865 ms4.1%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:785 ms4.1%
MiddlewareMixin.__call__django/utils/deprecation.py:3825 ms4.1%
LocaleMiddleware.process_responsedjango/middleware/locale.py:405 ms4.1%
get_language_from_pathdjango/utils/translation/__init__.py:2525 ms4.1%
get_language_from_pathdjango/utils/translation/trans_real.py:5595 ms4.1%
ClientHandler.__call__django/test/client.py:17314 ms12.3%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6314 ms12.3%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10414 ms12.3%
WhiteNoise.add_fileswhitenoise/base.py:10814 ms12.3%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12014 ms12.3%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13114 ms12.3%
WhiteNoise.get_static_filewhitenoise/base.py:21714 ms12.3%
StaticFile.__init__whitenoise/responders.py:735 ms4.1%
StaticFile.get_headerswhitenoise/responders.py:1765 ms4.1%
StaticFile.__init__whitenoise/responders.py:775 ms4.1%
StaticFile.get_alternativeswhitenoise/responders.py:2015 ms4.1%
StaticFile.__init__whitenoise/responders.py:725 ms4.1%
StaticFile.get_file_statswhitenoise/responders.py:1635 ms4.1%
TestPinAccountInStarterPack.test_removing_account_swaps_pin_button_to_disabledstarter_packs/tests.py:1096 def test_removing_account_swaps_pin_button_to_disabled(self):5 ms4.1%
SysMonitor.sysmon_py_startcoverage/sysmon.py:3875 ms4.1%
TestPinAccountInStarterPack.test_removing_account_swaps_pin_button_to_disabledstarter_packs/tests.py:1097 self.client.force_login(self.owner)5 ms4.1%
ClientMixin.force_logindjango/test/client.py:8585 ms4.1%
ClientMixin._logindjango/test/client.py:8845 ms4.1%
ClientMixin.sessiondjango/test/client.py:8155 ms4.1%
SessionStore.savedjango/contrib/sessions/backends/db.py:1215 ms4.1%
SessionStore.createdjango/contrib/sessions/backends/db.py:705 ms4.1%
SessionBase._get_new_session_keydjango/contrib/sessions/backends/base.py:2015 ms4.1%
SessionStore.existsdjango/contrib/sessions/backends/db.py:635 ms4.1%
QuerySet.existsdjango/db/models/query.py:14585 ms4.1%
Query.has_resultsdjango/db/models/sql/query.py:6875 ms4.1%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15935 ms4.1%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16255 ms4.1%
CursorWrapper.executedjango/db/backends/utils.py:795 ms4.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:925 ms4.1%
CursorWrapper._executedjango/db/backends/utils.py:1055 ms4.1%
Cursor.executepsycopg/cursor.py:1135 ms4.1%
Connection.waitpsycopg/connection.py:4955 ms4.1%
BaseCursor._execute_genpsycopg/_cursor_base.py:2065 ms4.1%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2865 ms4.1%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:785 ms4.1%
Estimated from 24 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

starter_packs/splash_images.py:77
return list(accounts)
get_splash_image_accounts · Database
50 ms
starter_packs/tests.py:1100
response = self.client.post(
TestPinAccountInStarterPack.test_removing_account_swaps_pin_button_to_disabled · Libraries
23 ms
starter_packs/views.py:674
"num_accounts": StarterPackAccount.objects.filter(starter_pack=starter_pack).count(),
toggle_account_to_starter_pack · Database
18 ms
starter_packs/tests.py:1096
def test_removing_account_swaps_pin_button_to_disabled(self):
TestPinAccountInStarterPack.test_removing_account_swaps_pin_button_to_disabled · Libraries
5 ms
starter_packs/tests.py:1097
self.client.force_login(self.owner)
TestPinAccountInStarterPack.test_removing_account_swaps_pin_button_to_disabled · Database
5 ms
starter_packs/views.py:658
starter_pack.save(update_fields=["num_accounts"])
toggle_account_to_starter_pack · Database
5 ms
starter_packs/splash_images.py:68
Account.objects.filter(
get_splash_image_accounts · Database
5 ms

Fixtures

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

Database

35 queries · 15 ms
No repeated queries.

Biggest pieces of work

call test body
starter_packs/tests.py:1100
110 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 111 ms c28a326 main Profile
16 hours ago CI github-actions:test passed 113 ms 9b8826a main Profile
22 hours ago CI github-actions:test passed 133 ms 4f01055 main Profile
1 week, 5 days ago CI github-actions:test passed 93 ms 8ab642e main Profile
2 weeks, 2 days ago CI github-actions:test passed 95 ms 9b75244 main Profile
2 weeks, 2 days ago CI github-actions:test passed 128 ms 9603516 main Profile
2 weeks, 4 days ago CI github-actions:test passed 128 ms 615a272 main Profile
3 weeks ago CI github-actions:test passed 103 ms d923a46 main Profile
3 weeks ago CI github-actions:test passed 282 ms 82997f8 main Profile
3 weeks ago CI github-actions:test passed 115 ms 623aa3e main Profile
3 weeks ago CI github-actions:test passed 250 ms ab6465a main Profile
3 weeks ago CI github-actions:test passed 69 ms 0c23747 main Run