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

TestPotatoqDashboard::test_regular_user_is_forbidden

First seen 1 month ago in 9b75244
CI github-actions:test 7 runs
Average
94 ms
median 92 ms
max 158 ms
Phases
Setup 2 ms Call 92 ms Teardown 0.39 ms
Categories
Database 12 ms Other (Libraries, Unsampled, pytest) 82 ms

22 database queries per run

Needs 0 KB of memory (max 0 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 2 weeks ago · open run
Show pytest frames
call58 ms98.5%
TestPotatoqDashboard.test_regular_user_is_forbiddenfedidevs/tests.py:135 response = self.client.get("/potatoq/")40 ms67.7%
Client.getdjango/test/client.py:113340 ms67.7%
RequestFactory.getdjango/test/client.py:47540 ms67.7%
RequestFactory.genericdjango/test/client.py:67140 ms67.7%
Client.requestdjango/test/client.py:109140 ms67.7%
ClientHandler.__call__django/test/client.py:17340 ms67.7%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6340 ms67.7%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10440 ms67.7%
WhiteNoise.add_fileswhitenoise/base.py:10840 ms67.7%
WhiteNoise.update_files_dictionarywhitenoise/base.py:11536 ms61.5%
scantreewhitenoise/base.py:27136 ms61.5%
scantreewhitenoise/base.py:27135 ms59.5%
scantreewhitenoise/base.py:27130 ms51.3%
scantreewhitenoise/base.py:27130 ms51.3%
scantreewhitenoise/base.py:27129 ms49.2%
scantreewhitenoise/base.py:27327 ms45.1%
scantreewhitenoise/base.py:2692 ms4.1%
scantreewhitenoise/base.py:2731 ms2.1%
scantreewhitenoise/base.py:2735 ms8.2%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1204 ms6.2%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:1314 ms6.2%
WhiteNoise.get_static_filewhitenoise/base.py:2172 ms4.1%
StaticFile.__init__whitenoise/responders.py:731 ms2.1%
StaticFile.get_headerswhitenoise/responders.py:1761 ms2.1%
StaticFile.__init__whitenoise/responders.py:771 ms2.1%
StaticFile.get_alternativeswhitenoise/responders.py:2031 ms2.1%
WhiteNoise.get_static_filewhitenoise/base.py:2121 ms2.1%
WhiteNoise.add_cache_headerswhitenoise/base.py:2361 ms2.1%
TransactionTestCase._pre_setupdjango/test/testcases.py:1167 cls._fixture_setup()17 ms28.7%
TestCase._fixture_setupdjango/test/testcases.py:148117 ms28.7%
TestCase._enter_atomicsdjango/test/testcases.py:139917 ms28.7%
Atomic.__enter__django/db/transaction.py:22317 ms28.7%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2617 ms28.7%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:40017 ms28.7%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:36617 ms28.7%
CursorWrapper.executedjango/db/backends/utils.py:7916 ms26.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9216 ms26.7%
CursorWrapper._executedjango/db/backends/utils.py:10316 ms26.7%
Cursor.executepsycopg/cursor.py:11316 ms26.7%
Connection.waitpsycopg/connection.py:49516 ms26.7%
BaseCursor._execute_genpsycopg/_cursor_base.py:20616 ms26.7%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:28616 ms26.7%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:7816 ms26.7%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:261 ms2.1%
Estimated from 48 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

fedidevs/tests.py:135
response = self.client.get("/potatoq/")
TestPotatoqDashboard.test_regular_user_is_forbidden · Libraries
40 ms

Fixtures

Exact setup time
_dj_autoclear_mailbox function 0.04 ms
_template_string_if_invalid_marker function 0.03 ms
_django_db_marker function 0.03 ms
_django_isolate_apps function 0.03 ms
_live_server_helper 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 · 9 ms
No repeated queries.

Biggest pieces of work

call test body
fedidevs/tests.py:135
40 ms
call _pre_setup
django/test/testcases.py:1167
17 ms
call pytest internals 1 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 59 ms 28600ed main Profile
2 weeks, 5 days ago CI github-actions:test passed 92 ms 600b717 main Profile
2 weeks, 6 days ago CI github-actions:test passed 110 ms c28a326 main Profile
3 weeks ago CI github-actions:test passed 54 ms 9b8826a main Profile
3 weeks ago CI github-actions:test passed 114 ms 4f01055 main Profile
1 month ago CI github-actions:test passed 158 ms 8ab642e main Profile
1 month ago CI github-actions:test passed 70 ms 9b75244 main Profile