Tests / apps/guides/tests.py
TestForAgentsAndCrawlers::test_robots_txt
First seen 2 weeks, 2 days ago in b3fedae
CI
github-actions:test
6 runs
Average
34 ms
median 35 ms
max 49 ms
max 49 ms
Phases
Setup 0.60 ms
Call 33 ms
Teardown 0.16 ms
Categories
Database 1 ms
Other (Libraries, Unsampled) 33 ms
5 database queries per run
Needs 660 KB of memory (max 772 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 16 hours ago ·
open run
call39 ms97.8%
CallInfo.from_call_pytest/runner.py:35339 ms97.8%
call_and_report.<locals>.<lambda>_pytest/runner.py:24539 ms97.8%
HookCaller.__call__pluggy/_hooks.py:51239 ms97.8%
PluginManager._hookexecpluggy/_manager.py:12039 ms97.8%
_multicallpluggy/_callers.py:12139 ms97.8%
pytest_runtest_call_pytest/runner.py:17939 ms97.8%
_django_setup_unittest.<locals>.non_debugging_runtestpytest_django/plugin.py:57339 ms97.8%
SimpleTestCase.__call__django/test/testcases.py:31339 ms97.8%
SimpleTestCase._setup_and_calldjango/test/testcases.py:36839 ms97.8%
TestCase.__call__<stdlib>/unittest/case.py:74739 ms97.8%
TestCase.run<stdlib>/unittest/case.py:69139 ms97.8%
TestCase._callTestMethod<stdlib>/unittest/case.py:63739 ms97.8%
TestForAgentsAndCrawlers.test_robots_txtapps/guides/tests.py:167 text = self.client.get("/robots.txt").content.decode()39 ms97.8%
Client.getdjango/test/client.py:112439 ms97.8%
RequestFactory.getdjango/test/client.py:47539 ms97.8%
RequestFactory.genericdjango/test/client.py:67139 ms97.8%
Client.requestdjango/test/client.py:108239 ms97.8%
ClientHandler.__call__django/test/client.py:17339 ms97.8%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6239 ms97.8%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10435 ms86.3%
WhiteNoise.add_fileswhitenoise/base.py:10835 ms86.3%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12030 ms74.8%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13130 ms74.8%
WhiteNoise.get_static_filewhitenoise/base.py:20830 ms74.8%
StaticFile.__init__whitenoise/responders.py:7730 ms74.8%
StaticFile.get_alternativeswhitenoise/responders.py:20030 ms74.8%
__init____init__:-130 ms74.8%
Headers.__init__<stdlib>/wsgiref/headers.py:3630 ms74.8%
<GC>~30 ms74.8%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1155 ms11.5%
scantreewhitenoise/base.py:2625 ms11.5%
scantreewhitenoise/base.py:2625 ms11.5%
scantreewhitenoise/base.py:2645 ms11.5%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:1115 ms11.5%
WhiteNoise.add_fileswhitenoise/base.py:1085 ms11.5%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1205 ms11.5%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:1315 ms11.5%
WhiteNoise.get_static_filewhitenoise/base.py:2022 ms5.8%
WhiteNoise.get_static_filewhitenoise/base.py:2082 ms5.8%
StaticFile.__init__whitenoise/responders.py:732 ms5.8%
StaticFile.get_headerswhitenoise/responders.py:1762 ms5.8%
formatdate<stdlib>/email/utils.py:2662 ms5.8%
Estimated from 17 samples; phase durations are exact. Frames from pytest and pluggy are
shown
.
Hot lines in your code
|
apps/guides/tests.py:167
text = self.client.get("/robots.txt").content.decode()
TestForAgentsAndCrawlers.test_robots_txt
· Libraries
|
39 ms |
Fixtures
Exact setup time| _template_string_if_invalid_marker function | 0.05 ms |
| _dj_autoclear_mailbox function | 0.05 ms |
| _django_db_marker function | 0.04 ms |
| _django_set_urlconf function | 0.04 ms |
| _django_clear_site_cache function | 0.03 ms |
| _live_server_helper function | 0.03 ms |
| monkeypatch function | 0.02 ms |
Database
5 queries · 0.57 msNo repeated queries.
Biggest pieces of work
|
call test body
apps/guides/tests.py:167
|
39 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 | 40 ms | Profile |
| 1 week, 5 days ago | CI github-actions:test | passed | 19 ms | Profile |
| 2 weeks, 1 day ago | CI github-actions:test | passed | 39 ms | Profile |
| 2 weeks, 1 day ago | CI github-actions:test | passed | 30 ms | Profile |
| 2 weeks, 1 day ago | CI github-actions:test | passed | 49 ms | Profile |
| 2 weeks, 2 days ago | CI github-actions:test | passed | 24 ms | Profile |