flakytest.dev anze3db flakytest
Tests / ft/tests.py

TestAccountSettings::test_connections

First seen 9 hours ago in 78a4357
CI github-actions:test 5 runs
Average
48 ms
median 51 ms
max 62 ms
Phases
Setup 0.80 ms Call 47 ms Teardown 0.17 ms
Categories
Database 17 ms Other (Libraries, Unsampled, Templates) 31 ms

24 database queries per run

Needs 4 KB of memory (max 12 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 2 hours ago · open run
Hide pytest frames
call50 ms97.9%
CallInfo.from_call_pytest/runner.py:35350 ms97.9%
call_and_report.<locals>.<lambda>_pytest/runner.py:24550 ms97.9%
HookCaller.__call__pluggy/_hooks.py:51250 ms97.9%
PluginManager._hookexecpluggy/_manager.py:12050 ms97.9%
_multicallpluggy/_callers.py:12150 ms97.9%
pytest_runtest_call_pytest/runner.py:17950 ms97.9%
_django_setup_unittest.<locals>.non_debugging_runtestpytest_django/plugin.py:57350 ms97.9%
SimpleTestCase.__call__django/test/testcases.py:31350 ms97.9%
SimpleTestCase._setup_and_calldjango/test/testcases.py:36844 ms85.7%
TestCase.__call__<stdlib>/unittest/case.py:74744 ms85.7%
TestCase.run<stdlib>/unittest/case.py:69131 ms61.2%
TestCase._callTestMethod<stdlib>/unittest/case.py:63731 ms61.2%
TestAccountSettings.test_connectionsft/tests.py:224 response = self.client.get(reverse("socialaccount_connections"))31 ms61.2%
Client.getdjango/test/client.py:112431 ms61.2%
RequestFactory.getdjango/test/client.py:47531 ms61.2%
RequestFactory.genericdjango/test/client.py:67131 ms61.2%
Client.requestdjango/test/client.py:108231 ms61.2%
ClientHandler.__call__django/test/client.py:17325 ms49.0%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6225 ms49.0%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10425 ms49.0%
WhiteNoise.add_fileswhitenoise/base.py:10825 ms49.0%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12019 ms36.7%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13119 ms36.7%
WhiteNoise.get_static_filewhitenoise/base.py:20813 ms24.5%
StaticFile.__init__whitenoise/responders.py:729 ms18.4%
StaticFile.get_file_statswhitenoise/responders.py:1619 ms18.4%
__init____init__:-13 ms6.1%
FileEntry.__init__whitenoise/responders.py:2603 ms6.1%
<GC>~3 ms6.1%
StaticFile.__init__whitenoise/responders.py:773 ms6.1%
StaticFile.get_alternativeswhitenoise/responders.py:2003 ms6.1%
__init____init__:-13 ms6.1%
Headers.__init__<stdlib>/wsgiref/headers.py:363 ms6.1%
<GC>~3 ms6.1%
WhiteNoise.get_static_filewhitenoise/base.py:2033 ms6.1%
WhiteNoise.add_cache_headerswhitenoise/base.py:2243 ms6.1%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1763 ms6.1%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1973 ms6.1%
URLMixin.urldebug_toolbar/panels/staticfiles.py:203 ms6.1%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:2053 ms6.1%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:1863 ms6.1%
FileSystemStorage.urldjango/core/files/storage/filesystem.py:2123 ms6.1%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1156 ms12.2%
scantreewhitenoise/base.py:2626 ms12.2%
scantreewhitenoise/base.py:2623 ms6.1%
scantreewhitenoise/base.py:2643 ms6.1%
ClientHandler.__call__django/test/client.py:1866 ms12.2%
BaseHandler.get_responsedjango/core/handlers/base.py:1416 ms12.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:556 ms12.2%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1306 ms12.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:556 ms12.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3096 ms12.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:556 ms12.2%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:1236 ms12.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:556 ms12.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3096 ms12.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:556 ms12.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3096 ms12.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:556 ms12.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3096 ms12.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:556 ms12.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3096 ms12.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:556 ms12.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3096 ms12.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:556 ms12.2%
MiddlewareMixin.__call__django/utils/deprecation.py:3096 ms12.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:556 ms12.2%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:346 ms12.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:556 ms12.2%
BaseHandler._get_responsedjango/core/handlers/base.py:1983 ms6.1%
View.as_view.<locals>.viewdjango/views/generic/base.py:1063 ms6.1%
_multi_decorate.<locals>._wrapperdjango/utils/decorators.py:483 ms6.1%
user_passes_test.<locals>.decorator.<locals>._view_wrapperdjango/contrib/auth/decorators.py:563 ms6.1%
login_required.<locals>.<lambda>django/contrib/auth/decorators.py:793 ms6.1%
new_method_proxy.<locals>.innerdjango/utils/functional.py:2513 ms6.1%
SimpleLazyObject._setupdjango/utils/functional.py:4043 ms6.1%
AuthenticationMiddleware.process_request.<locals>.<lambda>django/contrib/auth/middleware.py:403 ms6.1%
get_userdjango/contrib/auth/middleware.py:203 ms6.1%
get_userdjango/contrib/auth/__init__.py:3113 ms6.1%
_get_user_session_keydjango/contrib/auth/__init__.py:953 ms6.1%
SessionBase.__getitem__django/contrib/sessions/backends/base.py:553 ms6.1%
SessionBase._get_sessiondjango/contrib/sessions/backends/base.py:2513 ms6.1%
SessionStore.loaddjango/contrib/sessions/backends/db.py:553 ms6.1%
SessionStore._get_session_from_dbdjango/contrib/sessions/backends/db.py:343 ms6.1%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:873 ms6.1%
QuerySet.getdjango/db/models/query.py:6353 ms6.1%
QuerySet.__len__django/db/models/query.py:3723 ms6.1%
QuerySet._fetch_alldjango/db/models/query.py:20003 ms6.1%
ModelIterable.__iter__django/db/models/query.py:953 ms6.1%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16243 ms6.1%
CursorWrapper.executedjango/db/backends/utils.py:793 ms6.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms6.1%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1003 ms6.1%
CursorWrapper._executedjango/db/backends/utils.py:1053 ms6.1%
Cursor.executepsycopg/cursor.py:1133 ms6.1%
Connection.waitpsycopg/connection.py:4953 ms6.1%
BaseCursor._execute_genpsycopg/_cursor_base.py:2053 ms6.1%
BaseCursor._convert_querypsycopg/_cursor_base.py:4653 ms6.1%
PostgresClientQuery.convertpsycopg/_queries.py:2893 ms6.1%
PostgresClientQuery.dumppsycopg/_queries.py:2993 ms6.1%
PostgresClientQuery.dump.<locals>.<genexpr>psycopg/_queries.py:3003 ms6.1%
BaseHandler._get_responsedjango/core/handlers/base.py:2213 ms6.1%
SimpleTemplateResponse.renderdjango/template/response.py:1143 ms6.1%
SimpleTemplateResponse.rendered_contentdjango/template/response.py:923 ms6.1%
Template.renderdjango/template/backends/django.py:1073 ms6.1%
Template.renderdjango/template/base.py:1743 ms6.1%
instrumented_test_renderdjango/test/utils.py:1143 ms6.1%
NodeList.renderdjango/template/base.py:10913 ms6.1%
Node.render_annotateddjango/template/base.py:10523 ms6.1%
ExtendsNode.renderdjango/template/loader_tags.py:1603 ms6.1%
instrumented_test_renderdjango/test/utils.py:1143 ms6.1%
NodeList.renderdjango/template/base.py:10913 ms6.1%
Node.render_annotateddjango/template/base.py:10523 ms6.1%
ExtendsNode.renderdjango/template/loader_tags.py:1603 ms6.1%
instrumented_test_renderdjango/test/utils.py:1143 ms6.1%
NodeList.renderdjango/template/base.py:10913 ms6.1%
Node.render_annotateddjango/template/base.py:10523 ms6.1%
ExtendsNode.renderdjango/template/loader_tags.py:1603 ms6.1%
instrumented_test_renderdjango/test/utils.py:1143 ms6.1%
NodeList.renderdjango/template/base.py:10913 ms6.1%
Node.render_annotateddjango/template/base.py:10523 ms6.1%
BlockNode.renderdjango/template/loader_tags.py:663 ms6.1%
NodeList.renderdjango/template/base.py:10913 ms6.1%
Node.render_annotateddjango/template/base.py:10523 ms6.1%
IncludeNode.renderdjango/template/loader_tags.py:2103 ms6.1%
TestCase.run<stdlib>/unittest/case.py:68713 ms24.5%
TestCase._callSetUp<stdlib>/unittest/case.py:63413 ms24.5%
TestAccountSettings.setUpft/tests.py:179 self.client.force_login(self.user)13 ms24.5%
ClientMixin.force_logindjango/test/client.py:85513 ms24.5%
ClientMixin._logindjango/test/client.py:8816 ms12.2%
logindjango/contrib/auth/__init__.py:1873 ms6.1%
SessionBase.cycle_keydjango/contrib/sessions/backends/base.py:4343 ms6.1%
SessionStore.createdjango/contrib/sessions/backends/db.py:703 ms6.1%
SessionBase._get_new_session_keydjango/contrib/sessions/backends/base.py:1983 ms6.1%
SessionStore.existsdjango/contrib/sessions/backends/db.py:633 ms6.1%
QuerySet.existsdjango/db/models/query.py:13373 ms6.1%
Query.has_resultsdjango/db/models/sql/query.py:6813 ms6.1%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15923 ms6.1%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16243 ms6.1%
CursorWrapper.executedjango/db/backends/utils.py:793 ms6.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms6.1%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1003 ms6.1%
CursorWrapper._executedjango/db/backends/utils.py:1053 ms6.1%
Cursor.executepsycopg/cursor.py:1133 ms6.1%
Connection.waitpsycopg/connection.py:4953 ms6.1%
logindjango/contrib/auth/__init__.py:1973 ms6.1%
Signal.senddjango/dispatch/dispatcher.py:2093 ms6.1%
update_last_logindjango/contrib/auth/models.py:243 ms6.1%
AbstractBaseUser.savedjango/contrib/auth/base_user.py:623 ms6.1%
Model.savedjango/db/models/base.py:8743 ms6.1%
Model.save_basedjango/db/models/base.py:9663 ms6.1%
Model._save_tabledjango/db/models/base.py:11103 ms6.1%
Model._do_updatedjango/db/models/base.py:12113 ms6.1%
QuerySet._updatedjango/db/models/query.py:13273 ms6.1%
SQLUpdateCompiler.execute_returning_sqldjango/db/models/sql/compiler.py:21403 ms6.1%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21113 ms6.1%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16243 ms6.1%
CursorWrapper.executedjango/db/backends/utils.py:793 ms6.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms6.1%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1003 ms6.1%
CursorWrapper._executedjango/db/backends/utils.py:1053 ms6.1%
Cursor.executepsycopg/cursor.py:1133 ms6.1%
Connection.waitpsycopg/connection.py:4953 ms6.1%
ClientMixin._logindjango/test/client.py:8763 ms6.1%
ClientMixin.sessiondjango/test/client.py:8123 ms6.1%
SessionStore.savedjango/contrib/sessions/backends/db.py:1213 ms6.1%
SessionStore.createdjango/contrib/sessions/backends/db.py:743 ms6.1%
SessionStore.savedjango/contrib/sessions/backends/db.py:1273 ms6.1%
Model.savedjango/db/models/base.py:8743 ms6.1%
Model.save_basedjango/db/models/base.py:9663 ms6.1%
Model._save_tabledjango/db/models/base.py:11673 ms6.1%
Model._do_insertdjango/db/models/base.py:12183 ms6.1%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:873 ms6.1%
QuerySet._insertdjango/db/models/query.py:19183 ms6.1%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19253 ms6.1%
CursorWrapper.executedjango/db/backends/utils.py:793 ms6.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms6.1%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1003 ms6.1%
CursorWrapper._executedjango/db/backends/utils.py:1053 ms6.1%
Cursor.executepsycopg/cursor.py:1133 ms6.1%
Connection.waitpsycopg/connection.py:4953 ms6.1%
ClientMixin._logindjango/test/client.py:8833 ms6.1%
SessionStore.savedjango/contrib/sessions/backends/db.py:1273 ms6.1%
Model.savedjango/db/models/base.py:8743 ms6.1%
Model.save_basedjango/db/models/base.py:9663 ms6.1%
Model._save_tabledjango/db/models/base.py:11103 ms6.1%
Model._do_updatedjango/db/models/base.py:12113 ms6.1%
QuerySet._updatedjango/db/models/query.py:13273 ms6.1%
SQLUpdateCompiler.execute_returning_sqldjango/db/models/sql/compiler.py:21403 ms6.1%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21113 ms6.1%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16243 ms6.1%
CursorWrapper.executedjango/db/backends/utils.py:793 ms6.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms6.1%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1003 ms6.1%
CursorWrapper._executedjango/db/backends/utils.py:1053 ms6.1%
Cursor.executepsycopg/cursor.py:1133 ms6.1%
Connection.waitpsycopg/connection.py:4953 ms6.1%
SimpleTestCase._setup_and_calldjango/test/testcases.py:3593 ms6.1%
TransactionTestCase._pre_setupdjango/test/testcases.py:1164 cls._fixture_setup()3 ms6.1%
TestCase._fixture_setupdjango/test/testcases.py:14783 ms6.1%
TestCase._enter_atomicsdjango/test/testcases.py:13963 ms6.1%
Atomic.__enter__django/db/transaction.py:2113 ms6.1%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:263 ms6.1%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4003 ms6.1%
SimpleTestCase._setup_and_calldjango/test/testcases.py:3713 ms6.1%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()3 ms6.1%
TestCase._fixture_teardowndjango/test/testcases.py:14953 ms6.1%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4833 ms6.1%
CursorWrapper.executedjango/db/backends/utils.py:793 ms6.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms6.1%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1003 ms6.1%
CursorWrapper._executedjango/db/backends/utils.py:1033 ms6.1%
Cursor.executepsycopg/cursor.py:1133 ms6.1%
Connection.waitpsycopg/connection.py:4953 ms6.1%
Estimated from 16 samples; phase durations are exact. Frames from pytest and pluggy are shown .

Hot lines in your code

ft/tests.py:224
response = self.client.get(reverse("socialaccount_connections"))
TestAccountSettings.test_connections · Libraries
31 ms
ft/tests.py:179
self.client.force_login(self.user)
TestAccountSettings.setUp · Database
13 ms

Fixtures

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

Database

24 queries · 8 ms
No repeated queries.

Biggest pieces of work

call test body
ft/tests.py:224
31 ms
call setUp
ft/tests.py:179
13 ms
call _pre_setup
django/test/testcases.py:1164
3 ms
call _post_teardown
django/test/testcases.py:1240
3 ms

Reliability

5 results · 0 CI failures · 0 local failures

This test hasn't failed recently.

History

Latest 5 results, oldest first in the strip
When Environment Outcome Duration Commit
2 hours ago CI github-actions:test passed 51 ms 9caa567 main Profile
2 hours ago CI github-actions:test passed 51 ms ec75501 main Profile
9 hours ago CI github-actions:test passed 62 ms d2c12e5 main Profile
9 hours ago CI github-actions:test passed 26 ms 0b902f6 main Profile
9 hours ago CI github-actions:test passed 48 ms 78a4357 main Profile