Tests / confs/tests.py
TestPostsAfterDatetime::test_none_when_unset
First seen 3 months, 3 weeks ago in 36b9579
CI
github-actions:test
4 runs
Average
11 ms
median 12 ms
max 13 ms
max 13 ms
Phases
Setup 3 ms
Call 7 ms
Teardown 2 ms
Categories
Database 5 ms
Other (Unsampled, pytest) 7 ms
6 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, 8 hours ago ·
open run
call4 ms44.3%
CallInfo.from_call_pytest/runner.py:3614 ms44.3%
call_and_report.<locals>.<lambda>_pytest/runner.py:2504 ms44.3%
HookCaller.__call__pluggy/_hooks.py:5124 ms44.3%
PluginManager._hookexecpluggy/_manager.py:1204 ms44.3%
_multicallpluggy/_callers.py:1214 ms44.3%
pytest_runtest_call_pytest/runner.py:1844 ms44.3%
_django_setup_unittest.<locals>.non_debugging_runtestpytest_django/plugin.py:6144 ms44.3%
SimpleTestCase.__call__django/test/testcases.py:3144 ms44.3%
SimpleTestCase._setup_and_calldjango/test/testcases.py:3692 ms29.6%
TestCase.__call__<stdlib>/unittest/case.py:7472 ms29.6%
TestCase.run<stdlib>/unittest/case.py:6912 ms29.6%
TestCase._callTestMethod<stdlib>/unittest/case.py:6372 ms29.6%
TestPostsAfterDatetime.test_none_when_unsetconfs/tests.py:106 conference = baker.make(Conference, posts_after=None)2 ms29.6%
makemodel_bakery/baker.py:1752 ms29.6%
Baker.makemodel_bakery/baker.py:4542 ms29.6%
Baker._makemodel_bakery/baker.py:5422 ms29.6%
Baker.instancemodel_bakery/baker.py:6312 ms29.6%
Model.__init__django/db/models/base.py:5561 ms14.8%
Model.savedjango/db/models/base.py:9041 ms14.8%
Model.save_basedjango/db/models/base.py:9961 ms14.8%
Model._save_tabledjango/db/models/base.py:11991 ms14.8%
Model._do_insertdjango/db/models/base.py:12511 ms14.8%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:871 ms14.8%
QuerySet._insertdjango/db/models/query.py:21411 ms14.8%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19361 ms14.8%
CursorWrapper.executedjango/db/backends/utils.py:791 ms14.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms14.8%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1001 ms14.8%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms14.8%
Cursor.executepsycopg/cursor.py:1131 ms14.8%
Connection.waitpsycopg/connection.py:4951 ms14.8%
BaseCursor._execute_genpsycopg/_cursor_base.py:2061 ms14.8%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2861 ms14.8%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:781 ms14.8%
SimpleTestCase._setup_and_calldjango/test/testcases.py:3721 ms14.8%
TransactionTestCase._post_teardowndjango/test/testcases.py:1243 self._fixture_teardown()1 ms14.8%
TestCase._fixture_teardowndjango/test/testcases.py:14981 ms14.8%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4951 ms14.8%
CursorWrapper.executedjango/db/backends/utils.py:791 ms14.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms14.8%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1001 ms14.8%
CursorWrapper._executedjango/db/backends/utils.py:1031 ms14.8%
Cursor.executepsycopg/cursor.py:1131 ms14.8%
Connection.waitpsycopg/connection.py:4951 ms14.8%
BaseCursor._execute_genpsycopg/_cursor_base.py:2061 ms14.8%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2861 ms14.8%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:781 ms14.8%
teardown4 ms45.7%
CallInfo.from_call_pytest/runner.py:3614 ms45.7%
call_and_report.<locals>.<lambda>_pytest/runner.py:2504 ms45.7%
HookCaller.__call__pluggy/_hooks.py:5124 ms45.7%
PluginManager._hookexecpluggy/_manager.py:1204 ms45.7%
_multicallpluggy/_callers.py:1214 ms45.7%
pytest_runtest_teardown_pytest/runner.py:1994 ms45.7%
SetupState.teardown_exact_pytest/runner.py:5684 ms45.7%
FixtureDef.finish_pytest/fixtures.py:11564 ms45.7%
_teardown_yield_fixture_pytest/fixtures.py:10144 ms45.7%
UnitTestCase._register_unittest_setup_class_fixture.<locals>.unittest_setup_class_fixture_pytest/unittest.py:1694 ms45.7%
TestCase.tearDownClassdjango/test/testcases.py:1458 conn.close()3 ms34.3%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:263 ms34.3%
BaseDatabaseWrapper.closedjango/db/backends/base/base.py:3553 ms34.3%
DatabaseWrapper._closedjango/db/backends/postgresql/base.py:4083 ms34.3%
Connection.closepsycopg/connection.py:2013 ms34.3%
TestCase.tearDownClassdjango/test/testcases.py:1456 cls._rollback_atomics(cls.cls_atomics)0.97 ms11.4%
TestCase._rollback_atomicsdjango/test/testcases.py:14080.97 ms11.4%
Atomic.__exit__django/db/transaction.py:3070.97 ms11.4%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:260.97 ms11.4%
BaseDatabaseWrapper.rollbackdjango/db/backends/base/base.py:3370.97 ms11.4%
BaseDatabaseWrapper._rollbackdjango/db/backends/base/base.py:3080.97 ms11.4%
Connection.rollbackpsycopg/connection.py:3140.97 ms11.4%
Connection.waitpsycopg/connection.py:4950.97 ms11.4%
BaseConnection._rollback_genpsycopg/_connection_base.py:6170.97 ms11.4%
BaseConnection._exec_commandpsycopg/_connection_base.py:4740.97 ms11.4%
Estimated from 7 samples; phase durations are exact. Frames from pytest and pluggy are
shown
.
Hot lines in your code
|
confs/tests.py:106
conference = baker.make(Conference, posts_after=None)
TestPostsAfterDatetime.test_none_when_unset
· Database
|
2 ms |
Fixtures
Exact setup time| _template_string_if_invalid_marker function | 0.04 ms |
| _dj_autoclear_mailbox function | 0.04 ms |
| _django_isolate_apps function | 0.04 ms |
| _django_db_marker function | 0.03 ms |
| _django_set_urlconf function | 0.03 ms |
| _live_server_helper function | 0.03 ms |
| _django_clear_site_cache function | 0.02 ms |
| monkeypatch function | 0.02 ms |
Database
6 queries · 1 msNo repeated queries.
Biggest pieces of work
|
teardown tearDownClass
django/test/testcases.py:1458
|
4 ms |
|
call test body
confs/tests.py:106
|
2 ms |
|
call _post_teardown
django/test/testcases.py:1243
|
1 ms |
Reliability
5 results · 0 CI failures · 0 local failuresThis test hasn't failed recently.
History
Latest 8 results, oldest first in the strip| When | Environment | Outcome | Duration | |
|---|---|---|---|---|
| 8 hours ago | CI github-actions:test | passed | 8 ms | Profile |
| 8 hours ago | CI github-actions:test | passed | 13 ms | Profile |
| 8 hours ago | CI github-actions:test | passed | 13 ms | Profile |
| 13 hours ago | CI github-actions:test | passed | 12 ms | Profile |
| 14 hours ago | CI github-actions:test | passed | 7 ms | Run |
| 3 months, 3 weeks ago | CI github-actions | passed | 2 ms | Run |
| 3 months, 3 weeks ago | CI github-actions | passed | 4 ms | Run |
| 3 months, 3 weeks ago | CI github-actions | passed | 4 ms | Run |