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

TestEditStarterPack::test_not_logged_in

First seen 2 years ago in 1b5db0c
CI github-actions:test 13 runs
Average
126 ms
median 83 ms
max 311 ms
Phases
Setup 4 ms Call 122 ms Teardown 0.31 ms
Categories
Database 17 ms Factories 0.17 ms Other (Libraries, Templates, pytest, Unsampled, ...) 109 ms

7 database queries per run

Needs 411 KB of memory (max 1 MB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 2 weeks ago · open run
Show pytest frames
call57 ms98.4%
TransactionTestCase._post_teardowndjango/test/testcases.py:1243 self._fixture_teardown()28 ms49.2%
TestCase._fixture_teardowndjango/test/testcases.py:149727 ms47.5%
TestCase._should_check_constraintsdjango/test/testcases.py:150627 ms47.5%
DatabaseWrapper.is_usabledjango/db/backends/postgresql/base.py:50427 ms47.5%
Cursor.executepsycopg/cursor.py:11327 ms47.5%
Connection.waitpsycopg/connection.py:49527 ms47.5%
BaseCursor._execute_genpsycopg/_cursor_base.py:20627 ms47.5%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:28627 ms47.5%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:7827 ms47.5%
TestCase._fixture_teardowndjango/test/testcases.py:15000.98 ms1.7%
TestCase._rollback_atomicsdjango/test/testcases.py:14080.98 ms1.7%
Atomic.__exit__django/db/transaction.py:2980.98 ms1.7%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:260.98 ms1.7%
BaseDatabaseWrapper.savepoint_commitdjango/db/backends/base/base.py:4310.98 ms1.7%
BaseDatabaseWrapper._savepoint_commitdjango/db/backends/base/base.py:3750.98 ms1.7%
CursorWrapper.executedjango/db/backends/utils.py:790.98 ms1.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:920.98 ms1.7%
CursorWrapper._executedjango/db/backends/utils.py:1030.98 ms1.7%
Cursor.executepsycopg/cursor.py:1130.98 ms1.7%
Connection.waitpsycopg/connection.py:4950.98 ms1.7%
BaseCursor._execute_genpsycopg/_cursor_base.py:2060.98 ms1.7%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2860.98 ms1.7%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:780.98 ms1.7%
TestEditStarterPack.test_not_logged_instarter_packs/tests.py:192 response = self.client.get(reverse("edit_starter_pack", args=[self.starter_pack.slug]))27 ms47.5%
Client.getdjango/test/client.py:113327 ms47.5%
RequestFactory.getdjango/test/client.py:47527 ms47.5%
RequestFactory.genericdjango/test/client.py:67127 ms47.5%
Client.requestdjango/test/client.py:109127 ms47.5%
ClientHandler.__call__django/test/client.py:17327 ms47.5%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6327 ms47.5%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10427 ms47.5%
WhiteNoise.add_fileswhitenoise/base.py:10827 ms47.5%
WhiteNoise.update_files_dictionarywhitenoise/base.py:11519 ms32.2%
scantreewhitenoise/base.py:27118 ms30.5%
scantreewhitenoise/base.py:27118 ms30.5%
scantreewhitenoise/base.py:2719 ms15.3%
scantreewhitenoise/base.py:2719 ms15.3%
scantreewhitenoise/base.py:2717 ms11.9%
scantreewhitenoise/base.py:2734 ms6.8%
scantreewhitenoise/base.py:2692 ms3.4%
scantreewhitenoise/base.py:2700.98 ms1.7%
scantreewhitenoise/base.py:2730.98 ms1.7%
scantreewhitenoise/base.py:2737 ms11.9%
scantreewhitenoise/base.py:2690.98 ms1.7%
scantreewhitenoise/base.py:2690.98 ms1.7%
scantreewhitenoise/base.py:2690.98 ms1.7%
scantreewhitenoise/base.py:2690.98 ms1.7%
scantreewhitenoise/base.py:2700.98 ms1.7%
scantreewhitenoise/base.py:2730.98 ms1.7%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1209 ms15.3%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:1319 ms15.3%
WhiteNoise.get_static_filewhitenoise/base.py:2178 ms13.6%
StaticFile.__init__whitenoise/responders.py:735 ms8.5%
StaticFile.get_headerswhitenoise/responders.py:1762 ms3.4%
Headers.__setitem__<stdlib>/wsgiref/headers.py:640.98 ms1.7%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:500.98 ms1.7%
StaticFile.get_headerswhitenoise/responders.py:1780.98 ms1.7%
Headers.__getitem__<stdlib>/wsgiref/headers.py:830.98 ms1.7%
StaticFile.get_headerswhitenoise/responders.py:1700.98 ms1.7%
StaticFile.get_headerswhitenoise/responders.py:1670.98 ms1.7%
StaticFile.__init__whitenoise/responders.py:773 ms5.1%
StaticFile.get_alternativeswhitenoise/responders.py:2032 ms3.4%
Headers.__setitem__<stdlib>/wsgiref/headers.py:600.98 ms1.7%
<GC>~0.98 ms1.7%
StaticFile.get_alternativeswhitenoise/responders.py:1980.98 ms1.7%
WhiteNoise.get_static_filewhitenoise/base.py:2120.98 ms1.7%
WhiteNoise.add_cache_headerswhitenoise/base.py:2330.98 ms1.7%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1760.98 ms1.7%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1970.98 ms1.7%
URLMixin.urldebug_toolbar/panels/staticfiles.py:200.98 ms1.7%
Estimated from 58 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

starter_packs/tests.py:192
response = self.client.get(reverse("edit_starter_pack", args=[self.starter_pack.slug]))
TestEditStarterPack.test_not_logged_in · Libraries
27 ms

Fixtures

Exact setup time
_dj_autoclear_mailbox function 0.05 ms
_django_db_marker function 0.03 ms
_template_string_if_invalid_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 · 3 ms
No repeated queries.

Biggest pieces of work

call _post_teardown
django/test/testcases.py:1243
28 ms
call test body
starter_packs/tests.py:192
27 ms
call pytest internals 0.98 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 58 ms 28600ed main Profile
2 weeks, 5 days ago CI github-actions:test passed 304 ms 600b717 main Profile
2 weeks, 6 days ago CI github-actions:test passed 83 ms c28a326 main Profile
3 weeks ago CI github-actions:test passed 64 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 311 ms 8ab642e main Profile
1 month ago CI github-actions:test passed 66 ms 9b75244 main Profile
1 month ago CI github-actions:test passed 78 ms 9603516 main Profile
1 month, 1 week ago CI github-actions:test passed 66 ms 615a272 main Profile
1 month, 1 week ago CI github-actions:test passed 68 ms d923a46 main Profile
1 month, 1 week ago CI github-actions:test passed 150 ms 82997f8 main Profile
1 month, 1 week ago CI github-actions:test passed 109 ms 623aa3e main Profile
1 month, 1 week ago CI github-actions:test passed 179 ms ab6465a main Profile
1 month, 1 week ago CI github-actions:test passed 73 ms 0c23747 main Run