Tests / starter_packs/tests.py
TestParseHandle::test_invalid_handles
First seen 3 weeks ago in 0c23747
CI
github-actions:test
11 runs
Average
23 ms
median 20 ms
max 34 ms
max 34 ms
Phases
Setup 16 ms
Call 6 ms
Teardown 1 ms
Categories
Database 19 ms
Other (pytest, Libraries, Unsampled) 4 ms
5 database queries per run
Needs 1 KB of memory (max 8 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 7 hours ago ·
open run
setup17 ms70.9%
TestCase.setUpClassdjango/test/testcases.py:1426 cls.cls_atomics = cls._enter_atomics()17 ms70.9%
TestCase._enter_atomicsdjango/test/testcases.py:139917 ms70.9%
Atomic.__enter__django/db/transaction.py:21017 ms70.9%
BaseDatabaseWrapper.get_autocommitdjango/db/backends/base/base.py:45417 ms70.9%
SimpleTestCase.ensure_connection_patch_method.<locals>.patched_ensure_connectiondjango/test/testcases.py:30417 ms70.9%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2617 ms70.9%
BaseDatabaseWrapper.ensure_connectiondjango/db/backends/base/base.py:27917 ms70.9%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2617 ms70.9%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:25617 ms70.9%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2617 ms70.9%
DatabaseWrapper.get_new_connectiondjango/db/backends/postgresql/base.py:34517 ms70.9%
Connection.connectpsycopg/connection.py:10917 ms70.9%
wait_connpsycopg/waiting.py:1419 ms37.5%
EpollSelector.select<stdlib>/selectors.py:4529 ms37.5%
wait_connpsycopg/waiting.py:1458 ms33.3%
BaseConnection._connect_genpsycopg/_connection_base.py:4398 ms33.3%
call7 ms28.0%
TransactionTestCase._post_teardowndjango/test/testcases.py:1243 self._fixture_teardown()3 ms14.0%
TestCase._fixture_teardowndjango/test/testcases.py:14973 ms14.0%
TestCase._should_check_constraintsdjango/test/testcases.py:15063 ms14.0%
DatabaseWrapper.is_usabledjango/db/backends/postgresql/base.py:5043 ms14.0%
Cursor.executepsycopg/cursor.py:1133 ms14.0%
Connection.waitpsycopg/connection.py:4953 ms14.0%
BaseCursor._execute_genpsycopg/_cursor_base.py:2063 ms14.0%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2863 ms14.0%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:783 ms14.0%
TransactionTestCase._pre_setupdjango/test/testcases.py:1167 cls._fixture_setup()2 ms7.0%
TestCase._fixture_setupdjango/test/testcases.py:14812 ms7.0%
TestCase._enter_atomicsdjango/test/testcases.py:13992 ms7.0%
Atomic.__enter__django/db/transaction.py:2232 ms7.0%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms7.0%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4002 ms7.0%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3672 ms7.0%
CursorWrapper.executedjango/db/backends/utils.py:792 ms7.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms7.0%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms7.0%
Cursor.executepsycopg/cursor.py:1132 ms7.0%
Connection.waitpsycopg/connection.py:4952 ms7.0%
TestParseHandle.test_invalid_handlesstarter_packs/tests.py:1162 with self.subTest(raw=raw):2 ms7.0%
Estimated from 21 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
starter_packs/tests.py:1162
with self.subTest(raw=raw):
TestParseHandle.test_invalid_handles
· pytest
|
2 ms |
Fixtures
Exact setup time| _unittest_setUpClass_fixture_TestParseHandle class | 15 ms |
| _django_setup_unittest class | 0.34 ms |
| _dj_autoclear_mailbox function | 0.06 ms |
| _template_string_if_invalid_marker function | 0.06 ms |
| _django_isolate_apps function | 0.06 ms |
| _django_db_marker function | 0.06 ms |
| _django_set_urlconf function | 0.05 ms |
| _live_server_helper function | 0.05 ms |
| _django_clear_site_cache function | 0.03 ms |
| monkeypatch function | 0.03 ms |
Database
5 queries · 2 msNo repeated queries.
Biggest pieces of work
|
setup setUpClass
django/test/testcases.py:1426
|
17 ms |
|
call _post_teardown
django/test/testcases.py:1243
|
3 ms |
|
call _pre_setup
django/test/testcases.py:1167
|
2 ms |
|
call test body
starter_packs/tests.py:1162
|
2 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 | 24 ms | Profile |
| 16 hours ago | CI github-actions:test | passed | 15 ms | Profile |
| 22 hours ago | CI github-actions:test | passed | 20 ms | Profile |
| 1 week, 5 days ago | CI github-actions:test | passed | 26 ms | Profile |
| 2 weeks, 2 days ago | CI github-actions:test | passed | 20 ms | Profile |
| 2 weeks, 2 days ago | CI github-actions:test | passed | 20 ms | Profile |
| 2 weeks, 4 days ago | CI github-actions:test | passed | 17 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 18 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 34 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 32 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 28 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 4 ms | Run |