flakytest.dev anze3db flakytest
Tests / apps/guides/tests.py

TestContent::test_every_insight_has_a_guide

First seen 2 weeks, 2 days ago in b3fedae
CI github-actions:test 1 run
Average
6 ms
median 6 ms
max 6 ms
Phases
Setup 0.69 ms Call 5 ms Teardown 0.17 ms
Categories
Database 2 ms Other (pytest, Unsampled) 3 ms

5 database queries per run

Needs 0 KB of memory (max 0 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 17 hours ago · open run
Hide pytest frames
call5 ms84.8%
CallInfo.from_call_pytest/runner.py:3535 ms84.8%
call_and_report.<locals>.<lambda>_pytest/runner.py:2455 ms84.8%
HookCaller.__call__pluggy/_hooks.py:5125 ms84.8%
PluginManager._hookexecpluggy/_manager.py:1205 ms84.8%
_multicallpluggy/_callers.py:1215 ms84.8%
pytest_runtest_call_pytest/runner.py:1795 ms84.8%
_django_setup_unittest.<locals>.non_debugging_runtestpytest_django/plugin.py:5735 ms84.8%
SimpleTestCase.__call__django/test/testcases.py:3135 ms84.8%
SimpleTestCase._setup_and_calldjango/test/testcases.py:3682 ms42.4%
TestCase.__call__<stdlib>/unittest/case.py:7472 ms42.4%
TestCase.run<stdlib>/unittest/case.py:6912 ms42.4%
TestCase._callTestMethod<stdlib>/unittest/case.py:6372 ms42.4%
TestContent.test_every_insight_has_a_guideapps/guides/tests.py:58 with self.subTest(insight_id):2 ms42.4%
_GeneratorContextManager.__exit__<stdlib>/contextlib.py:2102 ms42.4%
TestCase.subTest<stdlib>/unittest/case.py:5862 ms42.4%
_GeneratorContextManager.__exit__<stdlib>/contextlib.py:2102 ms42.4%
_Outcome.testPartExecutor<stdlib>/unittest/case.py:812 ms42.4%
TestCaseFunction.addSubTest_pytest/unittest.py:4312 ms42.4%
SimpleTestCase._setup_and_calldjango/test/testcases.py:3712 ms42.4%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()2 ms42.4%
TestCase._fixture_teardowndjango/test/testcases.py:14972 ms42.4%
TestCase._rollback_atomicsdjango/test/testcases.py:14052 ms42.4%
Atomic.__exit__django/db/transaction.py:2832 ms42.4%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms42.4%
BaseDatabaseWrapper.savepoint_rollbackdjango/db/backends/base/base.py:4132 ms42.4%
BaseDatabaseWrapper._savepoint_rollbackdjango/db/backends/base/base.py:3712 ms42.4%
CursorWrapper.executedjango/db/backends/utils.py:792 ms42.4%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms42.4%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1002 ms42.4%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms42.4%
Cursor.executepsycopg/cursor.py:1132 ms42.4%
Connection.waitpsycopg/connection.py:4952 ms42.4%
Estimated from 2 samples; phase durations are exact. Frames from pytest and pluggy are shown .

Hot lines in your code

apps/guides/tests.py:58
with self.subTest(insight_id):
TestContent.test_every_insight_has_a_guide · pytest
2 ms

Fixtures

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

Database

5 queries · 0.66 ms
No repeated queries.

Biggest pieces of work

call test body
apps/guides/tests.py:58
2 ms
call _post_teardown
django/test/testcases.py:1240
2 ms

Reliability

6 results · 0 CI failures · 0 local failures

This test hasn't failed recently.

History

Latest 6 results, oldest first in the strip
When Environment Outcome Duration Commit
17 hours ago CI github-actions:test passed 6 ms e141198 main Profile
1 week, 5 days ago CI github-actions:test passed 3 ms 46ec2aa main Profile
2 weeks, 1 day ago CI github-actions:test passed 6 ms afde85b main Profile
2 weeks, 1 day ago CI github-actions:test passed 4 ms fe29f9d main Profile
2 weeks, 1 day ago CI github-actions:test passed 9 ms 044719a main Profile
2 weeks, 2 days ago CI github-actions:test passed 3 ms b3fedae main Profile