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

MastodonRatelimitHeaderTests::test_missing_ratelimit_reset_header_does_not_break_requests

First seen 3 weeks ago in 4f01055
CI github-actions:test 5 runs
Average
360 ms
median 382 ms
max 453 ms
Phases
Setup 2 ms Call 83 ms Teardown 275 ms
Categories
Network 5 ms Other (DB schema, Libraries, pytest, Logging, ...) 355 ms

1 database queries per run

Needs 446 KB of memory (max 964 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 2 weeks ago · open run
Show pytest frames
setup0.94 ms0.2%
call41 ms9.0%
MastodonRatelimitHeaderTests.test_missing_ratelimit_reset_header_does_not_break_requestsmastodon_auth/tests.py:354 account = self._mastodon().me()41 ms9.0%
decorate.<locals>.fundecorator/__init__.py:24741 ms9.0%
api_version.<locals>.api_min_version_decorator.<locals>.wrappermastodon/versions.py:5041 ms9.0%
Mastodon.memastodon/accounts.py:16341 ms9.0%
decorate.<locals>.fundecorator/__init__.py:24741 ms9.0%
api_version.<locals>.api_min_version_decorator.<locals>.wrappermastodon/versions.py:5041 ms9.0%
Mastodon.account_verify_credentialsmastodon/accounts.py:15441 ms9.0%
Mastodon.__api_requestmastodon/internals.py:34041 ms9.0%
Mastodon.__try_cast_to_typemastodon/internals.py:13541 ms9.0%
try_cast_recursemastodon/types_base.py:42441 ms9.0%
try_castmastodon/types_base.py:29841 ms9.0%
AttribAccessDict.__init__mastodon/types_base.py:63934 ms7.5%
AttribAccessDict.__setitem__mastodon/types_base.py:70334 ms7.5%
get_type_hints<stdlib>/typing.py:246027 ms6.0%
_eval_type<stdlib>/typing.py:47520 ms4.5%
evaluate_forward_ref<stdlib>/typing.py:105214 ms3.0%
_make_forward_ref<stdlib>/typing.py:10047 ms1.5%
ForwardRef.__forward_code__<stdlib>/annotationlib.py:3027 ms1.5%
get_type_hints<stdlib>/typing.py:24597 ms1.5%
_make_forward_ref<stdlib>/typing.py:10047 ms1.5%
AttribAccessDict.__init__mastodon/types_base.py:6377 ms1.5%
AttribAccessDict.__setitem__mastodon/types_base.py:7297 ms1.5%
try_cast_recursemastodon/types_base.py:4317 ms1.5%
real_issubclassmastodon/types_base.py:2647 ms1.5%
teardown411 ms90.8%
django_db_setuppytest_django/fixtures.py:199 teardown_databases(db_cfg, verbosity=request.config.option.verbose)411 ms90.8%
teardown_databasesdjango/test/utils.py:394411 ms90.8%
BaseDatabaseCreation.destroy_test_dbdjango/db/backends/base/creation.py:336411 ms90.8%
DatabaseCreation._destroy_test_dbdjango/db/backends/postgresql/creation.py:91411 ms90.8%
BaseDatabaseCreation._destroy_test_dbdjango/db/backends/base/creation.py:352392 ms86.7%
CursorWrapper.executedjango/db/backends/utils.py:79392 ms86.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:92392 ms86.7%
CursorWrapper._executedjango/db/backends/utils.py:103392 ms86.7%
Cursor.executepsycopg/cursor.py:113392 ms86.7%
Connection.waitpsycopg/connection.py:495392 ms86.7%
BaseDatabaseCreation._destroy_test_dbdjango/db/backends/base/creation.py:35119 ms4.1%
DatabaseWrapper._nodb_cursordjango/db/backends/postgresql/base.py:52019 ms4.1%
BaseDatabaseWrapper._nodb_cursordjango/db/backends/base/base.py:71219 ms4.1%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2619 ms4.1%
BaseDatabaseWrapper.cursordjango/db/backends/base/base.py:32019 ms4.1%
BaseDatabaseWrapper._cursordjango/db/backends/base/base.py:29619 ms4.1%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2619 ms4.1%
BaseDatabaseWrapper.ensure_connectiondjango/db/backends/base/base.py:27919 ms4.1%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2619 ms4.1%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:25619 ms4.1%
DatabaseWrapper.get_new_connectionfedidevs/db/postgresql/base.py:39 return super().get_new_connection(conn_params)19 ms4.1%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2619 ms4.1%
DatabaseWrapper.get_new_connectiondjango/db/backends/postgresql/base.py:34519 ms4.1%
Connection.connectpsycopg/connection.py:10919 ms4.1%
wait_connpsycopg/waiting.py:14516 ms3.5%
BaseConnection._connect_genpsycopg/_connection_base.py:43916 ms3.5%
wait_connpsycopg/waiting.py:1413 ms0.6%
EpollSelector.select<stdlib>/selectors.py:4523 ms0.6%
Estimated from 427 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

mastodon_auth/tests.py:354
account = self._mastodon().me()
MastodonRatelimitHeaderTests.test_missing_ratelimit_reset_header_does_not_break_requests · Libraries
41 ms
fedidevs/db/postgresql/base.py:39
return super().get_new_connection(conn_params)
DatabaseWrapper.get_new_connection · DB schema
19 ms

Fixtures

Exact setup time
_django_setup_unittest class 0.11 ms
_unittest_setUpClass_fixture_MastodonRatelimitHeaderTests class 0.08 ms
_template_string_if_invalid_marker function 0.04 ms
_django_db_marker function 0.03 ms
_live_server_helper function 0.03 ms
_django_isolate_apps function 0.03 ms
_dj_autoclear_mailbox function 0.03 ms
_django_set_urlconf function 0.03 ms
_django_clear_site_cache function 0.03 ms
monkeypatch function 0.02 ms

Database

1 queries · 402 ms
No repeated queries.

Biggest pieces of work

teardown fixture django_db_setup (session scope)
pytest_django/fixtures.py:199
411 ms
call test body
mastodon_auth/tests.py:354
41 ms
setup __init__
__init__:-1
0.94 ms

Reliability

5 results · 0 CI failures · 0 local failures

This test hasn't failed recently.

History

Latest 5 results, oldest first in the strip
When Environment Outcome Duration Commit
2 weeks ago CI github-actions:test passed 453 ms 28600ed main Profile
2 weeks, 5 days ago CI github-actions:test passed 382 ms 600b717 main Profile
2 weeks, 6 days ago CI github-actions:test passed 240 ms c28a326 main Profile
3 weeks ago CI github-actions:test passed 418 ms 9b8826a main Profile
3 weeks ago CI github-actions:test passed 306 ms 4f01055 main Profile