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

TestRetryingPostgresBackend::test_gives_up_after_the_last_retry

First seen 2 weeks ago in 28600ed
No profiled runs of this test in the last 7 days. Run pytest --flakytest-profile to see where its time goes.

Where the time goes

Latest run in ci:github-actions:test, 2 weeks ago · open run
Show pytest frames
setup1 ms25.7%
call4 ms71.3%
TestRetryingPostgresBackend.test_gives_up_after_the_last_retryfedidevs/tests.py:213 self.assertLogs("fedidevs.db.postgresql.base", level="WARNING"),3 ms53.5%
_AssertLogsContext.__exit__<stdlib>/unittest/_log.py:673 ms53.5%
Logger.setLevel<stdlib>/logging/__init__.py:15043 ms53.5%
Manager._clear_cache<stdlib>/logging/__init__.py:14623 ms53.5%
_patch.decoration_helper<stdlib>/unittest/mock.py:1418 arg = exit_stack.enter_context(patching)1 ms17.8%
_BaseExitStack.enter_context<stdlib>/contextlib.py:5941 ms17.8%
_patch.__enter__<stdlib>/unittest/mock.py:15721 ms17.8%
MagicMixin.__init__<stdlib>/unittest/mock.py:21861 ms17.8%
teardown0.17 ms3.0%
Estimated from 6 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

fedidevs/tests.py:213
self.assertLogs("fedidevs.db.postgresql.base", level="WARNING"),
TestRetryingPostgresBackend.test_gives_up_after_the_last_retry · Mocking
3 ms

Fixtures

Exact setup time
_django_db_marker function 0.62 ms
_django_isolate_apps function 0.18 ms
_template_string_if_invalid_marker function 0.04 ms
_django_set_urlconf function 0.03 ms
_dj_autoclear_mailbox function 0.03 ms
_live_server_helper function 0.03 ms
_django_clear_site_cache function 0.02 ms
monkeypatch function 0.02 ms

Biggest pieces of work

call test body
fedidevs/tests.py:213
3 ms
setup pytest internals 1 ms
call decoration_helper
<stdlib>/unittest/mock.py:1418
1 ms

Reliability

1 result · 0 CI failures · 0 local failures

This test hasn't failed recently.

History

Latest 1 result, oldest first in the strip
When Environment Outcome Duration Commit
2 weeks ago CI github-actions:test passed 6 ms 28600ed main Profile