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

TestDatabaseConnectionRetries::test_gives_up_when_postgres_stays_down

First seen 1 week, 1 day ago in cb18ed3
No profiled runs of this test in the last 1 days. Run pytest --flakytest-profile to see where its time goes.

Where the time goes

Latest run in ci:github-actions:test, 1 week, 1 day ago · open run
Hide pytest frames
call2 ms78.9%
CallInfo.from_call_pytest/runner.py:3532 ms78.9%
call_and_report.<locals>.<lambda>_pytest/runner.py:2452 ms78.9%
HookCaller.__call__pluggy/_hooks.py:5122 ms78.9%
PluginManager._hookexecpluggy/_manager.py:1202 ms78.9%
_multicallpluggy/_callers.py:1212 ms78.9%
pytest_runtest_call_pytest/runner.py:1690.98 ms39.5%
pytest_runtest_call_pytest/runner.py:1790.98 ms39.5%
_django_setup_unittest.<locals>.non_debugging_runtestpytest_django/plugin.py:5730.98 ms39.5%
SimpleTestCase.__call__django/test/testcases.py:3130.98 ms39.5%
SimpleTestCase._setup_and_calldjango/test/testcases.py:3680.98 ms39.5%
TestCase.__call__<stdlib>/unittest/case.py:7470.98 ms39.5%
TestCase.run<stdlib>/unittest/case.py:6910.98 ms39.5%
TestCase._callTestMethod<stdlib>/unittest/case.py:6370.98 ms39.5%
_patch.decorate_callable.<locals>.patched<stdlib>/unittest/mock.py:14390.98 ms39.5%
TestDatabaseConnectionRetries.test_gives_up_when_postgres_stays_downft/tests.py:273 with self.assertLogs("ft.db.postgresql.base", "WARNING"), self.assertRaises(psycopg.OperationalError):0.98 ms39.5%
TestCase.assertLogs<stdlib>/unittest/case.py:8990.98 ms39.5%
_find_and_load<frozen importlib._bootstrap>:13530.98 ms39.5%
_find_and_load_unlocked<frozen importlib._bootstrap>:12490.98 ms39.5%
_load_unlocked<frozen importlib._bootstrap>:8570.98 ms39.5%
_LoaderBasics.exec_module<frozen importlib._bootstrap_external>:7470.98 ms39.5%
SourceLoader.get_code<frozen importlib._bootstrap_external>:8810.98 ms39.5%
SourceLoader.source_to_code<frozen importlib._bootstrap_external>:8100.98 ms39.5%
_call_with_frames_removed<frozen importlib._bootstrap>:4910.98 ms39.5%
Estimated from 2 samples; phase durations are exact. Frames from pytest and pluggy are shown .

Hot lines in your code

ft/tests.py:273
with self.assertLogs("ft.db.postgresql.base", "WARNING"), self.assertRaises(psycopg.OperationalError):
TestDatabaseConnectionRetries.test_gives_up_when_postgres_stays_down · Imports
0.98 ms

Fixtures

Exact setup time
_dj_autoclear_mailbox function 0.03 ms
_django_db_marker function 0.03 ms
_template_string_if_invalid_marker function 0.03 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

Biggest pieces of work

call pytest internals 0.98 ms
call test body
ft/tests.py:273
0.98 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
1 week, 1 day ago CI github-actions:test passed 2 ms cb18ed3 main Profile