flakytest.dev anze3db fedidevs
Tests / mastodon_auth/tests.py

MastodonLoginFormTests::test_rejects_invalid_idna_hostname

First seen 5 months, 3 weeks ago in b300f50
CI github-actions:test 11 runs
Average
11 ms
median 9 ms
max 18 ms
Phases
Setup 2 ms Call 5 ms Teardown 3 ms
Categories
Database 6 ms App code 0.27 ms Test code 0.07 ms Other (pytest, Libraries, Unsampled) 5 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, 7 hours ago · open run
Show pytest frames
setup2 ms15.2%
__init____init__:-10.64 ms5.1%
signature<stdlib>/inspect.py:33430.64 ms5.1%
Signature.from_callable<stdlib>/inspect.py:30580.64 ms5.1%
_signature_from_callable<stdlib>/inspect.py:24770.64 ms5.1%
call5 ms40.8%
TransactionTestCase._post_teardowndjango/test/testcases.py:1243 self._fixture_teardown()3 ms24.5%
TestCase._fixture_teardowndjango/test/testcases.py:14972 ms16.3%
TestCase._should_check_constraintsdjango/test/testcases.py:15062 ms16.3%
DatabaseWrapper.is_usabledjango/db/backends/postgresql/base.py:5042 ms16.3%
Cursor.executepsycopg/cursor.py:1132 ms16.3%
Connection.waitpsycopg/connection.py:4952 ms16.3%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms16.3%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms16.3%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms16.3%
TestCase._fixture_teardowndjango/test/testcases.py:15001 ms8.2%
TestCase._rollback_atomicsdjango/test/testcases.py:14081 ms8.2%
Atomic.__exit__django/db/transaction.py:2951 ms8.2%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:261 ms8.2%
BaseDatabaseWrapper.savepoint_rollbackdjango/db/backends/base/base.py:4131 ms8.2%
BaseDatabaseWrapper._savepoint_rollbackdjango/db/backends/base/base.py:3711 ms8.2%
CursorWrapper.executedjango/db/backends/utils.py:791 ms8.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms8.2%
CursorWrapper._executedjango/db/backends/utils.py:1031 ms8.2%
Cursor.executepsycopg/cursor.py:1131 ms8.2%
Connection.waitpsycopg/connection.py:4951 ms8.2%
BaseCursor._execute_genpsycopg/_cursor_base.py:2061 ms8.2%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2861 ms8.2%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:781 ms8.2%
TransactionTestCase._pre_setupdjango/test/testcases.py:1167 cls._fixture_setup()1 ms8.2%
TestCase._fixture_setupdjango/test/testcases.py:14811 ms8.2%
TestCase._enter_atomicsdjango/test/testcases.py:13991 ms8.2%
Atomic.__enter__django/db/transaction.py:2231 ms8.2%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:261 ms8.2%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4001 ms8.2%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3671 ms8.2%
CursorWrapper.executedjango/db/backends/utils.py:791 ms8.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms8.2%
CursorWrapper._executedjango/db/backends/utils.py:1031 ms8.2%
Cursor.executepsycopg/cursor.py:1131 ms8.2%
Connection.waitpsycopg/connection.py:4951 ms8.2%
BaseCursor._execute_genpsycopg/_cursor_base.py:2061 ms8.2%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:3181 ms8.2%
BaseCursor._set_resultspsycopg/_cursor_base.py:5341 ms8.2%
MastodonLoginFormTests.test_rejects_invalid_idna_hostnamemastodon_auth/tests.py:113 with self.subTest(instance=instance):1 ms8.2%
teardown6 ms44.1%
TestCase.tearDownClassdjango/test/testcases.py:1456 cls._rollback_atomics(cls.cls_atomics)3 ms22.0%
TestCase._rollback_atomicsdjango/test/testcases.py:14083 ms22.0%
Atomic.__exit__django/db/transaction.py:3073 ms22.0%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:263 ms22.0%
BaseDatabaseWrapper.rollbackdjango/db/backends/base/base.py:3373 ms22.0%
BaseDatabaseWrapper._rollbackdjango/db/backends/base/base.py:3083 ms22.0%
Connection.rollbackpsycopg/connection.py:3143 ms22.0%
Connection.waitpsycopg/connection.py:4953 ms22.0%
BaseConnection._rollback_genpsycopg/_connection_base.py:6143 ms22.0%
TestCase.tearDownClassdjango/test/testcases.py:1458 conn.close()3 ms22.0%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:263 ms22.0%
BaseDatabaseWrapper.closedjango/db/backends/base/base.py:3553 ms22.0%
DatabaseWrapper._closedjango/db/backends/postgresql/base.py:4083 ms22.0%
Connection.closepsycopg/connection.py:2013 ms22.0%
Estimated from 10 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
_template_string_if_invalid_marker function 0.06 ms
_dj_autoclear_mailbox function 0.06 ms
_django_db_marker function 0.06 ms
_django_set_urlconf function 0.05 ms
_django_isolate_apps function 0.05 ms
_live_server_helper function 0.05 ms
_django_clear_site_cache function 0.04 ms
monkeypatch function 0.03 ms

Database

5 queries · 2 ms
No repeated queries.

Biggest pieces of work

teardown tearDownClass
django/test/testcases.py:1456
6 ms
call _post_teardown
django/test/testcases.py:1243
3 ms
setup pytest internals 1 ms
call _pre_setup
django/test/testcases.py:1167
1 ms
call test body
mastodon_auth/tests.py:113
1 ms

Reliability

12 results · 0 CI failures · 0 local failures

This test hasn't failed recently.

History

Latest 12 results, oldest first in the strip
When Environment Outcome Duration Commit
7 hours ago CI github-actions:test passed 13 ms c28a326 main Profile
16 hours ago CI github-actions:test passed 9 ms 9b8826a main Profile
22 hours ago CI github-actions:test passed 8 ms 4f01055 main Profile
1 week, 5 days ago CI github-actions:test passed 8 ms 8ab642e main Profile
2 weeks, 2 days ago CI github-actions:test passed 8 ms 9b75244 main Profile
2 weeks, 2 days ago CI github-actions:test passed 9 ms 9603516 main Profile
2 weeks, 4 days ago CI github-actions:test passed 7 ms 615a272 main Profile
3 weeks ago CI github-actions:test passed 8 ms d923a46 main Profile
3 weeks ago CI github-actions:test passed 16 ms 82997f8 main Profile
3 weeks ago CI github-actions:test passed 15 ms 623aa3e main Profile
3 weeks ago CI github-actions:test passed 18 ms ab6465a main Profile
3 weeks ago CI github-actions:test passed 3 ms 0c23747 main Run