Tests / confs/tests.py
TestSyncAnnouncements::test_skips_pending_conferences
First seen 3 weeks ago in 0c23747
CI
github-actions:test
11 runs
Average
16 ms
median 14 ms
max 30 ms
max 30 ms
Phases
Setup 2 ms
Call 13 ms
Teardown 0.36 ms
Categories
Database 10 ms
Factories 0.48 ms
Test code 0.09 ms
Other (Libraries, pytest, Mocking, Unsampled, ...) 5 ms
8 database queries per run
Needs 9 KB of memory (max 20 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 7 hours ago ·
open run
setup1 ms12.3%
call7 ms84.9%
TestSyncAnnouncements.test_skips_pending_conferencesconfs/tests.py:10053 ms33.9%
TestSyncAnnouncements._syncconfs/tests.py:936 with mock.patch("confs.management.commands.syncannouncements.timezone.now", return_value=self.NOW):1 ms17.0%
_patch.__enter__<stdlib>/unittest/mock.py:14941 ms17.0%
TestSyncAnnouncements._syncconfs/tests.py:937 call_command("syncannouncements")1 ms17.0%
call_commanddjango/core/management/__init__.py:1951 ms17.0%
RichCommand.executedjango_rich/management/__init__.py:341 ms17.0%
BaseCommand.executedjango/core/management/base.py:4661 ms17.0%
Command.handleconfs/management/commands/syncannouncements.py:131 ms17.0%
sync_upcomingconfs/conference_announcements.py:107 for conference in upcoming:1 ms17.0%
QuerySet.__iter__django/db/models/query.py:4391 ms17.0%
QuerySet._fetch_alldjango/db/models/query.py:22621 ms17.0%
ModelIterable.__iter__django/db/models/query.py:1031 ms17.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16251 ms17.0%
CursorWrapper.executedjango/db/backends/utils.py:791 ms17.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:921 ms17.0%
CursorWrapper._executedjango/db/backends/utils.py:1051 ms17.0%
Cursor.executepsycopg/cursor.py:1131 ms17.0%
Connection.waitpsycopg/connection.py:4951 ms17.0%
BaseCursor._execute_genpsycopg/_cursor_base.py:2061 ms17.0%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2861 ms17.0%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:781 ms17.0%
TestSyncAnnouncements.test_skips_pending_conferencesconfs/tests.py:1003 self._conference(slug="pending", approved_at=None)1 ms17.0%
TestSyncAnnouncements._conferenceconfs/tests.py:933 return baker.make(Conference, **defaults)1 ms17.0%
makemodel_bakery/baker.py:1751 ms17.0%
Baker.makemodel_bakery/baker.py:4541 ms17.0%
Baker._makemodel_bakery/baker.py:5421 ms17.0%
Baker.instancemodel_bakery/baker.py:6591 ms17.0%
Model.savedjango/db/models/base.py:9041 ms17.0%
Model.save_basedjango/db/models/base.py:9961 ms17.0%
Model._save_tabledjango/db/models/base.py:11991 ms17.0%
Model._do_insertdjango/db/models/base.py:12511 ms17.0%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:871 ms17.0%
TransactionTestCase._post_teardowndjango/test/testcases.py:1243 self._fixture_teardown()1 ms17.0%
TestCase._fixture_teardowndjango/test/testcases.py:14981 ms17.0%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4941 ms17.0%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:261 ms17.0%
BaseDatabaseWrapper.cursordjango/db/backends/base/base.py:3201 ms17.0%
Estimated from 6 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
confs/tests.py:933
return baker.make(Conference, **defaults)
TestSyncAnnouncements._conference
· Database
|
1 ms |
|
confs/tests.py:936
with mock.patch("confs.management.commands.syncannouncements.timezone.now", return_value=self.NOW):
TestSyncAnnouncements._sync
· Mocking
|
1 ms |
|
confs/conference_announcements.py:107
for conference in upcoming:
sync_upcoming
· Database
|
1 ms |
Fixtures
Exact setup time| _django_clear_site_cache function | 0.06 ms |
| _template_string_if_invalid_marker function | 0.06 ms |
| _django_db_marker function | 0.06 ms |
| _django_isolate_apps function | 0.05 ms |
| _django_set_urlconf function | 0.05 ms |
| _live_server_helper function | 0.05 ms |
| _dj_autoclear_mailbox function | 0.04 ms |
| monkeypatch function | 0.03 ms |
Database
8 queries · 3 msNo repeated queries.
Biggest pieces of work
|
call test body
confs/tests.py:1003
|
4 ms |
|
call _post_teardown
django/test/testcases.py:1243
|
1 ms |
| call pytest internals | 1 ms |
| setup pytest internals | 1 ms |
Reliability
12 results · 0 CI failures · 0 local failuresThis test hasn't failed recently.
History
Latest 12 results, oldest first in the strip| When | Environment | Outcome | Duration | |
|---|---|---|---|---|
| 7 hours ago | CI github-actions:test | passed | 8 ms | Profile |
| 16 hours ago | CI github-actions:test | passed | 15 ms | Profile |
| 22 hours ago | CI github-actions:test | passed | 9 ms | Profile |
| 1 week, 5 days ago | CI github-actions:test | passed | 14 ms | Profile |
| 2 weeks, 2 days ago | CI github-actions:test | passed | 8 ms | Profile |
| 2 weeks, 2 days ago | CI github-actions:test | passed | 17 ms | Profile |
| 2 weeks, 4 days ago | CI github-actions:test | passed | 14 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 12 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 18 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 26 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 30 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 7 ms | Run |