Tests / confs/tests.py
TestPostsAfterDatetime::test_aware_start_of_day_in_conference_timezone
First seen 3 months, 3 weeks ago in 36b9579
CI
github-actions:test
4 runs
Average
31 ms
median 33 ms
max 40 ms
max 40 ms
Phases
Setup 18 ms
Call 12 ms
Teardown 0.30 ms
Categories
Database 20 ms
App code 0.85 ms
Other (Unsampled, Libraries, pytest) 10 ms
6 database queries per run
Needs 44 KB of memory (max 172 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 8 hours ago ·
open run
setup11 ms58.8%
TestCase.setUpClassdjango/test/testcases.py:1426 cls.cls_atomics = cls._enter_atomics()10 ms53.4%
TestCase._enter_atomicsdjango/test/testcases.py:139910 ms53.4%
Atomic.__enter__django/db/transaction.py:21010 ms53.4%
BaseDatabaseWrapper.get_autocommitdjango/db/backends/base/base.py:45410 ms53.4%
SimpleTestCase.ensure_connection_patch_method.<locals>.patched_ensure_connectiondjango/test/testcases.py:30410 ms53.4%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2610 ms53.4%
BaseDatabaseWrapper.ensure_connectiondjango/db/backends/base/base.py:27910 ms53.4%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2610 ms53.4%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:25610 ms53.4%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2610 ms53.4%
DatabaseWrapper.get_new_connectiondjango/db/backends/postgresql/base.py:34510 ms53.4%
Connection.connectpsycopg/connection.py:10910 ms53.4%
wait_connpsycopg/waiting.py:1414 ms21.4%
EpollSelector.select<stdlib>/selectors.py:4524 ms21.4%
wait_connpsycopg/waiting.py:1454 ms21.4%
BaseConnection._connect_genpsycopg/_connection_base.py:4394 ms21.4%
wait_connpsycopg/waiting.py:1362 ms10.7%
BaseConnection._connect_genpsycopg/_connection_base.py:4392 ms10.7%
call7 ms40.0%
TestPostsAfterDatetime.test_aware_start_of_day_in_conference_timezoneconfs/tests.py:110 conference = baker.make(Conference, posts_after=dt.date(2025, 11, 28), time_zone="America/New_York")4 ms20.0%
makemodel_bakery/baker.py:1754 ms20.0%
Baker.makemodel_bakery/baker.py:4544 ms20.0%
Baker._makemodel_bakery/baker.py:5424 ms20.0%
Baker.instancemodel_bakery/baker.py:6594 ms20.0%
Model.savedjango/db/models/base.py:9044 ms20.0%
Model.save_basedjango/db/models/base.py:9964 ms20.0%
Model._save_tabledjango/db/models/base.py:11994 ms20.0%
Model._do_insertdjango/db/models/base.py:12514 ms20.0%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:874 ms20.0%
QuerySet._insertdjango/db/models/query.py:21414 ms20.0%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19364 ms20.0%
CursorWrapper.executedjango/db/backends/utils.py:794 ms20.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:924 ms20.0%
CursorWrapper._executedjango/db/backends/utils.py:1054 ms20.0%
Cursor.executepsycopg/cursor.py:1134 ms20.0%
Connection.waitpsycopg/connection.py:4954 ms20.0%
BaseCursor._execute_genpsycopg/_cursor_base.py:2064 ms20.0%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2864 ms20.0%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:784 ms20.0%
TransactionTestCase._pre_setupdjango/test/testcases.py:1167 cls._fixture_setup()1 ms6.7%
TestCase._fixture_setupdjango/test/testcases.py:14811 ms6.7%
TestCase._enter_atomicsdjango/test/testcases.py:13991 ms6.7%
Atomic.__enter__django/db/transaction.py:2231 ms6.7%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:261 ms6.7%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4001 ms6.7%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3671 ms6.7%
CursorWrapper.executedjango/db/backends/utils.py:791 ms6.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms6.7%
CursorWrapper._executedjango/db/backends/utils.py:1031 ms6.7%
Cursor.executepsycopg/cursor.py:1131 ms6.7%
Connection.waitpsycopg/connection.py:4951 ms6.7%
BaseCursor._execute_genpsycopg/_cursor_base.py:2041 ms6.7%
BaseCursor._start_querypsycopg/_cursor_base.py:3871 ms6.7%
BaseConnection._start_querypsycopg/_connection_base.py:5531 ms6.7%
BaseConnection._exec_commandpsycopg/_connection_base.py:4741 ms6.7%
TestPostsAfterDatetime.test_aware_start_of_day_in_conference_timezoneconfs/tests.py:1111 ms6.7%
Conference.posts_after_datetimeconfs/models.py:199 return dt.datetime.combine(self.posts_after, dt.time.min, tzinfo=zoneinfo.ZoneInfo(self.time_zone))1 ms6.7%
find_tzfile<stdlib>/zoneinfo/_tzpath.py:781 ms6.7%
SysMonitor.sysmon_py_startcoverage/sysmon.py:345 disp = self.should_trace(filename, frame) # type: ignore[arg-type]1 ms6.7%
Coverage._should_tracecoverage/control.py:4521 ms6.7%
InOrOut.should_tracecoverage/inorout.py:4391 ms6.7%
InOrOut.check_include_omit_etccoverage/inorout.py:4691 ms6.7%
TreeMatcher.matchcoverage/files.py:2751 ms6.7%
abs_filecoverage/files.py:1581 ms6.7%
realpath<frozen posixpath>:4601 ms6.7%
TransactionTestCase._post_teardowndjango/test/testcases.py:1243 self._fixture_teardown()1 ms6.7%
TestCase._fixture_teardowndjango/test/testcases.py:14981 ms6.7%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4951 ms6.7%
CursorWrapper.executedjango/db/backends/utils.py:791 ms6.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms6.7%
CursorWrapper._executedjango/db/backends/utils.py:1031 ms6.7%
Cursor.executepsycopg/cursor.py:1131 ms6.7%
Connection.waitpsycopg/connection.py:4951 ms6.7%
BaseCursor._execute_genpsycopg/_cursor_base.py:2061 ms6.7%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2861 ms6.7%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:781 ms6.7%
Estimated from 17 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
confs/tests.py:110
conference = baker.make(Conference, posts_after=dt.date(2025, 11, 28), time_zone="America/New_York")
TestPostsAfterDatetime.test_aware_start_of_day_in_conference_timezone
· Database
|
4 ms |
|
confs/models.py:199
return dt.datetime.combine(self.posts_after, dt.time.min, tzinfo=zoneinfo.ZoneInfo(self.time_zone))
Conference.posts_after_datetime
· Libraries
|
1 ms |
Fixtures
Exact setup time| _unittest_setUpClass_fixture_TestPostsAfterDatetime class | 9 ms |
| _django_setup_unittest class | 0.31 ms |
| _template_string_if_invalid_marker function | 0.05 ms |
| _django_db_marker function | 0.04 ms |
| _dj_autoclear_mailbox function | 0.04 ms |
| _django_isolate_apps function | 0.03 ms |
| _live_server_helper function | 0.03 ms |
| _django_set_urlconf function | 0.03 ms |
| _django_clear_site_cache function | 0.03 ms |
| monkeypatch function | 0.02 ms |
Database
6 queries · 4 msNo repeated queries.
Biggest pieces of work
|
setup setUpClass
django/test/testcases.py:1426
|
10 ms |
|
call test body
confs/tests.py:110
|
5 ms |
|
call _pre_setup
django/test/testcases.py:1167
|
1 ms |
|
call _post_teardown
django/test/testcases.py:1243
|
1 ms |
| setup pytest internals | 0.96 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 | 18 ms | Profile |
| 8 hours ago | CI github-actions:test | passed | 40 ms | Profile |
| 8 hours ago | CI github-actions:test | passed | 33 ms | Profile |
| 13 hours ago | CI github-actions:test | passed | 32 ms | Profile |
| 14 hours ago | CI github-actions:test | passed | 12 ms | Run |
| 3 months, 3 weeks ago | CI github-actions | passed | 6 ms | Run |
| 3 months, 3 weeks ago | CI github-actions | passed | 9 ms | Run |
| 3 months, 3 weeks ago | CI github-actions | passed | 9 ms | Run |