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

TestAccountSettings::test_connections

First seen 3 weeks ago in 78a4357
CI github-actions:test 12 runs
Average
46 ms
median 49 ms
max 65 ms
Phases
Setup 0.73 ms Call 45 ms Teardown 0.17 ms
Categories
Database 19 ms Other (Libraries, Unsampled, Templates, pytest) 27 ms

24 database queries per run

Needs 255 KB of memory (max 656 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 16 hours ago · open run
Show pytest frames
call50 ms98.1%
TestAccountSettings.test_connectionsft/tests.py:225 response = self.client.get(reverse("socialaccount_connections"))25 ms49.0%
Client.getdjango/test/client.py:112425 ms49.0%
RequestFactory.getdjango/test/client.py:47525 ms49.0%
RequestFactory.genericdjango/test/client.py:67125 ms49.0%
Client.requestdjango/test/client.py:108225 ms49.0%
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:12018 ms35.0%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13118 ms35.0%
WhiteNoise.get_static_filewhitenoise/base.py:20818 ms35.0%
StaticFile.__init__whitenoise/responders.py:777 ms14.0%
StaticFile.get_alternativeswhitenoise/responders.py:1984 ms7.0%
StaticFile.get_alternatives.<locals>.<lambda>whitenoise/responders.py:1984 ms7.0%
<GC>~4 ms7.0%
StaticFile.get_alternativeswhitenoise/responders.py:2004 ms7.0%
__init____init__:-14 ms7.0%
StaticFile.__init__whitenoise/responders.py:764 ms7.0%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1894 ms7.0%
Headers.__getitem__<stdlib>/wsgiref/headers.py:834 ms7.0%
Headers.get<stdlib>/wsgiref/headers.py:1044 ms7.0%
StaticFile.__init__whitenoise/responders.py:734 ms7.0%
StaticFile.get_headerswhitenoise/responders.py:1764 ms7.0%
formatdate<stdlib>/email/utils.py:2664 ms7.0%
format_datetime<stdlib>/email/utils.py:2844 ms7.0%
StaticFile.__init__whitenoise/responders.py:724 ms7.0%
StaticFile.get_file_statswhitenoise/responders.py:1614 ms7.0%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1157 ms14.0%
scantreewhitenoise/base.py:2624 ms7.0%
scantreewhitenoise/base.py:2624 ms7.0%
scantreewhitenoise/base.py:2624 ms7.0%
scantreewhitenoise/base.py:2624 ms7.0%
scantreewhitenoise/base.py:2624 ms7.0%
scantreewhitenoise/base.py:2644 ms7.0%
TestAccountSettings.setUpft/tests.py:180 self.client.force_login(self.user)21 ms42.0%
ClientMixin.force_logindjango/test/client.py:85521 ms42.0%
ClientMixin._logindjango/test/client.py:88111 ms21.0%
logindjango/contrib/auth/__init__.py:1877 ms14.0%
SessionBase.cycle_keydjango/contrib/sessions/backends/base.py:4377 ms14.0%
SessionStore.deletedjango/contrib/sessions/backends/db.py:1757 ms14.0%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:874 ms7.0%
Model.deletedjango/db/models/base.py:12984 ms7.0%
Collector.deletedjango/db/models/deletion.py:4524 ms7.0%
DeleteQuery.delete_batchdjango/db/models/sql/subqueries.py:434 ms7.0%
DeleteQuery.do_querydjango/db/models/sql/subqueries.py:254 ms7.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16244 ms7.0%
CursorWrapper.executedjango/db/backends/utils.py:794 ms7.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:924 ms7.0%
CursorWrapper._executedjango/db/backends/utils.py:1054 ms7.0%
Cursor.executepsycopg/cursor.py:1134 ms7.0%
Connection.waitpsycopg/connection.py:4954 ms7.0%
logindjango/contrib/auth/__init__.py:1754 ms7.0%
SessionBase.__contains__django/contrib/sessions/backends/base.py:524 ms7.0%
SessionBase._get_sessiondjango/contrib/sessions/backends/base.py:2514 ms7.0%
SessionStore.loaddjango/contrib/sessions/backends/db.py:554 ms7.0%
SessionStore._get_session_from_dbdjango/contrib/sessions/backends/db.py:344 ms7.0%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:874 ms7.0%
QuerySet.getdjango/db/models/query.py:6354 ms7.0%
QuerySet.__len__django/db/models/query.py:3724 ms7.0%
QuerySet._fetch_alldjango/db/models/query.py:20004 ms7.0%
ModelIterable.__iter__django/db/models/query.py:954 ms7.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16244 ms7.0%
CursorWrapper.executedjango/db/backends/utils.py:794 ms7.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:924 ms7.0%
CursorWrapper._executedjango/db/backends/utils.py:1054 ms7.0%
Cursor.executepsycopg/cursor.py:1134 ms7.0%
Connection.waitpsycopg/connection.py:4954 ms7.0%
ClientMixin._logindjango/test/client.py:8767 ms14.0%
ClientMixin.sessiondjango/test/client.py:8127 ms14.0%
SessionStore.savedjango/contrib/sessions/backends/db.py:1217 ms14.0%
SessionStore.createdjango/contrib/sessions/backends/db.py:704 ms7.0%
SessionBase._get_new_session_keydjango/contrib/sessions/backends/base.py:1984 ms7.0%
SessionStore.existsdjango/contrib/sessions/backends/db.py:634 ms7.0%
QuerySet.existsdjango/db/models/query.py:13374 ms7.0%
Query.has_resultsdjango/db/models/sql/query.py:6814 ms7.0%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15924 ms7.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16244 ms7.0%
CursorWrapper.executedjango/db/backends/utils.py:794 ms7.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:924 ms7.0%
CursorWrapper._executedjango/db/backends/utils.py:1054 ms7.0%
Cursor.executepsycopg/cursor.py:1134 ms7.0%
Connection.waitpsycopg/connection.py:4954 ms7.0%
SessionStore.createdjango/contrib/sessions/backends/db.py:744 ms7.0%
SessionStore.savedjango/contrib/sessions/backends/db.py:1274 ms7.0%
Model.savedjango/db/models/base.py:8744 ms7.0%
Model.save_basedjango/db/models/base.py:9664 ms7.0%
Model._save_tabledjango/db/models/base.py:11674 ms7.0%
Model._do_insertdjango/db/models/base.py:12184 ms7.0%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:874 ms7.0%
QuerySet._insertdjango/db/models/query.py:19184 ms7.0%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19254 ms7.0%
CursorWrapper.executedjango/db/backends/utils.py:794 ms7.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:924 ms7.0%
CursorWrapper._executedjango/db/backends/utils.py:1054 ms7.0%
Cursor.executepsycopg/cursor.py:1134 ms7.0%
Connection.waitpsycopg/connection.py:4954 ms7.0%
ClientMixin._logindjango/test/client.py:8834 ms7.0%
SessionStore.savedjango/contrib/sessions/backends/db.py:1264 ms7.0%
Atomic.__enter__django/db/transaction.py:2114 ms7.0%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:264 ms7.0%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4004 ms7.0%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3674 ms7.0%
CursorWrapper.executedjango/db/backends/utils.py:794 ms7.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:924 ms7.0%
CursorWrapper._executedjango/db/backends/utils.py:1034 ms7.0%
Cursor.executepsycopg/cursor.py:1134 ms7.0%
Connection.waitpsycopg/connection.py:4954 ms7.0%
TransactionTestCase._pre_setupdjango/test/testcases.py:1164 cls._fixture_setup()4 ms7.0%
TestCase._fixture_setupdjango/test/testcases.py:14784 ms7.0%
TestCase._enter_atomicsdjango/test/testcases.py:13964 ms7.0%
Atomic.__enter__django/db/transaction.py:2114 ms7.0%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:264 ms7.0%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4004 ms7.0%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3674 ms7.0%
CursorWrapper.executedjango/db/backends/utils.py:794 ms7.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:924 ms7.0%
Estimated from 14 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

ft/tests.py:225
response = self.client.get(reverse("socialaccount_connections"))
TestAccountSettings.test_connections · Libraries
25 ms
ft/tests.py:180
self.client.force_login(self.user)
TestAccountSettings.setUp · Database
21 ms

Fixtures

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

Database

24 queries · 7 ms
No repeated queries.

Biggest pieces of work

call test body
ft/tests.py:225
25 ms
call setUp
ft/tests.py:180
21 ms
call _pre_setup
django/test/testcases.py:1164
4 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
16 hours ago CI github-actions:test passed 51 ms e141198 main Profile
1 week, 5 days ago CI github-actions:test passed 24 ms 46ec2aa main Profile
2 weeks, 1 day ago CI github-actions:test passed 47 ms afde85b main Profile
2 weeks, 1 day ago CI github-actions:test passed 42 ms fe29f9d main Profile
2 weeks, 1 day ago CI github-actions:test passed 65 ms 044719a main Profile
2 weeks, 2 days ago CI github-actions:test passed 29 ms b3fedae main Profile
2 weeks, 4 days ago CI github-actions:test passed 52 ms 43c4eda main Profile
2 weeks, 6 days ago CI github-actions:test passed 51 ms 9caa567 main Profile
2 weeks, 6 days ago CI github-actions:test passed 51 ms ec75501 main Profile
3 weeks ago CI github-actions:test passed 62 ms d2c12e5 main Profile
3 weeks ago CI github-actions:test passed 26 ms 0b902f6 main Profile
3 weeks ago CI github-actions:test passed 48 ms 78a4357 main Profile