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%
TestContent.test_links_to_the_site_resolveapps/guides/tests.py:84 with self.subTest(guide=guide.slug, link=link):20 ms71.2%
<GC>~2 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%
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%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms6.5%
Cursor.executepsycopg/cursor.py:1132 ms6.5%
Connection.waitpsycopg/connection.py:4952 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%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms6.5%
Estimated from 15 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
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 |