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

TestCreateStarterPack::test_form_error

First seen 1 year, 11 months ago in 1b5db0c
CI github-actions:test 11 runs
Average
179 ms
median 156 ms
max 293 ms
Phases
Setup 2 ms Call 173 ms Teardown 4 ms
Categories
Database 33 ms Other (Libraries, Templates, pytest, Unsampled, ...) 146 ms

25 database queries per run

Needs 460 KB of memory (max 940 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 7 hours ago · open run
Show pytest frames
setup1 ms0.3%
call281 ms97.5%
TestCreateStarterPack.test_form_errorstarter_packs/tests.py:125 response = self.client.post(reverse("create_starter_pack"), {})265 ms91.9%
Client.postdjango/test/client.py:1162265 ms91.9%
RequestFactory.postdjango/test/client.py:499265 ms91.9%
RequestFactory.genericdjango/test/client.py:671265 ms91.9%
Client.requestdjango/test/client.py:1091265 ms91.9%
ClientHandler.__call__django/test/client.py:173265 ms91.9%
BaseHandler.load_middlewaredjango/core/handlers/base.py:63265 ms91.9%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:104265 ms91.9%
WhiteNoise.add_fileswhitenoise/base.py:108265 ms91.9%
WhiteNoise.update_files_dictionarywhitenoise/base.py:120260 ms90.0%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:131260 ms90.0%
WhiteNoise.get_static_filewhitenoise/base.py:217258 ms89.6%
StaticFile.__init__whitenoise/responders.py:72253 ms87.7%
StaticFile.get_file_statswhitenoise/responders.py:163253 ms87.7%
<GC>~253 ms87.7%
3 smaller frames hidden
1 smaller frames hidden
WhiteNoise.update_files_dictionarywhitenoise/base.py:1155 ms1.9%
scantreewhitenoise/base.py:2714 ms1.4%
scantreewhitenoise/base.py:2713 ms0.9%
1 smaller frames hidden
1 smaller frames hidden
TestCreateStarterPack.test_form_errorstarter_packs/tests.py:124 self.client.force_login(self.user)15 ms5.1%
ClientMixin.force_logindjango/test/client.py:85815 ms5.1%
ClientMixin._logindjango/test/client.py:88912 ms4.2%
logindjango/contrib/auth/__init__.py:1899 ms3.3%
SessionBase.cycle_keydjango/contrib/sessions/backends/base.py:4407 ms2.3%
SessionStore.deletedjango/contrib/sessions/backends/db.py:1757 ms2.3%
Model.deletedjango/db/models/base.py:13315 ms1.9%
Collector.deletedjango/db/models/deletion.py:4835 ms1.9%
DeleteQuery.delete_batchdjango/db/models/sql/subqueries.py:435 ms1.9%
DeleteQuery.do_querydjango/db/models/sql/subqueries.py:255 ms1.9%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16255 ms1.9%
CursorWrapper.executedjango/db/backends/utils.py:795 ms1.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:925 ms1.9%
CursorWrapper._executedjango/db/backends/utils.py:1055 ms1.9%
Cursor.executepsycopg/cursor.py:1135 ms1.9%
Connection.waitpsycopg/connection.py:4955 ms1.9%
BaseCursor._execute_genpsycopg/_cursor_base.py:2065 ms1.9%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2865 ms1.9%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:785 ms1.9%
1 smaller frames hidden
SessionBase.cycle_keydjango/contrib/sessions/backends/base.py:4373 ms0.9%
2 smaller frames hidden
2 smaller frames hidden
1 smaller frames hidden
Estimated from 210 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

starter_packs/tests.py:125
response = self.client.post(reverse("create_starter_pack"), {})
TestCreateStarterPack.test_form_error · Libraries
265 ms
starter_packs/tests.py:124
self.client.force_login(self.user)
TestCreateStarterPack.test_form_error · Database
15 ms

Fixtures

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

Database

25 queries · 13 ms
No repeated queries.

Biggest pieces of work

call test body
starter_packs/tests.py:125
280 ms
call _pre_setup
django/test/testcases.py:1167
1 ms
setup __init__
__init__:-1
1 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
7 hours ago CI github-actions:test passed 289 ms c28a326 main Profile
16 hours ago CI github-actions:test passed 292 ms 9b8826a main Profile
22 hours ago CI github-actions:test passed 156 ms 4f01055 main Profile
1 week, 5 days ago CI github-actions:test passed 120 ms 8ab642e main Profile
2 weeks, 2 days ago CI github-actions:test passed 70 ms 9b75244 main Profile
2 weeks, 2 days ago CI github-actions:test passed 117 ms 9603516 main Profile
2 weeks, 4 days ago CI github-actions:test passed 85 ms 615a272 main Profile
3 weeks ago CI github-actions:test passed 64 ms d923a46 main Profile
3 weeks ago CI github-actions:test passed 293 ms 82997f8 main Profile
3 weeks ago CI github-actions:test passed 248 ms 623aa3e main Profile
3 weeks ago CI github-actions:test passed 240 ms ab6465a main Profile
3 weeks ago CI github-actions:test passed 98 ms 0c23747 main Run