Tests / apps/guides/tests.py
TestGuidePages::test_markdown
First seen 2 weeks, 2 days ago in b3fedae
CI
github-actions:test
6 runs
Average
35 ms
median 34 ms
max 56 ms
max 56 ms
Phases
Setup 0.59 ms
Call 34 ms
Teardown 0.15 ms
Categories
Database 15 ms
Test code 0.53 ms
Other (Libraries, Unsampled, pytest) 19 ms
5 database queries per run
Needs 1 KB of memory (max 8 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 16 hours ago ·
open run
call42 ms98.0%
CallInfo.from_call_pytest/runner.py:35342 ms98.0%
call_and_report.<locals>.<lambda>_pytest/runner.py:24542 ms98.0%
HookCaller.__call__pluggy/_hooks.py:51242 ms98.0%
PluginManager._hookexecpluggy/_manager.py:12042 ms98.0%
_multicallpluggy/_callers.py:12142 ms98.0%
pytest_runtest_call_pytest/runner.py:17942 ms98.0%
_django_setup_unittest.<locals>.non_debugging_runtestpytest_django/plugin.py:57342 ms98.0%
SimpleTestCase.__call__django/test/testcases.py:31342 ms98.0%
SimpleTestCase._setup_and_calldjango/test/testcases.py:36823 ms52.8%
TestCase.__call__<stdlib>/unittest/case.py:74723 ms52.8%
TestCase.run<stdlib>/unittest/case.py:69123 ms52.8%
TestCase._callTestMethod<stdlib>/unittest/case.py:63723 ms52.8%
TestGuidePages.test_markdownapps/guides/tests.py:137 response = self.client.get(guide.markdown_url)19 ms45.2%
Client.getdjango/test/client.py:112419 ms45.2%
RequestFactory.getdjango/test/client.py:47519 ms45.2%
RequestFactory.genericdjango/test/client.py:67119 ms45.2%
Client.requestdjango/test/client.py:108219 ms45.2%
ClientHandler.__call__django/test/client.py:17316 ms37.7%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6216 ms37.7%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10416 ms37.7%
WhiteNoise.add_fileswhitenoise/base.py:10816 ms37.7%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12013 ms30.2%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13110 ms22.6%
WhiteNoise.get_static_filewhitenoise/base.py:20810 ms22.6%
StaticFile.__init__whitenoise/responders.py:723 ms7.5%
StaticFile.get_file_statswhitenoise/responders.py:1613 ms7.5%
StaticFile.__init__whitenoise/responders.py:743 ms7.5%
Headers.__getitem__<stdlib>/wsgiref/headers.py:833 ms7.5%
StaticFile.__init__whitenoise/responders.py:773 ms7.5%
StaticFile.get_alternativeswhitenoise/responders.py:2003 ms7.5%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1153 ms7.5%
scantreewhitenoise/base.py:2643 ms7.5%
ClientHandler.__call__django/test/client.py:1863 ms7.5%
BaseHandler.get_responsedjango/core/handlers/base.py:1413 ms7.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms7.5%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1303 ms7.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms7.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3093 ms7.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms7.5%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:1233 ms7.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms7.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3093 ms7.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms7.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3093 ms7.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms7.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3093 ms7.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms7.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3093 ms7.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms7.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3093 ms7.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms7.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3093 ms7.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms7.5%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:343 ms7.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:553 ms7.5%
BaseHandler._get_responsedjango/core/handlers/base.py:1983 ms7.5%
make_middleware_decorator.<locals>._make_decorator.<locals>._decorator.<locals>._view_wrapperdjango/utils/decorators.py:1963 ms7.5%
make_middleware_decorator.<locals>._make_decorator.<locals>._decorator.<locals>._post_process_requestdjango/utils/decorators.py:1633 ms7.5%
UpdateCacheMiddleware.process_responsedjango/middleware/cache.py:1303 ms7.5%
learn_cache_keydjango/utils/cache.py:4383 ms7.5%
_generate_cache_keydjango/utils/cache.py:3653 ms7.5%
TestGuidePages.test_markdownapps/guides/tests.py:142 self.assertNotIn("\nsection:", text) # no front matter3 ms7.5%
SimpleTestCase._setup_and_calldjango/test/testcases.py:37119 ms45.2%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()19 ms45.2%
TestCase._fixture_teardowndjango/test/testcases.py:149419 ms45.2%
TestCase._should_check_constraintsdjango/test/testcases.py:150319 ms45.2%
DatabaseWrapper.is_usabledjango/db/backends/postgresql/base.py:49216 ms37.7%
Cursor.executepsycopg/cursor.py:11316 ms37.7%
Connection.waitpsycopg/connection.py:49516 ms37.7%
BaseCursor._execute_genpsycopg/_cursor_base.py:20616 ms37.7%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:28616 ms37.7%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:7816 ms37.7%
Estimated from 13 samples; phase durations are exact. Frames from pytest and pluggy are
shown
.
Hot lines in your code
|
apps/guides/tests.py:137
response = self.client.get(guide.markdown_url)
TestGuidePages.test_markdown
· Libraries
|
19 ms |
|
apps/guides/tests.py:142
self.assertNotIn("\nsection:", text) # no front matter
TestGuidePages.test_markdown
· Test code
|
3 ms |
Fixtures
Exact setup time| _dj_autoclear_mailbox function | 0.05 ms |
| _django_db_marker function | 0.04 ms |
| _template_string_if_invalid_marker function | 0.04 ms |
| _django_set_urlconf function | 0.03 ms |
| _live_server_helper function | 0.03 ms |
| _django_clear_site_cache function | 0.03 ms |
| monkeypatch function | 0.03 ms |
Database
5 queries · 0.78 msNo repeated queries.
Biggest pieces of work
|
call test body
apps/guides/tests.py:137
|
23 ms |
|
call _post_teardown
django/test/testcases.py:1240
|
19 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 | 43 ms | Profile |
| 1 week, 5 days ago | CI github-actions:test | passed | 17 ms | Profile |
| 2 weeks, 1 day ago | CI github-actions:test | passed | 41 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 | 56 ms | Profile |
| 2 weeks, 2 days ago | CI github-actions:test | passed | 24 ms | Profile |