Tests / apps/guides/tests.py
TestContent::test_links_to_the_site_resolve
First seen 2 weeks, 2 days ago in b3fedae
CI
github-actions:test
6 runs
Average
24 ms
median 24 ms
max 37 ms
max 37 ms
Phases
Setup 0.57 ms
Call 23 ms
Teardown 0.14 ms
Categories
Database 4 ms
Test code 2 ms
Other (pytest, Libraries, Unsampled) 17 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
call28 ms97.1%
CallInfo.from_call_pytest/runner.py:35328 ms97.1%
call_and_report.<locals>.<lambda>_pytest/runner.py:24528 ms97.1%
HookCaller.__call__pluggy/_hooks.py:51228 ms97.1%
PluginManager._hookexecpluggy/_manager.py:12028 ms97.1%
_multicallpluggy/_callers.py:12128 ms97.1%
pytest_runtest_call_pytest/runner.py:17928 ms97.1%
_django_setup_unittest.<locals>.non_debugging_runtestpytest_django/plugin.py:57328 ms97.1%
SimpleTestCase.__call__django/test/testcases.py:31328 ms97.1%
SimpleTestCase._setup_and_calldjango/test/testcases.py:36824 ms84.1%
TestCase.__call__<stdlib>/unittest/case.py:74724 ms84.1%
TestCase.run<stdlib>/unittest/case.py:69124 ms84.1%
TestCase._callTestMethod<stdlib>/unittest/case.py:63724 ms84.1%
TestContent.test_links_to_the_site_resolveapps/guides/tests.py:84 with self.subTest(guide=guide.slug, link=link):20 ms71.2%
_GeneratorContextManager.__exit__<stdlib>/contextlib.py:21017 ms58.2%
TestCase.subTest<stdlib>/unittest/case.py:58617 ms58.2%
_GeneratorContextManager.__exit__<stdlib>/contextlib.py:21017 ms58.2%
_Outcome.testPartExecutor<stdlib>/unittest/case.py:8117 ms58.2%
TestCaseFunction.addSubTest_pytest/unittest.py:43113 ms45.3%
HookCaller.__call__pluggy/_hooks.py:5127 ms25.9%
PluginManager._hookexecpluggy/_manager.py:1206 ms19.4%
_multicallpluggy/_callers.py:1216 ms19.4%
pytest_runtest_makereportflakytest/hook.py:1522 ms6.5%
TestReport.from_item_and_call_pytest/reports.py:3962 ms6.5%
<GC>~2 ms6.5%
TestCaseFunction.addSubTest_pytest/unittest.py:4382 ms6.5%
HookCaller.__call__pluggy/_hooks.py:5122 ms6.5%
PluginManager._hookexecpluggy/_manager.py:1202 ms6.5%
_multicallpluggy/_callers.py:1212 ms6.5%
TerminalReporter.pytest_runtest_logreport_pytest/terminal.py:6852 ms6.5%
TerminalReporter._write_progress_information_filling_space_pytest/terminal.py:7852 ms6.5%
TerminalReporter.write_pytest/terminal.py:5252 ms6.5%
TerminalWriter.write_pytest/_io/terminalwriter.py:1562 ms6.5%
TestCaseFunction.addSubTest_pytest/unittest.py:4322 ms6.5%
TestContent.test_links_to_the_site_resolveapps/guides/tests.py:87 match = resolve(path)4 ms12.9%
resolvedjango/urls/base.py:254 ms12.9%
URLResolver.resolvedjango/urls/resolvers.py:6784 ms12.9%
URLResolver.resolvedjango/urls/resolvers.py:6782 ms6.5%
SimpleTestCase._setup_and_calldjango/test/testcases.py:3592 ms6.5%
TransactionTestCase._pre_setupdjango/test/testcases.py:1164 cls._fixture_setup()2 ms6.5%
TestCase._fixture_setupdjango/test/testcases.py:14782 ms6.5%
TestCase._enter_atomicsdjango/test/testcases.py:13962 ms6.5%
Atomic.__enter__django/db/transaction.py:2112 ms6.5%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms6.5%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4002 ms6.5%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3672 ms6.5%
CursorWrapper.executedjango/db/backends/utils.py:792 ms6.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms6.5%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1002 ms6.5%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms6.5%
Cursor.executepsycopg/cursor.py:1132 ms6.5%
Connection.waitpsycopg/connection.py:4952 ms6.5%
SimpleTestCase._setup_and_calldjango/test/testcases.py:3712 ms6.5%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()2 ms6.5%
TestCase._fixture_teardowndjango/test/testcases.py:14952 ms6.5%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4842 ms6.5%
CursorWrapper.executedjango/db/backends/utils.py:792 ms6.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms6.5%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1002 ms6.5%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms6.5%
Estimated from 15 samples; phase durations are exact. Frames from pytest and pluggy are
shown
.
Hot lines in your code
|
apps/guides/tests.py:84
with self.subTest(guide=guide.slug, link=link):
TestContent.test_links_to_the_site_resolve
· pytest
|
20 ms |
|
apps/guides/tests.py:87
match = resolve(path)
TestContent.test_links_to_the_site_resolve
· Libraries
|
4 ms |
Fixtures
Exact setup time| _django_db_marker function | 0.04 ms |
| _dj_autoclear_mailbox function | 0.04 ms |
| _live_server_helper function | 0.04 ms |
| _django_set_urlconf function | 0.04 ms |
| _template_string_if_invalid_marker function | 0.03 ms |
| _django_clear_site_cache function | 0.03 ms |
| monkeypatch function | 0.02 ms |
Database
5 queries · 0.79 msNo repeated queries.
Biggest pieces of work
|
call test body
apps/guides/tests.py:84
|
24 ms |
|
call _pre_setup
django/test/testcases.py:1164
|
2 ms |
|
call _post_teardown
django/test/testcases.py:1240
|
2 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 | 29 ms | Profile |
| 1 week, 5 days ago | CI github-actions:test | passed | 14 ms | Profile |
| 2 weeks, 1 day ago | CI github-actions:test | passed | 27 ms | Profile |
| 2 weeks, 1 day ago | CI github-actions:test | passed | 21 ms | Profile |
| 2 weeks, 1 day ago | CI github-actions:test | passed | 37 ms | Profile |
| 2 weeks, 2 days ago | CI github-actions:test | passed | 17 ms | Profile |