Tests / apps/guides/tests.py
TestContent::test_an_insight_has_one_guide
First seen 2 weeks, 2 days ago in b3fedae
CI
github-actions:test
6 runs
Average
15 ms
median 14 ms
max 22 ms
max 22 ms
Phases
Setup 9 ms
Call 5 ms
Teardown 0.15 ms
Categories
Database 11 ms
Test code 0.72 ms
App code 0.48 ms
Other (Unsampled, pytest, Libraries) 3 ms
5 database queries per run
Needs 0 KB of memory (max 0 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 16 hours ago ·
open run
setup11 ms64.2%
CallInfo.from_call_pytest/runner.py:35311 ms64.2%
call_and_report.<locals>.<lambda>_pytest/runner.py:24511 ms64.2%
HookCaller.__call__pluggy/_hooks.py:51211 ms64.2%
PluginManager._hookexecpluggy/_manager.py:12011 ms64.2%
_multicallpluggy/_callers.py:12111 ms64.2%
pytest_runtest_setup_pytest/runner.py:16511 ms64.2%
SetupState.setup_pytest/runner.py:52311 ms64.2%
TestCaseFunction.setup_pytest/unittest.py:22711 ms64.2%
Function.setup_pytest/python.py:172311 ms64.2%
TopRequest._fillfixtures_pytest/fixtures.py:70711 ms64.2%
FixtureRequest.getfixturevalue_pytest/fixtures.py:53911 ms64.2%
FixtureRequest._get_active_fixturedef_pytest/fixtures.py:62711 ms64.2%
FixtureDef.execute_pytest/fixtures.py:111011 ms64.2%
HookCaller.__call__pluggy/_hooks.py:51211 ms64.2%
PluginManager._hookexecpluggy/_manager.py:12011 ms64.2%
_multicallpluggy/_callers.py:12111 ms64.2%
pytest_fixture_setup_pytest/fixtures.py:120211 ms64.2%
call_fixture_func_pytest/fixtures.py:90811 ms64.2%
UnitTestCase._register_unittest_setup_class_fixture.<locals>.unittest_setup_class_fixture_pytest/unittest.py:15411 ms64.2%
TestCase.setUpClassdjango/test/testcases.py:1423 cls.cls_atomics = cls._enter_atomics()11 ms64.2%
TestCase._enter_atomicsdjango/test/testcases.py:139611 ms64.2%
Atomic.__enter__django/db/transaction.py:19811 ms64.2%
BaseDatabaseWrapper.get_autocommitdjango/db/backends/base/base.py:45411 ms64.2%
SimpleTestCase.ensure_connection_patch_method.<locals>.patched_ensure_connectiondjango/test/testcases.py:30311 ms64.2%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2611 ms64.2%
BaseDatabaseWrapper.ensure_connectiondjango/db/backends/base/base.py:27911 ms64.2%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2611 ms64.2%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:25610 ms57.0%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2610 ms57.0%
DatabaseWrapper.get_new_connectiondjango/db/backends/postgresql/base.py:33310 ms57.0%
Connection.connectpsycopg/connection.py:10910 ms57.0%
wait_connpsycopg/waiting.py:1458 ms49.9%
BaseConnection._connect_genpsycopg/_connection_base.py:4398 ms49.9%
wait_connpsycopg/waiting.py:1411 ms7.1%
EpollSelector.select<stdlib>/selectors.py:4521 ms7.1%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:2581 ms7.1%
DatabaseWrapper.init_connection_statedjango/db/backends/postgresql/base.py:4021 ms7.1%
DatabaseWrapper._configure_connectiondjango/db/backends/postgresql/base.py:3741 ms7.1%
DatabaseWrapper._configure_timezonedjango/db/backends/postgresql/base.py:3571 ms7.1%
Cursor.executepsycopg/cursor.py:1131 ms7.1%
Connection.waitpsycopg/connection.py:4951 ms7.1%
call6 ms34.8%
CallInfo.from_call_pytest/runner.py:3536 ms34.8%
call_and_report.<locals>.<lambda>_pytest/runner.py:2456 ms34.8%
HookCaller.__call__pluggy/_hooks.py:5126 ms34.8%
PluginManager._hookexecpluggy/_manager.py:1206 ms34.8%
_multicallpluggy/_callers.py:1216 ms34.8%
pytest_runtest_call_pytest/runner.py:1796 ms34.8%
_django_setup_unittest.<locals>.non_debugging_runtestpytest_django/plugin.py:5736 ms34.8%
SimpleTestCase.__call__django/test/testcases.py:3136 ms34.8%
SimpleTestCase._setup_and_calldjango/test/testcases.py:3683 ms17.4%
TestCase.__call__<stdlib>/unittest/case.py:7473 ms17.4%
TestCase.run<stdlib>/unittest/case.py:6913 ms17.4%
TestCase._callTestMethod<stdlib>/unittest/case.py:6373 ms17.4%
TestContent.test_an_insight_has_one_guideapps/guides/tests.py:64 explaining = [guide.slug for guide in all_guides().values() if guide.explains(insight_id)]3 ms17.4%
Guide.explainsapps/guides/content.py:81 return any(3 ms17.4%
SimpleTestCase._setup_and_calldjango/test/testcases.py:3713 ms17.4%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()3 ms17.4%
TestCase._fixture_teardowndjango/test/testcases.py:14943 ms17.4%
TestCase._should_check_constraintsdjango/test/testcases.py:15033 ms17.4%
DatabaseWrapper.is_usabledjango/db/backends/postgresql/base.py:4923 ms17.4%
Cursor.executepsycopg/cursor.py:1133 ms17.4%
Connection.waitpsycopg/connection.py:4953 ms17.4%
Estimated from 11 samples; phase durations are exact. Frames from pytest and pluggy are
shown
.
Hot lines in your code
|
apps/guides/content.py:81
return any(
Guide.explains
· App code
|
3 ms |
Fixtures
Exact setup time| _unittest_setUpClass_fixture_TestContent class | 9 ms |
| _django_setup_unittest class | 0.29 ms |
| _template_string_if_invalid_marker function | 0.04 ms |
| _dj_autoclear_mailbox function | 0.04 ms |
| _django_db_marker function | 0.04 ms |
| _live_server_helper function | 0.03 ms |
| _django_set_urlconf function | 0.03 ms |
| _django_clear_site_cache function | 0.02 ms |
| monkeypatch function | 0.02 ms |
Database
5 queries · 0.79 msNo repeated queries.
Biggest pieces of work
|
setup setUpClass
django/test/testcases.py:1423
|
11 ms |
|
call test body
apps/guides/tests.py:64
|
3 ms |
|
call _post_teardown
django/test/testcases.py:1240
|
3 ms |
Reliability
6 results · 0 CI failures · 0 local failuresThis test hasn't failed recently.
History
Latest 6 results, oldest first in the strip| When | Environment | Outcome | Duration | |
|---|---|---|---|---|
| 16 hours ago | CI github-actions:test | passed | 17 ms | Profile |
| 1 week, 5 days ago | CI github-actions:test | passed | 11 ms | Profile |
| 2 weeks, 1 day ago | CI github-actions:test | passed | 15 ms | Profile |
| 2 weeks, 1 day ago | CI github-actions:test | passed | 13 ms | Profile |
| 2 weeks, 1 day ago | CI github-actions:test | passed | 22 ms | Profile |
| 2 weeks, 2 days ago | CI github-actions:test | passed | 12 ms | Profile |