Tests / starter_packs/tests.py
TestParseHandle::test_valid_handles
First seen 15 hours ago in 0c23747
CI
github-actions:test
4 runs
Average
27 ms
median 26 ms
max 52 ms
max 52 ms
Phases
Setup 14 ms
Call 12 ms
Teardown 1 ms
Categories
Database 17 ms
Other (pytest, Imports, Unsampled) 11 ms
5 database queries per run
Needs 1 KB of memory (max 4 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 10 hours ago ·
open run
setup0.99 ms18.6%
CallInfo.from_call_pytest/runner.py:3610.99 ms18.6%
call_and_report.<locals>.<lambda>_pytest/runner.py:2500.99 ms18.6%
HookCaller.__call__pluggy/_hooks.py:5120.99 ms18.6%
PluginManager._hookexecpluggy/_manager.py:1200.99 ms18.6%
_multicallpluggy/_callers.py:1210.99 ms18.6%
pytest_runtest_setup_pytest/runner.py:1700.99 ms18.6%
SetupState.setup_pytest/runner.py:5360.99 ms18.6%
TestCaseFunction.setup_pytest/unittest.py:2480.99 ms18.6%
Function.setup_pytest/python.py:17100.99 ms18.6%
TopRequest._fillfixtures_pytest/fixtures.py:8060.99 ms18.6%
FixtureRequest.getfixturevalue_pytest/fixtures.py:6300.99 ms18.6%
call3 ms64.5%
CallInfo.from_call_pytest/runner.py:3613 ms64.5%
call_and_report.<locals>.<lambda>_pytest/runner.py:2503 ms64.5%
HookCaller.__call__pluggy/_hooks.py:5123 ms64.5%
PluginManager._hookexecpluggy/_manager.py:1203 ms64.5%
_multicallpluggy/_callers.py:1213 ms64.5%
pytest_runtest_call_pytest/runner.py:1843 ms64.5%
_django_setup_unittest.<locals>.non_debugging_runtestpytest_django/plugin.py:6143 ms64.5%
SimpleTestCase.__call__django/test/testcases.py:3143 ms64.5%
SimpleTestCase._setup_and_calldjango/test/testcases.py:3722 ms43.0%
TransactionTestCase._post_teardowndjango/test/testcases.py:1243 self._fixture_teardown()2 ms43.0%
TestCase._fixture_teardowndjango/test/testcases.py:14981 ms21.5%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4961 ms21.5%
CursorWrapper.executedjango/db/backends/utils.py:791 ms21.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms21.5%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1001 ms21.5%
CursorWrapper._executedjango/db/backends/utils.py:1031 ms21.5%
Cursor.executepsycopg/cursor.py:1131 ms21.5%
TestCase._fixture_teardowndjango/test/testcases.py:15001 ms21.5%
TestCase._rollback_atomicsdjango/test/testcases.py:14081 ms21.5%
Atomic.__exit__django/db/transaction.py:2981 ms21.5%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:261 ms21.5%
BaseDatabaseWrapper.savepoint_commitdjango/db/backends/base/base.py:4311 ms21.5%
BaseDatabaseWrapper._savepoint_commitdjango/db/backends/base/base.py:3751 ms21.5%
CursorWrapper.executedjango/db/backends/utils.py:791 ms21.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms21.5%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1001 ms21.5%
CursorWrapper._executedjango/db/backends/utils.py:1031 ms21.5%
Cursor.executepsycopg/cursor.py:1131 ms21.5%
Connection.waitpsycopg/connection.py:4951 ms21.5%
BaseCursor._execute_genpsycopg/_cursor_base.py:2061 ms21.5%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2861 ms21.5%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:781 ms21.5%
SimpleTestCase._setup_and_calldjango/test/testcases.py:3691 ms21.5%
TestCase.__call__<stdlib>/unittest/case.py:7471 ms21.5%
TestCase.run<stdlib>/unittest/case.py:6911 ms21.5%
TestCase._callTestMethod<stdlib>/unittest/case.py:6371 ms21.5%
TestParseHandle.test_valid_handlesstarter_packs/tests.py:1157 with self.subTest(raw=raw):1 ms21.5%
_GeneratorContextManager.__exit__<stdlib>/contextlib.py:2101 ms21.5%
TestCase.subTest<stdlib>/unittest/case.py:5861 ms21.5%
_GeneratorContextManager.__exit__<stdlib>/contextlib.py:2101 ms21.5%
_Outcome.testPartExecutor<stdlib>/unittest/case.py:811 ms21.5%
TestCaseFunction.addSubTest_pytest/unittest.py:4631 ms21.5%
HookCaller.__call__pluggy/_hooks.py:5121 ms21.5%
PluginManager._hookexecpluggy/_manager.py:1201 ms21.5%
_multicallpluggy/_callers.py:1211 ms21.5%
WorkerInteractor.pytest_runtest_logreportxdist/remote.py:2891 ms21.5%
WorkerInteractor.sendeventxdist/remote.py:1261 ms21.5%
Channel.sendexecnet/gateway_base.py:9121 ms21.5%
dumps_internalexecnet/gateway_base.py:16291 ms21.5%
_Serializer.saveexecnet/gateway_base.py:16471 ms21.5%
_Serializer._saveexecnet/gateway_base.py:16671 ms21.5%
_Serializer.save_tupleexecnet/gateway_base.py:17441 ms21.5%
_Serializer._saveexecnet/gateway_base.py:16671 ms21.5%
_Serializer.save_dictexecnet/gateway_base.py:17401 ms21.5%
_Serializer._write_setitemexecnet/gateway_base.py:17341 ms21.5%
_Serializer._saveexecnet/gateway_base.py:16671 ms21.5%
_Serializer.save_dictexecnet/gateway_base.py:17401 ms21.5%
_Serializer._write_setitemexecnet/gateway_base.py:17331 ms21.5%
_Serializer._saveexecnet/gateway_base.py:16671 ms21.5%
_Serializer.save_strexecnet/gateway_base.py:16841 ms21.5%
_Serializer._write_unicode_stringexecnet/gateway_base.py:16911 ms21.5%
_Serializer._write_byte_sequenceexecnet/gateway_base.py:16941 ms21.5%
teardown0.90 ms16.8%
CallInfo.from_call_pytest/runner.py:3610.90 ms16.8%
call_and_report.<locals>.<lambda>_pytest/runner.py:2500.90 ms16.8%
HookCaller.__call__pluggy/_hooks.py:5120.90 ms16.8%
PluginManager._hookexecpluggy/_manager.py:1200.90 ms16.8%
_multicallpluggy/_callers.py:1210.90 ms16.8%
pytest_runtest_teardown_pytest/runner.py:1990.90 ms16.8%
SetupState.teardown_exact_pytest/runner.py:5680.90 ms16.8%
FixtureDef.finish_pytest/fixtures.py:11560.90 ms16.8%
_teardown_yield_fixture_pytest/fixtures.py:10140.90 ms16.8%
UnitTestCase._register_unittest_setup_class_fixture.<locals>.unittest_setup_class_fixture_pytest/unittest.py:1690.90 ms16.8%
TestCase.tearDownClassdjango/test/testcases.py:1458 conn.close()0.90 ms16.8%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:260.90 ms16.8%
BaseDatabaseWrapper.closedjango/db/backends/base/base.py:3550.90 ms16.8%
DatabaseWrapper._closedjango/db/backends/postgresql/base.py:4080.90 ms16.8%
Connection.closepsycopg/connection.py:2010.90 ms16.8%
Estimated from 6 samples; phase durations are exact. Frames from pytest and pluggy are
shown
.
Hot lines in your code
|
starter_packs/tests.py:1157
with self.subTest(raw=raw):
TestParseHandle.test_valid_handles
· pytest
|
1 ms |
Fixtures
Exact setup time| _django_set_urlconf function | 0.04 ms |
| _template_string_if_invalid_marker function | 0.04 ms |
| _dj_autoclear_mailbox function | 0.03 ms |
| _django_db_marker function | 0.03 ms |
| _django_isolate_apps 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
5 queries · 1 msNo repeated queries.
Biggest pieces of work
|
call _post_teardown
django/test/testcases.py:1243
|
2 ms |
|
call test body
starter_packs/tests.py:1157
|
1 ms |
| setup pytest internals | 0.99 ms |
|
teardown tearDownClass
django/test/testcases.py:1458
|
0.90 ms |
Reliability
5 results · 0 CI failures · 0 local failuresThis test hasn't failed recently.
History
Latest 5 results, oldest first in the strip| When | Environment | Outcome | Duration | |
|---|---|---|---|---|
| 10 hours ago | CI github-actions:test | passed | 5 ms | Profile |
| 10 hours ago | CI github-actions:test | passed | 52 ms | Profile |
| 10 hours ago | CI github-actions:test | passed | 18 ms | Profile |
| 15 hours ago | CI github-actions:test | passed | 34 ms | Profile |
| 15 hours ago | CI github-actions:test | passed | 4 ms | Run |