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

TestPostsAfterDatetime::test_none_when_unset

First seen 4 months, 2 weeks ago in 36b9579
CI github-actions:test 11 runs
Average
13 ms
median 13 ms
max 23 ms
Phases
Setup 2 ms Call 7 ms Teardown 4 ms
Categories
Database 7 ms Factories 0.19 ms Other (Unsampled, pytest, Libraries, Mocking, ...) 5 ms

6 database queries per run

Needs 1 KB of memory (max 8 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 7 hours ago · open run
Show pytest frames
setup2 ms14.3%
__init____init__:-12 ms14.3%
signature<stdlib>/inspect.py:33432 ms14.3%
Signature.from_callable<stdlib>/inspect.py:30582 ms14.3%
_signature_from_callable<stdlib>/inspect.py:25282 ms14.3%
_signature_from_function<stdlib>/inspect.py:23762 ms14.3%
call8 ms53.4%
TestPostsAfterDatetime.test_none_when_unsetconfs/tests.py:106 conference = baker.make(Conference, posts_after=None)5 ms30.5%
makemodel_bakery/baker.py:1755 ms30.5%
Baker.makemodel_bakery/baker.py:4545 ms30.5%
Baker._makemodel_bakery/baker.py:5425 ms30.5%
Baker.instancemodel_bakery/baker.py:6595 ms30.5%
Model.savedjango/db/models/base.py:9045 ms30.5%
Model.save_basedjango/db/models/base.py:9965 ms30.5%
Model._save_tabledjango/db/models/base.py:10872 ms15.2%
Field.__eq__django/db/models/fields/__init__.py:7182 ms15.2%
Model._save_tabledjango/db/models/base.py:11992 ms15.2%
Model._do_insertdjango/db/models/base.py:12512 ms15.2%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms15.2%
QuerySet._insertdjango/db/models/query.py:21412 ms15.2%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19361 ms7.6%
CursorWrapper.executedjango/db/backends/utils.py:791 ms7.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms7.6%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms7.6%
Cursor.executepsycopg/cursor.py:1131 ms7.6%
Connection.waitpsycopg/connection.py:4951 ms7.6%
BaseCursor._execute_genpsycopg/_cursor_base.py:2061 ms7.6%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2861 ms7.6%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:781 ms7.6%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19671 ms7.6%
SQLCompiler.get_convertersdjango/db/models/sql/compiler.py:15271 ms7.6%
Col.get_db_convertersdjango/db/models/expressions.py:13841 ms7.6%
Field.get_db_convertersdjango/db/models/fields/__init__.py:9611 ms7.6%
TransactionTestCase._pre_setupdjango/test/testcases.py:1167 cls._fixture_setup()2 ms15.2%
TestCase._fixture_setupdjango/test/testcases.py:14812 ms15.2%
TestCase._enter_atomicsdjango/test/testcases.py:13992 ms15.2%
Atomic.__enter__django/db/transaction.py:2232 ms15.2%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms15.2%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4002 ms15.2%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3672 ms15.2%
CursorWrapper.executedjango/db/backends/utils.py:792 ms15.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms15.2%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms15.2%
Cursor.executepsycopg/cursor.py:1132 ms15.2%
Connection.waitpsycopg/connection.py:4952 ms15.2%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms15.2%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms15.2%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms15.2%
TransactionTestCase._post_teardowndjango/test/testcases.py:1243 self._fixture_teardown()1 ms7.6%
TestCase._fixture_teardowndjango/test/testcases.py:15001 ms7.6%
TestCase._rollback_atomicsdjango/test/testcases.py:14081 ms7.6%
Atomic.__exit__django/db/transaction.py:2951 ms7.6%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:261 ms7.6%
BaseDatabaseWrapper.savepoint_rollbackdjango/db/backends/base/base.py:4131 ms7.6%
BaseDatabaseWrapper._savepoint_rollbackdjango/db/backends/base/base.py:3701 ms7.6%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:261 ms7.6%
BaseDatabaseWrapper.cursordjango/db/backends/base/base.py:3201 ms7.6%
BaseDatabaseWrapper._cursordjango/db/backends/base/base.py:2981 ms7.6%
teardown5 ms32.3%
TestCase.tearDownClassdjango/test/testcases.py:1456 cls._rollback_atomics(cls.cls_atomics)2 ms10.8%
TestCase._rollback_atomicsdjango/test/testcases.py:14082 ms10.8%
Atomic.__exit__django/db/transaction.py:3072 ms10.8%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms10.8%
BaseDatabaseWrapper.rollbackdjango/db/backends/base/base.py:3372 ms10.8%
BaseDatabaseWrapper._rollbackdjango/db/backends/base/base.py:3082 ms10.8%
Connection.rollbackpsycopg/connection.py:3142 ms10.8%
Connection.waitpsycopg/connection.py:4952 ms10.8%
Estimated from 15 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

confs/tests.py:106
conference = baker.make(Conference, posts_after=None)
TestPostsAfterDatetime.test_none_when_unset · Database
5 ms

Fixtures

Exact setup time
_template_string_if_invalid_marker function 0.07 ms
_django_isolate_apps function 0.05 ms
_django_set_urlconf function 0.05 ms
_django_db_marker function 0.05 ms
_live_server_helper function 0.05 ms
_dj_autoclear_mailbox function 0.04 ms
_django_clear_site_cache function 0.03 ms
monkeypatch function 0.03 ms

Database

6 queries · 4 ms
No repeated queries.

Biggest pieces of work

call test body
confs/tests.py:106
5 ms
teardown pytest internals 3 ms
call _pre_setup
django/test/testcases.py:1167
2 ms
setup __init__
__init__:-1
2 ms
teardown tearDownClass
django/test/testcases.py:1456
2 ms

Reliability

12 results · 0 CI failures · 0 local failures

This test hasn't failed recently.

History

Latest 12 results, oldest first in the strip
When Environment Outcome Duration Commit
7 hours ago CI github-actions:test passed 15 ms c28a326 main Profile
16 hours ago CI github-actions:test passed 8 ms 9b8826a main Profile
22 hours ago CI github-actions:test passed 17 ms 4f01055 main Profile
1 week, 5 days ago CI github-actions:test passed 5 ms 8ab642e main Profile
2 weeks, 2 days ago CI github-actions:test passed 23 ms 9b75244 main Profile
2 weeks, 2 days ago CI github-actions:test passed 10 ms 9603516 main Profile
2 weeks, 4 days ago CI github-actions:test passed 17 ms 615a272 main Profile
3 weeks ago CI github-actions:test passed 8 ms d923a46 main Profile
3 weeks ago CI github-actions:test passed 13 ms 82997f8 main Profile
3 weeks ago CI github-actions:test passed 13 ms 623aa3e main Profile
3 weeks ago CI github-actions:test passed 12 ms ab6465a main Profile
3 weeks ago CI github-actions:test passed 7 ms 0c23747 main Run