Tests / starter_packs/tests.py
TestFollowBg::test_stops_after_unauthorized
First seen 3 weeks ago in 0c23747
CI
github-actions:test
11 runs
Average
23 ms
median 21 ms
max 38 ms
max 38 ms
Phases
Setup 3 ms
Call 16 ms
Teardown 3 ms
Categories
Database 19 ms
Other (pytest, Libraries, Unsampled, Mocking) 4 ms
10 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, 7 hours ago ·
open run
call15 ms73.8%
TestFollowBg.test_stops_after_unauthorizedstarter_packs/tests.py:1367 follow_bg(self.user.id, self.starter_pack.slug)10 ms46.1%
_SharedTaskProxy.__call__potatoq/app.py:76310 ms46.1%
Task.__call__potatoq/task.py:19910 ms46.1%
follow_bgstarter_packs/views.py:1086 for account in starter_pack_accounts:5 ms23.1%
QuerySet.__iter__django/db/models/query.py:4395 ms23.1%
QuerySet._fetch_alldjango/db/models/query.py:22625 ms23.1%
ModelIterable.__iter__django/db/models/query.py:1035 ms23.1%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16254 ms18.4%
CursorWrapper.executedjango/db/backends/utils.py:794 ms18.4%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:924 ms18.4%
CursorWrapper._executedjango/db/backends/utils.py:1054 ms18.4%
Cursor.executepsycopg/cursor.py:1134 ms18.4%
Connection.waitpsycopg/connection.py:4954 ms18.4%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16120.97 ms4.6%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7680.97 ms4.6%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:890.97 ms4.6%
SQLCompiler.setup_querydjango/db/models/sql/compiler.py:780.97 ms4.6%
SQLCompiler.get_selectdjango/db/models/sql/compiler.py:3170.97 ms4.6%
follow_bgstarter_packs/views.py:1066 user = User.objects.get(pk=user_id)3 ms13.8%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:873 ms13.8%
QuerySet.getdjango/db/models/query.py:7023 ms13.8%
QuerySet.__len__django/db/models/query.py:4213 ms13.8%
QuerySet._fetch_alldjango/db/models/query.py:22623 ms13.8%
ModelIterable.__iter__django/db/models/query.py:1033 ms13.8%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16253 ms13.8%
CursorWrapper.executedjango/db/backends/utils.py:793 ms13.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms13.8%
CursorWrapper._executedjango/db/backends/utils.py:1053 ms13.8%
Cursor.executepsycopg/cursor.py:1133 ms13.8%
Connection.waitpsycopg/connection.py:4953 ms13.8%
follow_bgstarter_packs/views.py:1067 account_access = user.accountaccess0.97 ms4.6%
ReverseOneToOneDescriptor.__get__django/db/models/fields/related_descriptors.py:5370.97 ms4.6%
FetchOne.fetchdjango/db/models/fetch_modes.py:170.97 ms4.6%
ReverseOneToOneDescriptor.fetch_onedjango/db/models/fields/related_descriptors.py:5620.97 ms4.6%
QuerySet.getdjango/db/models/query.py:7020.97 ms4.6%
QuerySet.__len__django/db/models/query.py:4210.97 ms4.6%
QuerySet._fetch_alldjango/db/models/query.py:22620.97 ms4.6%
ModelIterable.__iter__django/db/models/query.py:1030.97 ms4.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16250.97 ms4.6%
CursorWrapper.executedjango/db/backends/utils.py:790.97 ms4.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:920.97 ms4.6%
CursorWrapper._executedjango/db/backends/utils.py:1050.97 ms4.6%
Cursor.executepsycopg/cursor.py:1130.97 ms4.6%
Connection.waitpsycopg/connection.py:4950.97 ms4.6%
BaseCursor._execute_genpsycopg/_cursor_base.py:2060.97 ms4.6%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2860.97 ms4.6%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:780.97 ms4.6%
follow_bgstarter_packs/views.py:1068 instance = account_access.instance0.97 ms4.6%
ForwardManyToOneDescriptor.__get__django/db/models/fields/related_descriptors.py:2660.97 ms4.6%
FetchOne.fetchdjango/db/models/fetch_modes.py:170.97 ms4.6%
ForwardManyToOneDescriptor.fetch_onedjango/db/models/fields/related_descriptors.py:2790.97 ms4.6%
ForwardManyToOneDescriptor.get_objectdjango/db/models/fields/related_descriptors.py:2310.97 ms4.6%
QuerySet.getdjango/db/models/query.py:7020.97 ms4.6%
QuerySet.__len__django/db/models/query.py:4210.97 ms4.6%
QuerySet._fetch_alldjango/db/models/query.py:22620.97 ms4.6%
ModelIterable.__iter__django/db/models/query.py:1030.97 ms4.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16250.97 ms4.6%
CursorWrapper.executedjango/db/backends/utils.py:790.97 ms4.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:920.97 ms4.6%
CursorWrapper._executedjango/db/backends/utils.py:1050.97 ms4.6%
Cursor.executepsycopg/cursor.py:1130.97 ms4.6%
Connection.waitpsycopg/connection.py:4950.97 ms4.6%
BaseCursor._execute_genpsycopg/_cursor_base.py:2060.97 ms4.6%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2860.97 ms4.6%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:780.97 ms4.6%
TransactionTestCase._post_teardowndjango/test/testcases.py:1243 self._fixture_teardown()3 ms13.8%
TestCase._fixture_teardowndjango/test/testcases.py:14982 ms9.2%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4952 ms9.2%
CursorWrapper.executedjango/db/backends/utils.py:792 ms9.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms9.2%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms9.2%
Cursor.executepsycopg/cursor.py:1132 ms9.2%
Connection.waitpsycopg/connection.py:4952 ms9.2%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms9.2%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms9.2%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms9.2%
TestCase._fixture_teardowndjango/test/testcases.py:14970.97 ms4.6%
TestCase._should_check_constraintsdjango/test/testcases.py:15060.97 ms4.6%
DatabaseWrapper.is_usabledjango/db/backends/postgresql/base.py:5040.97 ms4.6%
Cursor.executepsycopg/cursor.py:1130.97 ms4.6%
Connection.waitpsycopg/connection.py:4950.97 ms4.6%
BaseCursor._execute_genpsycopg/_cursor_base.py:2060.97 ms4.6%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2860.97 ms4.6%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:780.97 ms4.6%
TransactionTestCase._pre_setupdjango/test/testcases.py:1167 cls._fixture_setup()0.97 ms4.6%
TestCase._fixture_setupdjango/test/testcases.py:14810.97 ms4.6%
TestCase._enter_atomicsdjango/test/testcases.py:13990.97 ms4.6%
Atomic.__enter__django/db/transaction.py:2230.97 ms4.6%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:260.97 ms4.6%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4000.97 ms4.6%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3670.97 ms4.6%
CursorWrapper.executedjango/db/backends/utils.py:790.97 ms4.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:920.97 ms4.6%
CursorWrapper._executedjango/db/backends/utils.py:1030.97 ms4.6%
Cursor.executepsycopg/cursor.py:1130.97 ms4.6%
Connection.waitpsycopg/connection.py:4950.97 ms4.6%
TestCase.tearDownClassdjango/test/testcases.py:1456 cls._rollback_atomics(cls.cls_atomics)0.97 ms4.6%
TestCase._rollback_atomicsdjango/test/testcases.py:14080.97 ms4.6%
Atomic.__exit__django/db/transaction.py:3070.97 ms4.6%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:260.97 ms4.6%
BaseDatabaseWrapper.rollbackdjango/db/backends/base/base.py:3370.97 ms4.6%
BaseDatabaseWrapper._rollbackdjango/db/backends/base/base.py:3080.97 ms4.6%
Connection.rollbackpsycopg/connection.py:3140.97 ms4.6%
Connection.waitpsycopg/connection.py:4950.97 ms4.6%
BaseConnection._rollback_genpsycopg/_connection_base.py:6170.97 ms4.6%
BaseConnection._exec_commandpsycopg/_connection_base.py:4740.97 ms4.6%
teardown4 ms19.7%
TestCase.tearDownClassdjango/test/testcases.py:1458 conn.close()4 ms19.7%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:264 ms19.7%
BaseDatabaseWrapper.closedjango/db/backends/base/base.py:3554 ms19.7%
DatabaseWrapper._closedjango/db/backends/postgresql/base.py:4084 ms19.7%
Connection.closepsycopg/connection.py:2014 ms19.7%
Estimated from 19 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
starter_packs/views.py:1086
for account in starter_pack_accounts:
follow_bg
· Database
|
5 ms |
|
starter_packs/views.py:1066
user = User.objects.get(pk=user_id)
follow_bg
· Database
|
3 ms |
|
starter_packs/views.py:1067
account_access = user.accountaccess
follow_bg
· Database
|
0.97 ms |
|
starter_packs/views.py:1068
instance = account_access.instance
follow_bg
· Database
|
0.97 ms |
Fixtures
Exact setup time| _template_string_if_invalid_marker function | 0.17 ms |
| _dj_autoclear_mailbox function | 0.05 ms |
| _django_db_marker function | 0.04 ms |
| _django_isolate_apps function | 0.04 ms |
| _live_server_helper function | 0.04 ms |
| _django_set_urlconf function | 0.04 ms |
| _django_clear_site_cache function | 0.03 ms |
| monkeypatch function | 0.02 ms |
Database
10 queries · 10 msNo repeated queries.
Biggest pieces of work
|
call test body
starter_packs/tests.py:1367
|
10 ms |
|
teardown tearDownClass
django/test/testcases.py:1458
|
4 ms |
|
call _post_teardown
django/test/testcases.py:1243
|
3 ms |
|
call _pre_setup
django/test/testcases.py:1167
|
0.97 ms |
| call pytest internals | 0.97 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 | 21 ms | Profile |
| 16 hours ago | CI github-actions:test | passed | 11 ms | Profile |
| 22 hours ago | CI github-actions:test | passed | 25 ms | Profile |
| 1 week, 5 days ago | CI github-actions:test | passed | 29 ms | Profile |
| 2 weeks, 2 days ago | CI github-actions:test | passed | 21 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 | 27 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 33 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 38 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 9 ms | Run |