Tests / starter_packs/tests.py
TestCreateStarterPack::test_create_starter_pack_defaults_to_no_languages
First seen 3 weeks ago in 0c23747
CI
github-actions:test
11 runs
Average
133 ms
median 95 ms
max 284 ms
max 284 ms
Phases
Setup 2 ms
Call 131 ms
Teardown 0.43 ms
Categories
Database 43 ms
Other (Libraries, pytest, Unsampled, Deep copies) 90 ms
29 database queries per run
Needs 615 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
call104 ms98.6%
TransactionTestCase._post_teardowndjango/test/testcases.py:1243 self._fixture_teardown()58 ms54.8%
TestCase._fixture_teardowndjango/test/testcases.py:150046 ms43.8%
TestCase._rollback_atomicsdjango/test/testcases.py:140846 ms43.8%
Atomic.__exit__django/db/transaction.py:29523 ms21.9%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2623 ms21.9%
BaseDatabaseWrapper.savepoint_rollbackdjango/db/backends/base/base.py:41323 ms21.9%
BaseDatabaseWrapper._savepoint_rollbackdjango/db/backends/base/base.py:37123 ms21.9%
CursorWrapper.executedjango/db/backends/utils.py:7923 ms21.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9223 ms21.9%
CursorWrapper._executedjango/db/backends/utils.py:10323 ms21.9%
Cursor.executepsycopg/cursor.py:11323 ms21.9%
Connection.waitpsycopg/connection.py:49523 ms21.9%
BaseCursor._execute_genpsycopg/_cursor_base.py:20623 ms21.9%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:28623 ms21.9%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:7823 ms21.9%
Atomic.__exit__django/db/transaction.py:29823 ms21.9%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2623 ms21.9%
BaseDatabaseWrapper.savepoint_commitdjango/db/backends/base/base.py:43123 ms21.9%
BaseDatabaseWrapper._savepoint_commitdjango/db/backends/base/base.py:37523 ms21.9%
CursorWrapper.executedjango/db/backends/utils.py:7923 ms21.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9223 ms21.9%
CursorWrapper._executedjango/db/backends/utils.py:10323 ms21.9%
Cursor.executepsycopg/cursor.py:11323 ms21.9%
Connection.waitpsycopg/connection.py:49523 ms21.9%
BaseCursor._execute_genpsycopg/_cursor_base.py:20623 ms21.9%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:28623 ms21.9%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:7823 ms21.9%
TestCase._fixture_teardowndjango/test/testcases.py:149812 ms11.0%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:49612 ms11.0%
CursorWrapper.executedjango/db/backends/utils.py:7912 ms11.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9212 ms11.0%
CursorWrapper._executedjango/db/backends/utils.py:10312 ms11.0%
Cursor.executepsycopg/cursor.py:11312 ms11.0%
Connection.waitpsycopg/connection.py:49512 ms11.0%
BaseCursor._execute_genpsycopg/_cursor_base.py:20612 ms11.0%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:28612 ms11.0%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:7812 ms11.0%
TestCreateStarterPack.test_create_starter_pack_defaults_to_no_languagesstarter_packs/tests.py:145 self.client.post(23 ms21.9%
Client.postdjango/test/client.py:116223 ms21.9%
RequestFactory.postdjango/test/client.py:49923 ms21.9%
RequestFactory.genericdjango/test/client.py:67123 ms21.9%
Client.requestdjango/test/client.py:109123 ms21.9%
ClientHandler.__call__django/test/client.py:17323 ms21.9%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6323 ms21.9%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10423 ms21.9%
WhiteNoise.add_fileswhitenoise/base.py:10823 ms21.9%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12023 ms21.9%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13123 ms21.9%
WhiteNoise.get_static_filewhitenoise/base.py:21723 ms21.9%
StaticFile.__init__whitenoise/responders.py:7323 ms21.9%
StaticFile.get_headerswhitenoise/responders.py:16712 ms11.0%
StaticFile.get_headerswhitenoise/responders.py:17612 ms11.0%
formatdate<stdlib>/email/utils.py:26612 ms11.0%
format_datetime<stdlib>/email/utils.py:28412 ms11.0%
teardown0.43 ms0.4%
Estimated from 13 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
starter_packs/tests.py:145
self.client.post(
TestCreateStarterPack.test_create_starter_pack_defaults_to_no_languages
· Libraries
|
23 ms |
Fixtures
Exact setup time| _template_string_if_invalid_marker function | 0.06 ms |
| _dj_autoclear_mailbox function | 0.05 ms |
| _django_db_marker function | 0.05 ms |
| _django_isolate_apps function | 0.05 ms |
| _live_server_helper function | 0.05 ms |
| _django_set_urlconf function | 0.05 ms |
| _django_clear_site_cache function | 0.03 ms |
| monkeypatch function | 0.03 ms |
Database
29 queries · 11 msNo repeated queries.
Biggest pieces of work
|
call _post_teardown
django/test/testcases.py:1243
|
58 ms |
|
call test body
starter_packs/tests.py:145
|
23 ms |
| call pytest internals | 23 ms |
| teardown pytest internals | 0.43 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 | 106 ms | Profile |
| 16 hours ago | CI github-actions:test | passed | 56 ms | Profile |
| 22 hours ago | CI github-actions:test | passed | 134 ms | Profile |
| 1 week, 5 days ago | CI github-actions:test | passed | 95 ms | Profile |
| 2 weeks, 2 days ago | CI github-actions:test | passed | 87 ms | Profile |
| 2 weeks, 2 days ago | CI github-actions:test | passed | 92 ms | Profile |
| 2 weeks, 4 days ago | CI github-actions:test | passed | 92 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 83 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 247 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 284 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 187 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 94 ms | Run |