Tests / starter_packs/tests.py
TestFollowBg::test_stops_after_unauthorized
First seen 14 hours ago in 0c23747
CI
github-actions:test
4 runs
Average
28 ms
median 30 ms
max 38 ms
max 38 ms
Phases
Setup 5 ms
Call 19 ms
Teardown 3 ms
Categories
Database 22 ms
Other (pytest, Libraries, Unsampled) 5 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, 9 hours ago ·
open run
call9 ms79.1%
CallInfo.from_call_pytest/runner.py:3619 ms79.1%
call_and_report.<locals>.<lambda>_pytest/runner.py:2509 ms79.1%
HookCaller.__call__pluggy/_hooks.py:5129 ms79.1%
PluginManager._hookexecpluggy/_manager.py:1209 ms79.1%
_multicallpluggy/_callers.py:1219 ms79.1%
pytest_runtest_call_pytest/runner.py:1849 ms79.1%
_django_setup_unittest.<locals>.non_debugging_runtestpytest_django/plugin.py:6149 ms79.1%
SimpleTestCase.__call__django/test/testcases.py:3149 ms79.1%
SimpleTestCase._setup_and_calldjango/test/testcases.py:3696 ms52.8%
TestCase.__call__<stdlib>/unittest/case.py:7476 ms52.8%
TestCase.run<stdlib>/unittest/case.py:6916 ms52.8%
TestCase._callTestMethod<stdlib>/unittest/case.py:6376 ms52.8%
_patch.decorate_callable.<locals>.patched<stdlib>/unittest/mock.py:14396 ms52.8%
TestFollowBg.test_stops_after_unauthorizedstarter_packs/tests.py:1367 follow_bg(self.user.id, self.starter_pack.slug)6 ms52.8%
_SharedTaskProxy.__call__potatoq/app.py:7636 ms52.8%
Task.__call__potatoq/task.py:1996 ms52.8%
follow_bgstarter_packs/views.py:1067 account_access = user.accountaccess2 ms13.2%
ReverseOneToOneDescriptor.__get__django/db/models/fields/related_descriptors.py:5372 ms13.2%
FetchOne.fetchdjango/db/models/fetch_modes.py:172 ms13.2%
ReverseOneToOneDescriptor.fetch_onedjango/db/models/fields/related_descriptors.py:5622 ms13.2%
QuerySet.getdjango/db/models/query.py:7022 ms13.2%
QuerySet.__len__django/db/models/query.py:4212 ms13.2%
QuerySet._fetch_alldjango/db/models/query.py:22622 ms13.2%
ModelIterable.__iter__django/db/models/query.py:1362 ms13.2%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15782 ms13.2%
SQLCompiler.get_convertersdjango/db/models/sql/compiler.py:15272 ms13.2%
Col.get_db_convertersdjango/db/models/expressions.py:13872 ms13.2%
ForeignKey.get_db_convertersdjango/db/models/fields/related.py:-12 ms13.2%
follow_bgstarter_packs/views.py:1080 starter_pack_accounts = Account.objects.filter(2 ms13.2%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms13.2%
QuerySet.filterdjango/db/models/query.py:16762 ms13.2%
QuerySet._filter_or_excludedjango/db/models/query.py:16942 ms13.2%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:17042 ms13.2%
Query.add_qdjango/db/models/sql/query.py:16812 ms13.2%
Query._add_qdjango/db/models/sql/query.py:17132 ms13.2%
Query.build_filterdjango/db/models/sql/query.py:15772 ms13.2%
Query.setup_joinsdjango/db/models/sql/query.py:19422 ms13.2%
follow_bgstarter_packs/views.py:1086 for account in starter_pack_accounts:2 ms13.2%
QuerySet.__iter__django/db/models/query.py:4392 ms13.2%
QuerySet._fetch_alldjango/db/models/query.py:22622 ms13.2%
ModelIterable.__iter__django/db/models/query.py:1032 ms13.2%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16252 ms13.2%
CursorWrapper.executedjango/db/backends/utils.py:792 ms13.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms13.2%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1002 ms13.2%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms13.2%
Cursor.executepsycopg/cursor.py:1132 ms13.2%
Connection.waitpsycopg/connection.py:4952 ms13.2%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms13.2%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms13.2%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms13.2%
follow_bgstarter_packs/views.py:1087 if account == account_access.account:2 ms13.2%
ForwardManyToOneDescriptor.__get__django/db/models/fields/related_descriptors.py:2662 ms13.2%
FetchOne.fetchdjango/db/models/fetch_modes.py:172 ms13.2%
ForwardManyToOneDescriptor.fetch_onedjango/db/models/fields/related_descriptors.py:2792 ms13.2%
ForwardManyToOneDescriptor.get_objectdjango/db/models/fields/related_descriptors.py:2312 ms13.2%
QuerySet.getdjango/db/models/query.py:7022 ms13.2%
QuerySet.__len__django/db/models/query.py:4212 ms13.2%
QuerySet._fetch_alldjango/db/models/query.py:22622 ms13.2%
ModelIterable.__iter__django/db/models/query.py:1032 ms13.2%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16252 ms13.2%
CursorWrapper.executedjango/db/backends/utils.py:792 ms13.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms13.2%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1002 ms13.2%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms13.2%
Cursor.executepsycopg/cursor.py:1132 ms13.2%
Connection.waitpsycopg/connection.py:4952 ms13.2%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms13.2%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms13.2%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms13.2%
SimpleTestCase._setup_and_calldjango/test/testcases.py:3723 ms26.4%
TransactionTestCase._post_teardowndjango/test/testcases.py:1243 self._fixture_teardown()3 ms26.4%
TestCase._fixture_teardowndjango/test/testcases.py:14983 ms26.4%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4952 ms13.2%
CursorWrapper.executedjango/db/backends/utils.py:792 ms13.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms13.2%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1002 ms13.2%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms13.2%
Cursor.executepsycopg/cursor.py:1132 ms13.2%
Connection.waitpsycopg/connection.py:4952 ms13.2%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms13.2%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms13.2%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms13.2%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4962 ms13.2%
CursorWrapper.executedjango/db/backends/utils.py:792 ms13.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms13.2%
QueryTracker._django_wrapperflakytest/profiling/dbtrack.py:1002 ms13.2%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms13.2%
Cursor.executepsycopg/cursor.py:1132 ms13.2%
Connection.waitpsycopg/connection.py:4952 ms13.2%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms13.2%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms13.2%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms13.2%
teardown1 ms12.3%
CallInfo.from_call_pytest/runner.py:3611 ms12.3%
call_and_report.<locals>.<lambda>_pytest/runner.py:2501 ms12.3%
HookCaller.__call__pluggy/_hooks.py:5121 ms12.3%
PluginManager._hookexecpluggy/_manager.py:1201 ms12.3%
_multicallpluggy/_callers.py:1211 ms12.3%
pytest_runtest_teardown_pytest/runner.py:1991 ms12.3%
SetupState.teardown_exact_pytest/runner.py:5681 ms12.3%
FixtureDef.finish_pytest/fixtures.py:11560.73 ms6.1%
_teardown_yield_fixture_pytest/fixtures.py:10140.73 ms6.1%
UnitTestCase._register_unittest_setup_class_fixture.<locals>.unittest_setup_class_fixture_pytest/unittest.py:1690.73 ms6.1%
TestCase.tearDownClassdjango/test/testcases.py:1458 conn.close()0.73 ms6.1%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:260.73 ms6.1%
BaseDatabaseWrapper.closedjango/db/backends/base/base.py:3550.73 ms6.1%
DatabaseWrapper._closedjango/db/backends/postgresql/base.py:4080.73 ms6.1%
Connection.closepsycopg/connection.py:2010.73 ms6.1%
Estimated from 8 samples; phase durations are exact. Frames from pytest and pluggy are
shown
.
Hot lines in your code
|
starter_packs/views.py:1067
account_access = user.accountaccess
follow_bg
· Database
|
2 ms |
|
starter_packs/views.py:1080
starter_pack_accounts = Account.objects.filter(
follow_bg
· Database
|
2 ms |
|
starter_packs/views.py:1086
for account in starter_pack_accounts:
follow_bg
· Database
|
2 ms |
|
starter_packs/views.py:1087
if account == account_access.account:
follow_bg
· Database
|
2 ms |
Fixtures
Exact setup time| _dj_autoclear_mailbox function | 0.05 ms |
| _template_string_if_invalid_marker function | 0.04 ms |
| _django_db_marker 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
10 queries · 5 msNo repeated queries.
Biggest pieces of work
|
call test body
starter_packs/tests.py:1367
|
6 ms |
|
call _post_teardown
django/test/testcases.py:1243
|
3 ms |
| teardown pytest internals | 0.73 ms |
|
teardown tearDownClass
django/test/testcases.py:1458
|
0.73 ms |
Reliability
5 results · 0 CI failures · 0 local failuresThis test hasn't failed recently.
History
Latest 5 results, oldest first in the strip| When | Environment | Outcome | Duration | |
|---|---|---|---|---|
| 9 hours ago | CI github-actions:test | passed | 12 ms | Profile |
| 9 hours ago | CI github-actions:test | passed | 27 ms | Profile |
| 9 hours ago | CI github-actions:test | passed | 33 ms | Profile |
| 14 hours ago | CI github-actions:test | passed | 38 ms | Profile |
| 14 hours ago | CI github-actions:test | passed | 9 ms | Run |