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

RegisterAppTests::test_returns_credentials_on_200

First seen 3 months, 3 weeks ago in 553d048
CI github-actions:test 4 runs
Average
489 ms
median 457 ms
max 723 ms
Phases
Setup 1 ms Call 7 ms Teardown 480 ms
Categories
Other (DB schema, Mocking, pytest, Unsampled) 489 ms

1 database queries per run

Needs 4 KB of memory (max 12 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 7 hours ago · open run
Show pytest frames
call4 ms0.5%
RegisterAppTests.test_returns_credentials_on_200mastodon_auth/tests.py:249 self.assertEqual(register_app(**self._kwargs), ("cid", "sec"))4 ms0.5%
register_appmastodon_auth/oauth.py:105 body = response.json()4 ms0.5%
CallableMixin.__call__<stdlib>/unittest/mock.py:11754 ms0.5%
CallableMixin._increment_mock_call<stdlib>/unittest/mock.py:11954 ms0.5%
NonCallableMock.__setattr__<stdlib>/unittest/mock.py:8064 ms0.5%
<GC>~4 ms0.5%
teardown719 ms99.4%
django_db_setuppytest_django/fixtures.py:199 teardown_databases(db_cfg, verbosity=request.config.option.verbose)719 ms99.4%
teardown_databasesdjango/test/utils.py:394719 ms99.4%
BaseDatabaseCreation.destroy_test_dbdjango/db/backends/base/creation.py:336719 ms99.4%
DatabaseCreation._destroy_test_dbdjango/db/backends/postgresql/creation.py:91719 ms99.4%
BaseDatabaseCreation._destroy_test_dbdjango/db/backends/base/creation.py:352711 ms98.3%
CursorWrapper.executedjango/db/backends/utils.py:79711 ms98.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:92711 ms98.3%
CursorWrapper._executedjango/db/backends/utils.py:103711 ms98.3%
Cursor.executepsycopg/cursor.py:113711 ms98.3%
Connection.waitpsycopg/connection.py:495711 ms98.3%
BaseDatabaseCreation._destroy_test_dbdjango/db/backends/base/creation.py:3518 ms1.1%
DatabaseWrapper._nodb_cursordjango/db/backends/postgresql/base.py:5208 ms1.1%
BaseDatabaseWrapper._nodb_cursordjango/db/backends/base/base.py:7128 ms1.1%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:268 ms1.1%
BaseDatabaseWrapper.cursordjango/db/backends/base/base.py:3208 ms1.1%
BaseDatabaseWrapper._cursordjango/db/backends/base/base.py:2968 ms1.1%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:268 ms1.1%
BaseDatabaseWrapper.ensure_connectiondjango/db/backends/base/base.py:2798 ms1.1%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:268 ms1.1%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:2568 ms1.1%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:268 ms1.1%
DatabaseWrapper.get_new_connectiondjango/db/backends/postgresql/base.py:3458 ms1.1%
Connection.connectpsycopg/connection.py:1098 ms1.1%
wait_connpsycopg/waiting.py:1454 ms0.6%
BaseConnection._connect_genpsycopg/_connection_base.py:4394 ms0.6%
2 smaller frames hidden
Estimated from 720 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

mastodon_auth/oauth.py:105
body = response.json()
register_app · Mocking
4 ms

Fixtures

Exact setup time
_template_string_if_invalid_marker function 0.03 ms
_dj_autoclear_mailbox function 0.03 ms
_django_db_marker function 0.03 ms
_django_isolate_apps function 0.02 ms
_live_server_helper function 0.02 ms
_django_set_urlconf function 0.02 ms
_django_clear_site_cache function 0.02 ms
monkeypatch function 0.01 ms

Database

1 queries · 710 ms
No repeated queries.

Biggest pieces of work

teardown fixture django_db_setup (session scope)
pytest_django/fixtures.py:199
719 ms
call test body
mastodon_auth/tests.py:249
4 ms

Reliability

5 results · 0 CI failures · 0 local failures

This test hasn't failed recently.

History

Latest 9 results, oldest first in the strip
When Environment Outcome Duration Commit
7 hours ago CI github-actions:test passed 723 ms d923a46 main Profile
7 hours ago CI github-actions:test passed 562 ms 82997f8 main Profile
7 hours ago CI github-actions:test passed 352 ms 623aa3e main Profile
12 hours ago CI github-actions:test passed 317 ms ab6465a main Profile
12 hours ago CI github-actions:test passed 0.82 ms 0c23747 main Run
3 months, 3 weeks ago CI github-actions passed 0.58 ms 69d78ea HEAD Run
3 months, 3 weeks ago CI github-actions passed 0.78 ms 8fac7b5 main Run
3 months, 3 weeks ago CI github-actions passed 0.80 ms 36b9579 main Run
3 months, 3 weeks ago CI github-actions passed 0.80 ms 553d048 main Run