Tests / starter_packs/tests.py
TestGetSubscribeUrl::test_webfinger_invalid_json
First seen 14 hours ago in 0c23747
CI
github-actions:test
4 runs
Average
9 ms
median 8 ms
max 15 ms
max 15 ms
Phases
Setup 1 ms
Call 8 ms
Teardown 0.22 ms
Categories
Database 5 ms
Other (pytest, Unsampled, Mocking, Libraries) 4 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, 8 hours ago ·
open run
setup0.58 ms12.1%
call4 ms83.6%
TestGetSubscribeUrl.test_webfinger_invalid_jsonstarter_packs/tests.py:1229 self.assertIsNone(get_subscribe_url("user", "example.com", self.target))3 ms55.7%
get_subscribe_urlstarter_packs/remote_follow.py:57 res = httpx.get(3 ms55.7%
CallableMixin.__call__<stdlib>/unittest/mock.py:11763 ms55.7%
CallableMixin._mock_call<stdlib>/unittest/mock.py:11803 ms55.7%
CallableMixin._execute_mock_call<stdlib>/unittest/mock.py:12343 ms55.7%
<GC>~3 ms55.7%
TransactionTestCase._pre_setupdjango/test/testcases.py:1167 cls._fixture_setup()1 ms27.9%
TestCase._fixture_setupdjango/test/testcases.py:14811 ms27.9%
TestCase._enter_atomicsdjango/test/testcases.py:13991 ms27.9%
Atomic.__enter__django/db/transaction.py:2231 ms27.9%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:261 ms27.9%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4001 ms27.9%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3671 ms27.9%
CursorWrapper.executedjango/db/backends/utils.py:791 ms27.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms27.9%
CursorWrapper._executedjango/db/backends/utils.py:1031 ms27.9%
Cursor.executepsycopg/cursor.py:1131 ms27.9%
Connection.waitpsycopg/connection.py:4951 ms27.9%
BaseCursor._execute_genpsycopg/_cursor_base.py:2061 ms27.9%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2861 ms27.9%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:781 ms27.9%
Estimated from 4 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
starter_packs/remote_follow.py:57
res = httpx.get(
get_subscribe_url
· Mocking
|
3 ms |
Fixtures
Exact setup time| _template_string_if_invalid_marker function | 0.03 ms |
| _django_db_marker function | 0.03 ms |
| _dj_autoclear_mailbox function | 0.03 ms |
| _django_isolate_apps function | 0.03 ms |
| _live_server_helper function | 0.03 ms |
| _django_set_urlconf function | 0.02 ms |
| _django_clear_site_cache function | 0.02 ms |
| monkeypatch function | 0.01 ms |
Database
5 queries · 2 msNo repeated queries.
Biggest pieces of work
|
call test body
starter_packs/tests.py:1229
|
3 ms |
|
call _pre_setup
django/test/testcases.py:1167
|
1 ms |
| setup pytest internals | 0.58 ms |
Reliability
5 results · 0 CI failures · 0 local failuresThis test hasn't failed recently.
History
Latest 5 results, oldest first in the strip| When | Environment | Outcome | Duration | |
|---|---|---|---|---|
| 8 hours ago | CI github-actions:test | passed | 5 ms | Profile |
| 8 hours ago | CI github-actions:test | passed | 4 ms | Profile |
| 8 hours ago | CI github-actions:test | passed | 15 ms | Profile |
| 13 hours ago | CI github-actions:test | passed | 11 ms | Profile |
| 14 hours ago | CI github-actions:test | passed | 4 ms | Run |