Tests / starter_packs/tests.py
TestEditStarterPack::test_edit_starter_pack_languages
First seen 3 weeks ago in 0c23747
CI
github-actions:test
11 runs
Average
160 ms
median 151 ms
max 285 ms
max 285 ms
Phases
Setup 6 ms
Call 154 ms
Teardown 0.47 ms
Categories
Database 52 ms
Other (Libraries, pytest, Deep copies, Unsampled) 108 ms
27 database queries per run
Needs 638 KB of memory (max 1 MB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 7 hours ago ·
open run
call284 ms99.6%
TestEditStarterPack.test_edit_starter_pack_languagesstarter_packs/tests.py:234 self.client.post(228 ms80.0%
Client.postdjango/test/client.py:1162228 ms80.0%
RequestFactory.postdjango/test/client.py:499228 ms80.0%
RequestFactory.genericdjango/test/client.py:671228 ms80.0%
Client.requestdjango/test/client.py:1091228 ms80.0%
ClientHandler.__call__django/test/client.py:173228 ms80.0%
BaseHandler.load_middlewaredjango/core/handlers/base.py:63228 ms80.0%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:104228 ms80.0%
WhiteNoise.add_fileswhitenoise/base.py:108228 ms80.0%
WhiteNoise.update_files_dictionarywhitenoise/base.py:120221 ms77.7%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:131221 ms77.7%
WhiteNoise.get_static_filewhitenoise/base.py:217219 ms76.8%
StaticFile.__init__whitenoise/responders.py:72214 ms74.9%
StaticFile.get_file_statswhitenoise/responders.py:161214 ms74.9%
__init____init__:-1212 ms74.4%
FileEntry.__init__whitenoise/responders.py:263212 ms74.4%
FileEntry.stat_regular_filewhitenoise/responders.py:276212 ms74.4%
<GC>~212 ms74.4%
StaticFile.__init__whitenoise/responders.py:734 ms1.4%
1 smaller frames hidden
2 smaller frames hidden
WhiteNoise.update_files_dictionarywhitenoise/base.py:1157 ms2.3%
scantreewhitenoise/base.py:2733 ms0.9%
2 smaller frames hidden
TransactionTestCase._post_teardowndjango/test/testcases.py:1243 self._fixture_teardown()46 ms16.3%
TestCase._fixture_teardowndjango/test/testcases.py:149846 ms16.3%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:49546 ms16.3%
CursorWrapper.executedjango/db/backends/utils.py:7946 ms16.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9246 ms16.3%
CursorWrapper._executedjango/db/backends/utils.py:10346 ms16.3%
Cursor.executepsycopg/cursor.py:11346 ms16.3%
Connection.waitpsycopg/connection.py:49546 ms16.3%
BaseCursor._execute_genpsycopg/_cursor_base.py:20646 ms16.3%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:28646 ms16.3%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:7846 ms16.3%
TestEditStarterPack.test_edit_starter_pack_languagesstarter_packs/tests.py:233 self.client.force_login(self.user)8 ms2.8%
ClientMixin.force_logindjango/test/client.py:8588 ms2.8%
ClientMixin._logindjango/test/client.py:8894 ms1.4%
logindjango/contrib/auth/__init__.py:1893 ms0.9%
1 smaller frames hidden
ClientMixin._logindjango/test/client.py:8843 ms0.9%
ClientMixin.sessiondjango/test/client.py:8153 ms0.9%
SessionStore.savedjango/contrib/sessions/backends/db.py:1213 ms0.9%
1 smaller frames hidden
1 smaller frames hidden
teardown0.33 ms0.1%
Estimated from 217 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
starter_packs/tests.py:234
self.client.post(
TestEditStarterPack.test_edit_starter_pack_languages
· Libraries
|
228 ms |
|
starter_packs/tests.py:233
self.client.force_login(self.user)
TestEditStarterPack.test_edit_starter_pack_languages
· Database
|
8 ms |
|
starter_packs/tests.py:235
reverse("edit_starter_pack", args=[self.starter_pack.slug]),
TestEditStarterPack.test_edit_starter_pack_languages
· Deep copies
|
1 ms |
Fixtures
Exact setup time| _template_string_if_invalid_marker function | 0.13 ms |
| _dj_autoclear_mailbox function | 0.05 ms |
| _django_db_marker function | 0.04 ms |
| _django_isolate_apps function | 0.04 ms |
| _live_server_helper function | 0.04 ms |
| _django_set_urlconf function | 0.04 ms |
| _django_clear_site_cache function | 0.03 ms |
| monkeypatch function | 0.02 ms |
Database
26 queries · 26 msNo repeated queries.
Biggest pieces of work
|
call test body
starter_packs/tests.py:234
|
237 ms |
|
call _post_teardown
django/test/testcases.py:1243
|
46 ms |
| teardown pytest internals | 0.33 ms |
Reliability
12 results · 0 CI failures · 0 local failuresThis test hasn't failed recently.
History
Latest 12 results, oldest first in the strip| When | Environment | Outcome | Duration | |
|---|---|---|---|---|
| 7 hours ago | CI github-actions:test | passed | 285 ms | Profile |
| 16 hours ago | CI github-actions:test | passed | 86 ms | Profile |
| 22 hours ago | CI github-actions:test | passed | 181 ms | Profile |
| 1 week, 5 days ago | CI github-actions:test | passed | 148 ms | Profile |
| 2 weeks, 2 days ago | CI github-actions:test | passed | 92 ms | Profile |
| 2 weeks, 2 days ago | CI github-actions:test | passed | 151 ms | Profile |
| 2 weeks, 4 days ago | CI github-actions:test | passed | 95 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 69 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 210 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 206 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 241 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 100 ms | Run |