Tests / fedidevs/tests.py
TestRetryingPostgresBackend::test_gives_up_after_the_last_retry
First seen 2 weeks ago in 28600ed
CI
github-actions:test
1 run
Average
6 ms
median 6 ms
max 6 ms
max 6 ms
Phases
Setup 1 ms
Call 4 ms
Teardown 0.17 ms
Categories
Other (Mocking, pytest) 6 ms
Needs 0 KB of memory (max 0 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 2 weeks ago ·
open run
setup1 ms25.7%
CallInfo.from_call_pytest/runner.py:3611 ms25.7%
call_and_report.<locals>.<lambda>_pytest/runner.py:2501 ms25.7%
HookCaller.__call__pluggy/_hooks.py:5121 ms25.7%
PluginManager._hookexecpluggy/_manager.py:1201 ms25.7%
_multicallpluggy/_callers.py:1211 ms25.7%
pytest_runtest_setup_pytest/runner.py:1701 ms25.7%
SetupState.setup_pytest/runner.py:5361 ms25.7%
TestCaseFunction.setup_pytest/unittest.py:2481 ms25.7%
Function.setup_pytest/python.py:17101 ms25.7%
TopRequest._fillfixtures_pytest/fixtures.py:8061 ms25.7%
FixtureRequest.getfixturevalue_pytest/fixtures.py:6301 ms25.7%
FixtureRequest._get_active_fixturedef_pytest/fixtures.py:7261 ms25.7%
FixtureDef.execute_pytest/fixtures.py:12321 ms25.7%
HookCaller.__call__pluggy/_hooks.py:5121 ms25.7%
PluginManager._hookexecpluggy/_manager.py:1201 ms25.7%
_multicallpluggy/_callers.py:1211 ms25.7%
pytest_fixture_setup_pytest/fixtures.py:13281 ms25.7%
call_fixture_func_pytest/fixtures.py:10051 ms25.7%
call4 ms71.3%
CallInfo.from_call_pytest/runner.py:3614 ms71.3%
call_and_report.<locals>.<lambda>_pytest/runner.py:2504 ms71.3%
HookCaller.__call__pluggy/_hooks.py:5124 ms71.3%
PluginManager._hookexecpluggy/_manager.py:1204 ms71.3%
_multicallpluggy/_callers.py:1214 ms71.3%
pytest_runtest_call_pytest/runner.py:1844 ms71.3%
_django_setup_unittest.<locals>.non_debugging_runtestpytest_django/plugin.py:6144 ms71.3%
SimpleTestCase.__call__django/test/testcases.py:3144 ms71.3%
SimpleTestCase._setup_and_calldjango/test/testcases.py:3694 ms71.3%
TestCase.__call__<stdlib>/unittest/case.py:7474 ms71.3%
TestCase.run<stdlib>/unittest/case.py:6914 ms71.3%
TestCase._callTestMethod<stdlib>/unittest/case.py:6374 ms71.3%
_patch.decorate_callable.<locals>.patched<stdlib>/unittest/mock.py:14393 ms53.5%
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.decorate_callable.<locals>.patched<stdlib>/unittest/mock.py:14361 ms17.8%
_GeneratorContextManager.__enter__<stdlib>/contextlib.py:2031 ms17.8%
_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
shown
.
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 failuresThis test hasn't failed recently.
History
Latest 1 result, oldest first in the strip| When | Environment | Outcome | Duration | |
|---|---|---|---|---|
| 2 weeks ago | CI github-actions:test | passed | 6 ms | Profile |