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

TestDeleteStarterPack::test_not_logged_in

First seen 2 years ago in 1b5db0c
CI github-actions:test 13 runs
Average
106 ms
median 92 ms
max 242 ms
Phases
Setup 1 ms Call 104 ms Teardown 0.52 ms
Categories
Database 13 ms Other (Libraries, Templates, pytest, Unsampled, ...) 93 ms

7 database queries per run

Needs 41 KB of memory (max 280 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 2 weeks ago · open run
Show pytest frames
call45 ms97.8%
TransactionTestCase._post_teardowndjango/test/testcases.py:1243 self._fixture_teardown()29 ms62.6%
TestCase._fixture_teardowndjango/test/testcases.py:149820 ms43.1%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:49520 ms43.1%
CursorWrapper.executedjango/db/backends/utils.py:7920 ms43.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9220 ms43.1%
CursorWrapper._executedjango/db/backends/utils.py:10320 ms43.1%
Cursor.executepsycopg/cursor.py:11320 ms43.1%
Connection.waitpsycopg/connection.py:49520 ms43.1%
BaseCursor._execute_genpsycopg/_cursor_base.py:20618 ms39.1%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:28618 ms39.1%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:7818 ms39.1%
TestCase._fixture_teardowndjango/test/testcases.py:15009 ms19.6%
TestCase._rollback_atomicsdjango/test/testcases.py:14089 ms19.6%
Atomic.__exit__django/db/transaction.py:2955 ms11.7%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:265 ms11.7%
BaseDatabaseWrapper.savepoint_rollbackdjango/db/backends/base/base.py:4135 ms11.7%
BaseDatabaseWrapper._savepoint_rollbackdjango/db/backends/base/base.py:3715 ms11.7%
CursorWrapper.executedjango/db/backends/utils.py:795 ms11.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:925 ms11.7%
CursorWrapper._executedjango/db/backends/utils.py:1035 ms11.7%
Cursor.executepsycopg/cursor.py:1135 ms11.7%
Connection.waitpsycopg/connection.py:4955 ms11.7%
BaseCursor._execute_genpsycopg/_cursor_base.py:2065 ms11.7%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2865 ms11.7%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:785 ms11.7%
Atomic.__exit__django/db/transaction.py:2984 ms7.8%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:264 ms7.8%
BaseDatabaseWrapper.savepoint_commitdjango/db/backends/base/base.py:4314 ms7.8%
BaseDatabaseWrapper._savepoint_commitdjango/db/backends/base/base.py:3754 ms7.8%
CursorWrapper.executedjango/db/backends/utils.py:794 ms7.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:924 ms7.8%
CursorWrapper._executedjango/db/backends/utils.py:1034 ms7.8%
Cursor.executepsycopg/cursor.py:1134 ms7.8%
Connection.waitpsycopg/connection.py:4954 ms7.8%
BaseCursor._execute_genpsycopg/_cursor_base.py:2064 ms7.8%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2864 ms7.8%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:784 ms7.8%
TestDeleteStarterPack.test_not_logged_instarter_packs/tests.py:328 response = self.client.get(reverse("delete_starter_pack", args=[self.starter_pack.slug]))14 ms31.3%
Client.getdjango/test/client.py:113314 ms31.3%
RequestFactory.getdjango/test/client.py:47514 ms31.3%
RequestFactory.genericdjango/test/client.py:67114 ms31.3%
Client.requestdjango/test/client.py:109114 ms31.3%
ClientHandler.__call__django/test/client.py:17314 ms31.3%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6314 ms31.3%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10414 ms31.3%
WhiteNoise.add_fileswhitenoise/base.py:10814 ms31.3%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1159 ms19.6%
scantreewhitenoise/base.py:2717 ms15.7%
scantreewhitenoise/base.py:2717 ms15.7%
scantreewhitenoise/base.py:2734 ms7.8%
scantreewhitenoise/base.py:2714 ms7.8%
scantreewhitenoise/base.py:2714 ms7.8%
scantreewhitenoise/base.py:2732 ms3.9%
scantreewhitenoise/base.py:2712 ms3.9%
scantreewhitenoise/base.py:2732 ms3.9%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1205 ms11.7%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:1315 ms11.7%
WhiteNoise.get_static_filewhitenoise/base.py:2142 ms3.9%
WhiteNoise.get_static_filewhitenoise/base.py:2172 ms3.9%
StaticFile.__init__whitenoise/responders.py:772 ms3.9%
StaticFile.get_alternativeswhitenoise/responders.py:2032 ms3.9%
Headers.__setitem__<stdlib>/wsgiref/headers.py:622 ms3.9%
Estimated from 25 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

starter_packs/tests.py:328
response = self.client.get(reverse("delete_starter_pack", args=[self.starter_pack.slug]))
TestDeleteStarterPack.test_not_logged_in · Libraries
14 ms

Fixtures

Exact setup time
_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
_live_server_helper function 0.03 ms
_django_clear_site_cache function 0.02 ms
monkeypatch function 0.02 ms

Database

7 queries · 2 ms
No repeated queries.

Biggest pieces of work

call _post_teardown
django/test/testcases.py:1243
29 ms
call test body
starter_packs/tests.py:328
14 ms
call pytest internals 2 ms

Reliability

14 results · 0 CI failures · 0 local failures

This test hasn't failed recently.

History

Latest 14 results, oldest first in the strip
When Environment Outcome Duration Commit
2 weeks ago CI github-actions:test passed 46 ms 28600ed main Profile
2 weeks, 5 days ago CI github-actions:test passed 84 ms 600b717 main Profile
2 weeks, 6 days ago CI github-actions:test passed 121 ms c28a326 main Profile
3 weeks ago CI github-actions:test passed 49 ms 9b8826a main Profile
3 weeks ago CI github-actions:test passed 108 ms 4f01055 main Profile
1 month ago CI github-actions:test passed 143 ms 8ab642e main Profile
1 month ago CI github-actions:test passed 65 ms 9b75244 main Profile
1 month ago CI github-actions:test passed 89 ms 9603516 main Profile
1 month, 1 week ago CI github-actions:test passed 93 ms 615a272 main Profile
1 month, 1 week ago CI github-actions:test passed 69 ms d923a46 main Profile
1 month, 1 week ago CI github-actions:test passed 177 ms 82997f8 main Profile
1 month, 1 week ago CI github-actions:test passed 92 ms 623aa3e main Profile
1 month, 1 week ago CI github-actions:test passed 242 ms ab6465a main Profile
1 month, 1 week ago CI github-actions:test passed 204 ms 0c23747 main Run