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

TestPotatoqDashboard::test_staff_sees_dashboard

First seen 1 month ago in 9b75244
CI github-actions:test 7 runs
Average
92 ms
median 84 ms
max 175 ms
Phases
Setup 1 ms Call 91 ms Teardown 0.35 ms
Categories
Database 21 ms Test code 0.16 ms Other (Libraries, pytest, Unsampled, Deep copies, ...) 72 ms

22 database queries per run

Needs 2 KB of memory (max 12 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 2 weeks ago · open run
Show pytest frames
call57 ms98.2%
TestPotatoqDashboard.test_staff_sees_dashboardfedidevs/tests.py:144 self.client.force_login(self.staff)44 ms75.5%
ClientMixin.force_logindjango/test/client.py:85842 ms71.8%
ClientMixin._logindjango/test/client.py:88435 ms60.4%
ClientMixin.sessiondjango/test/client.py:81535 ms60.4%
SessionStore.savedjango/contrib/sessions/backends/db.py:12135 ms60.4%
SessionStore.createdjango/contrib/sessions/backends/db.py:7035 ms60.4%
SessionBase._get_new_session_keydjango/contrib/sessions/backends/base.py:20133 ms56.7%
SessionStore.existsdjango/contrib/sessions/backends/db.py:6333 ms56.7%
QuerySet.existsdjango/db/models/query.py:145833 ms56.7%
Query.has_resultsdjango/db/models/sql/query.py:68733 ms56.7%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:159333 ms56.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:161222 ms37.8%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:76822 ms37.8%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:8922 ms37.8%
SQLCompiler.setup_querydjango/db/models/sql/compiler.py:7822 ms37.8%
SQLCompiler.get_selectdjango/db/models/sql/compiler.py:28420 ms34.0%
SQLCompiler.get_selectdjango/db/models/sql/compiler.py:3192 ms3.8%
SQLCompiler.compiledjango/db/models/sql/compiler.py:5792 ms3.8%
Value.as_sqldjango/db/models/expressions.py:11742 ms3.8%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16259 ms15.1%
CursorWrapper.executedjango/db/backends/utils.py:799 ms15.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:929 ms15.1%
CursorWrapper._executedjango/db/backends/utils.py:1057 ms11.3%
Cursor.executepsycopg/cursor.py:1137 ms11.3%
Connection.waitpsycopg/connection.py:4957 ms11.3%
BaseCursor._execute_genpsycopg/_cursor_base.py:2067 ms11.3%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2867 ms11.3%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:787 ms11.3%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16232 ms3.8%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms3.8%
BaseDatabaseWrapper.cursordjango/db/backends/base/base.py:3202 ms3.8%
BaseDatabaseWrapper._cursordjango/db/backends/base/base.py:2982 ms3.8%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:-12 ms3.8%
ClientMixin._logindjango/test/client.py:8894 ms7.6%
logindjango/contrib/auth/__init__.py:1772 ms3.8%
SessionBase.__contains__django/contrib/sessions/backends/base.py:522 ms3.8%
SessionBase._get_sessiondjango/contrib/sessions/backends/base.py:2542 ms3.8%
SessionStore.loaddjango/contrib/sessions/backends/db.py:552 ms3.8%
SessionStore._get_session_from_dbdjango/contrib/sessions/backends/db.py:342 ms3.8%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms3.8%
QuerySet.getdjango/db/models/query.py:7022 ms3.8%
QuerySet.__len__django/db/models/query.py:4212 ms3.8%
QuerySet._fetch_alldjango/db/models/query.py:22622 ms3.8%
ModelIterable.__iter__django/db/models/query.py:1032 ms3.8%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16252 ms3.8%
CursorWrapper.executedjango/db/backends/utils.py:792 ms3.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.8%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms3.8%
Cursor.executepsycopg/cursor.py:1132 ms3.8%
Connection.waitpsycopg/connection.py:4952 ms3.8%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms3.8%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms3.8%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms3.8%
logindjango/contrib/auth/__init__.py:1892 ms3.8%
SessionBase.cycle_keydjango/contrib/sessions/backends/base.py:4372 ms3.8%
SessionStore.createdjango/contrib/sessions/backends/db.py:702 ms3.8%
SessionBase._get_new_session_keydjango/contrib/sessions/backends/base.py:2012 ms3.8%
SessionStore.existsdjango/contrib/sessions/backends/db.py:632 ms3.8%
QuerySet.existsdjango/db/models/query.py:14582 ms3.8%
Query.has_resultsdjango/db/models/sql/query.py:6872 ms3.8%
SQLCompiler.has_resultsdjango/db/models/sql/compiler.py:15932 ms3.8%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16252 ms3.8%
CursorWrapper.executedjango/db/backends/utils.py:792 ms3.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.8%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms3.8%
Cursor.executepsycopg/cursor.py:1132 ms3.8%
Connection.waitpsycopg/connection.py:4952 ms3.8%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms3.8%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms3.8%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms3.8%
ClientMixin._logindjango/test/client.py:8912 ms3.8%
SessionStore.savedjango/contrib/sessions/backends/db.py:1272 ms3.8%
Model.savedjango/db/models/base.py:9042 ms3.8%
TestData.__get__django/test/testcases.py:13702 ms3.8%
deepcopy<stdlib>/copy.py:1452 ms3.8%
TestPotatoqDashboard.test_staff_sees_dashboardfedidevs/tests.py:145 response = self.client.get("/potatoq/")13 ms22.7%
Client.getdjango/test/client.py:113313 ms22.7%
RequestFactory.getdjango/test/client.py:47513 ms22.7%
RequestFactory.genericdjango/test/client.py:67113 ms22.7%
Client.requestdjango/test/client.py:109113 ms22.7%
ClientHandler.__call__django/test/client.py:17313 ms22.7%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6313 ms22.7%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10413 ms22.7%
WhiteNoise.add_fileswhitenoise/base.py:10813 ms22.7%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1207 ms11.3%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:1317 ms11.3%
WhiteNoise.get_static_filewhitenoise/base.py:2177 ms11.3%
StaticFile.__init__whitenoise/responders.py:734 ms7.6%
StaticFile.get_headerswhitenoise/responders.py:1712 ms3.8%
StaticFile.get_headerswhitenoise/responders.py:1702 ms3.8%
StaticFile.__init__whitenoise/responders.py:762 ms3.8%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1892 ms3.8%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1154 ms7.6%
scantreewhitenoise/base.py:2714 ms7.6%
scantreewhitenoise/base.py:2712 ms3.8%
scantreewhitenoise/base.py:2712 ms3.8%
scantreewhitenoise/base.py:2712 ms3.8%
scantreewhitenoise/base.py:2712 ms3.8%
scantreewhitenoise/base.py:2732 ms3.8%
Estimated from 26 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

fedidevs/tests.py:144
self.client.force_login(self.staff)
TestPotatoqDashboard.test_staff_sees_dashboard · Database
44 ms
fedidevs/tests.py:145
response = self.client.get("/potatoq/")
TestPotatoqDashboard.test_staff_sees_dashboard · Libraries
13 ms

Fixtures

Exact setup time
_live_server_helper function 0.05 ms
_dj_autoclear_mailbox function 0.04 ms
_template_string_if_invalid_marker function 0.04 ms
_django_db_marker function 0.03 ms
_django_isolate_apps 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

22 queries · 5 ms
No repeated queries.

Biggest pieces of work

call test body
fedidevs/tests.py:144
57 ms

Reliability

7 results · 0 CI failures · 0 local failures

This test hasn't failed recently.

History

Latest 7 results, oldest first in the strip
When Environment Outcome Duration Commit
2 weeks ago CI github-actions:test passed 58 ms 28600ed main Profile
2 weeks, 5 days ago CI github-actions:test passed 94 ms 600b717 main Profile
2 weeks, 6 days ago CI github-actions:test passed 114 ms c28a326 main Profile
3 weeks ago CI github-actions:test passed 53 ms 9b8826a main Profile
3 weeks ago CI github-actions:test passed 84 ms 4f01055 main Profile
1 month ago CI github-actions:test passed 175 ms 8ab642e main Profile
1 month ago CI github-actions:test passed 68 ms 9b75244 main Profile