Tests / mastodon_auth/tests.py
MastodonLoginFormTests::test_rejects_invalid_idna_hostname
First seen 6 months, 1 week ago in b300f50
CI
github-actions:test
13 runs
Average
10 ms
median 8 ms
max 18 ms
max 18 ms
Phases
Setup 2 ms
Call 5 ms
Teardown 3 ms
Categories
Database 6 ms
App code 0.23 ms
Test code 0.06 ms
Other (pytest, Libraries, Unsampled) 4 ms
5 database queries per run
Needs 1 KB of memory (max 4 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 2 weeks ago ·
open run
setup0.99 ms13.6%
__init____init__:-10.99 ms13.6%
signature<stdlib>/inspect.py:33430.99 ms13.6%
Signature.from_callable<stdlib>/inspect.py:30580.99 ms13.6%
_signature_from_callable<stdlib>/inspect.py:25280.99 ms13.6%
_signature_from_function<stdlib>/inspect.py:24150.99 ms13.6%
call3 ms41.3%
MastodonLoginFormTests.test_rejects_invalid_idna_hostnamemastodon_auth/tests.py:113 with self.subTest(instance=instance):1 ms13.8%
TransactionTestCase._post_teardowndjango/test/testcases.py:1243 self._fixture_teardown()1 ms13.8%
TestCase._fixture_teardowndjango/test/testcases.py:14971 ms13.8%
TestCase._should_check_constraintsdjango/test/testcases.py:15061 ms13.8%
DatabaseWrapper.is_usabledjango/db/backends/postgresql/base.py:5041 ms13.8%
Cursor.executepsycopg/cursor.py:1131 ms13.8%
Connection.waitpsycopg/connection.py:4951 ms13.8%
BaseCursor._execute_genpsycopg/_cursor_base.py:2061 ms13.8%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2861 ms13.8%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:781 ms13.8%
teardown3 ms45.2%
TestCase.tearDownClassdjango/test/testcases.py:1458 conn.close()3 ms45.2%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:263 ms45.2%
BaseDatabaseWrapper.closedjango/db/backends/base/base.py:3553 ms45.2%
DatabaseWrapper._closedjango/db/backends/postgresql/base.py:4083 ms45.2%
Connection.closepsycopg/connection.py:2013 ms45.2%
Estimated from 7 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
mastodon_auth/tests.py:113
with self.subTest(instance=instance):
MastodonLoginFormTests.test_rejects_invalid_idna_hostname
· pytest
|
1 ms |
Fixtures
Exact setup time| _dj_autoclear_mailbox function | 0.05 ms |
| _template_string_if_invalid_marker function | 0.04 ms |
| _django_isolate_apps function | 0.04 ms |
| _django_db_marker function | 0.03 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.02 ms |
Database
5 queries · 0.66 msNo repeated queries.
Biggest pieces of work
|
teardown tearDownClass
django/test/testcases.py:1458
|
3 ms |
| call pytest internals | 1 ms |
|
call test body
mastodon_auth/tests.py:113
|
1 ms |
|
call _post_teardown
django/test/testcases.py:1243
|
1 ms |
|
setup __init__
__init__:-1
|
0.99 ms |
Reliability
14 results · 0 CI failures · 0 local failuresThis test hasn't failed recently.
History
Latest 14 results, oldest first in the strip| When | Environment | Outcome | Duration | |
|---|---|---|---|---|
| 2 weeks ago | CI github-actions:test | passed | 7 ms | Profile |
| 2 weeks, 5 days ago | CI github-actions:test | passed | 7 ms | Profile |
| 2 weeks, 6 days ago | CI github-actions:test | passed | 13 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 9 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 8 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 8 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 8 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 9 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 7 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 8 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 16 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 15 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 18 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 3 ms | Run |