Tests / apps/guides/tests.py
TestContent::test_front_matter
First seen 2 weeks, 2 days ago in b3fedae
CI
github-actions:test
1 run
Average
10 ms
median 10 ms
max 10 ms
max 10 ms
Phases
Setup 0.63 ms
Call 9 ms
Teardown 0.19 ms
Categories
Test code 3 ms
Database 2 ms
Other (pytest, Unsampled) 5 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
call9 ms92.0%
TestContent.test_front_matterapps/guides/tests.py:76 prose = FENCED_CODE.sub("", guide.body)3 ms30.7%
TestContent.test_front_matterapps/guides/tests.py:79 self.assertIn(slug, all_guides())2 ms20.4%
TransactionTestCase._pre_setupdjango/test/testcases.py:1164 cls._fixture_setup()1 ms10.2%
TestCase._fixture_setupdjango/test/testcases.py:14781 ms10.2%
TestCase._enter_atomicsdjango/test/testcases.py:13961 ms10.2%
Atomic.__enter__django/db/transaction.py:2111 ms10.2%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:261 ms10.2%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4001 ms10.2%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3671 ms10.2%
CursorWrapper.executedjango/db/backends/utils.py:791 ms10.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms10.2%
CursorWrapper._executedjango/db/backends/utils.py:1031 ms10.2%
Cursor.executepsycopg/cursor.py:1131 ms10.2%
Connection.waitpsycopg/connection.py:4951 ms10.2%
TestContent.test_front_matterapps/guides/tests.py:77 self.assertNotRegex(prose, r"(?m)^# ", "the page renders the title as the h1")1 ms10.2%
TestContent.test_front_matterapps/guides/tests.py:73 with self.subTest(guide.slug):1 ms10.2%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()1 ms10.2%
TestCase._fixture_teardowndjango/test/testcases.py:14971 ms10.2%
TestCase._rollback_atomicsdjango/test/testcases.py:14051 ms10.2%
Atomic.__exit__django/db/transaction.py:2861 ms10.2%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:261 ms10.2%
BaseDatabaseWrapper.savepoint_commitdjango/db/backends/base/base.py:4311 ms10.2%
BaseDatabaseWrapper._savepoint_commitdjango/db/backends/base/base.py:3751 ms10.2%
CursorWrapper.executedjango/db/backends/utils.py:791 ms10.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms10.2%
CursorWrapper._executedjango/db/backends/utils.py:1031 ms10.2%
Cursor.executepsycopg/cursor.py:1131 ms10.2%
Connection.waitpsycopg/connection.py:4951 ms10.2%
Estimated from 9 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
apps/guides/tests.py:76
prose = FENCED_CODE.sub("", guide.body)
TestContent.test_front_matter
· Test code
|
3 ms |
|
apps/guides/tests.py:79
self.assertIn(slug, all_guides())
TestContent.test_front_matter
· pytest
|
2 ms |
|
apps/guides/tests.py:77
self.assertNotRegex(prose, r"(?m)^# ", "the page renders the title as the h1")
TestContent.test_front_matter
· pytest
|
1 ms |
|
apps/guides/tests.py:73
with self.subTest(guide.slug):
TestContent.test_front_matter
· pytest
|
1 ms |
Fixtures
Exact setup time| _django_db_marker function | 0.04 ms |
| _dj_autoclear_mailbox function | 0.04 ms |
| _template_string_if_invalid_marker function | 0.03 ms |
| _django_clear_site_cache function | 0.03 ms |
| _django_set_urlconf function | 0.03 ms |
| _live_server_helper function | 0.03 ms |
| monkeypatch function | 0.02 ms |
Database
5 queries · 0.67 msNo repeated queries.
Biggest pieces of work
|
call test body
apps/guides/tests.py:76
|
7 ms |
|
call _pre_setup
django/test/testcases.py:1164
|
1 ms |
|
call _post_teardown
django/test/testcases.py:1240
|
1 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 | 10 ms | Profile |
| 1 week, 5 days ago | CI github-actions:test | passed | 6 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 | 10 ms | Profile |
| 2 weeks, 1 day ago | CI github-actions:test | passed | 17 ms | Profile |
| 2 weeks, 2 days ago | CI github-actions:test | passed | 6 ms | Profile |