Tests / starter_packs/tests.py
TestEditStarterPackAccounts::test_not_logged_in
First seen 1 year, 11 months ago in 1b5db0c
CI
github-actions:test
11 runs
Average
121 ms
median 101 ms
max 261 ms
max 261 ms
Phases
Setup 3 ms
Call 117 ms
Teardown 0.95 ms
Categories
Database 26 ms
Factories 0.09 ms
Other (Libraries, Templates, pytest, Unsampled, ...) 95 ms
8 database queries per run
Needs 196 KB of memory (max 964 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 7 hours ago ·
open run
setup0.96 ms1.1%
__init____init__:-10.96 ms1.1%
signature<stdlib>/inspect.py:33430.96 ms1.1%
Signature.from_callable<stdlib>/inspect.py:30580.96 ms1.1%
_signature_from_callable<stdlib>/inspect.py:25280.96 ms1.1%
call86 ms98.5%
TestEditStarterPackAccounts.test_not_logged_instarter_packs/tests.py:256 self.assertRedirects(41 ms47.4%
SimpleTestCase.assertRedirectsdjango/test/testcases.py:50241 ms47.4%
Client.getdjango/test/client.py:113341 ms47.4%
RequestFactory.getdjango/test/client.py:47541 ms47.4%
RequestFactory.genericdjango/test/client.py:67141 ms47.4%
Client.requestdjango/test/client.py:109141 ms47.4%
ClientHandler.__call__django/test/client.py:18641 ms47.4%
BaseHandler.get_responsedjango/core/handlers/base.py:14241 ms47.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5641 ms47.4%
MiddlewareMixin.__call__django/utils/deprecation.py:38041 ms47.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5641 ms47.4%
MiddlewareMixin.__call__django/utils/deprecation.py:38041 ms47.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5641 ms47.4%
MiddlewareMixin.__call__django/utils/deprecation.py:38041 ms47.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5640 ms45.6%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12340 ms45.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5640 ms45.6%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:14540 ms45.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5640 ms45.6%
MiddlewareMixin.__call__django/utils/deprecation.py:38040 ms45.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5640 ms45.6%
MiddlewareMixin.__call__django/utils/deprecation.py:38037 ms42.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5637 ms42.0%
MiddlewareMixin.__call__django/utils/deprecation.py:38037 ms42.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5637 ms42.0%
MiddlewareMixin.__call__django/utils/deprecation.py:38035 ms40.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5635 ms40.1%
MiddlewareMixin.__call__django/utils/deprecation.py:38035 ms40.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5635 ms40.1%
MiddlewareMixin.__call__django/utils/deprecation.py:38035 ms40.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5635 ms40.1%
MiddlewareMixin.__call__django/utils/deprecation.py:38035 ms40.1%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5635 ms40.1%
BaseHandler._get_responsedjango/core/handlers/base.py:19935 ms40.1%
loginaccounts/views.py:280 return render(request, "login.html")35 ms40.1%
renderdjango/shortcuts.py:2735 ms40.1%
render_to_stringdjango/template/loader.py:6235 ms40.1%
Template.renderdjango/template/backends/django.py:10735 ms40.1%
Template.renderdjango/template/base.py:17535 ms40.1%
instrumented_test_renderdjango/test/utils.py:11335 ms40.1%
NodeList.renderdjango/template/base.py:110835 ms40.1%
Node.render_annotateddjango/template/base.py:106935 ms40.1%
ExtendsNode.renderdjango/template/loader_tags.py:16033 ms38.3%
instrumented_test_renderdjango/test/utils.py:11333 ms38.3%
NodeList.renderdjango/template/base.py:110833 ms38.3%
Node.render_annotateddjango/template/base.py:106933 ms38.3%
BlockNode.renderdjango/template/loader_tags.py:6626 ms29.2%
NodeList.renderdjango/template/base.py:110826 ms29.2%
Node.render_annotateddjango/template/base.py:106926 ms29.2%
WithNode.renderdjango/template/defaulttags.py:58126 ms29.2%
NodeList.renderdjango/template/base.py:110826 ms29.2%
Node.render_annotateddjango/template/base.py:106926 ms29.2%
IncludeNode.renderdjango/template/loader_tags.py:21126 ms29.2%
Template.renderdjango/template/base.py:17726 ms29.2%
instrumented_test_renderdjango/test/utils.py:11326 ms29.2%
NodeList.renderdjango/template/base.py:110826 ms29.2%
Node.render_annotateddjango/template/base.py:106926 ms29.2%
SimpleNode.renderdjango/template/library.py:34326 ms29.2%
instances_datalistaccounts/templatetags/account_extras.py:36 for instance in instances:22 ms25.5%
QuerySet.__iter__django/db/models/query.py:43922 ms25.5%
QuerySet._fetch_alldjango/db/models/query.py:226222 ms25.5%
FlatValuesListIterable.__iter__django/db/models/query.py:30222 ms25.5%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:157422 ms25.5%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:162522 ms25.5%
CursorWrapper.executedjango/db/backends/utils.py:7921 ms23.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9221 ms23.7%
CursorWrapper._executedjango/db/backends/utils.py:10521 ms23.7%
Cursor.executepsycopg/cursor.py:11321 ms23.7%
Connection.waitpsycopg/connection.py:49521 ms23.7%
BaseCursor._execute_genpsycopg/_cursor_base.py:20619 ms21.9%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:28619 ms21.9%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:7819 ms21.9%
instances_datalistaccounts/templatetags/account_extras.py:34 instances = Instance.objects.filter(deleted_at__isnull=True).values_list("domain", flat=True)3 ms3.6%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:873 ms3.6%
QuerySet.filterdjango/db/models/query.py:16763 ms3.6%
QuerySet._filter_or_excludedjango/db/models/query.py:16943 ms3.6%
QuerySet._filter_or_exclude_inplacedjango/db/models/query.py:17043 ms3.6%
Query.add_qdjango/db/models/sql/query.py:16812 ms1.8%
Query._add_qdjango/db/models/sql/query.py:17132 ms1.8%
Query.build_filterdjango/db/models/sql/query.py:16132 ms1.8%
Query.build_lookupdjango/db/models/sql/query.py:14302 ms1.8%
BaseExpression.get_lookupdjango/db/models/expressions.py:4042 ms1.8%
RegisterLookupMixin.get_lookupdjango/db/models/query_utils.py:3502 ms1.8%
Query.add_qdjango/db/models/sql/query.py:16832 ms1.8%
Node.adddjango/utils/tree.py:1012 ms1.8%
IfNode.renderdjango/template/defaulttags.py:3335 ms5.5%
NodeList.renderdjango/template/base.py:11085 ms5.5%
Node.render_annotateddjango/template/base.py:10695 ms5.5%
IncludeNode.renderdjango/template/loader_tags.py:2113 ms3.6%
Template.renderdjango/template/base.py:1773 ms3.6%
instrumented_test_renderdjango/test/utils.py:1133 ms3.6%
NodeList.renderdjango/template/base.py:11083 ms3.6%
Node.render_annotateddjango/template/base.py:10693 ms3.6%
SimpleNode.renderdjango/template/library.py:3433 ms3.6%
instances_datalistaccounts/templatetags/account_extras.py:36 for instance in instances:3 ms3.6%
QuerySet.__iter__django/db/models/query.py:4393 ms3.6%
QuerySet._fetch_alldjango/db/models/query.py:22623 ms3.6%
FlatValuesListIterable.__iter__django/db/models/query.py:3023 ms3.6%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15743 ms3.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16253 ms3.6%
CursorWrapper.executedjango/db/backends/utils.py:793 ms3.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms3.6%
CursorWrapper._executedjango/db/backends/utils.py:1053 ms3.6%
Cursor.executepsycopg/cursor.py:1133 ms3.6%
Connection.waitpsycopg/connection.py:4953 ms3.6%
BaseCursor._execute_genpsycopg/_cursor_base.py:2063 ms3.6%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2863 ms3.6%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:783 ms3.6%
SimpleNode.renderdjango/template/library.py:3432 ms1.8%
InclusionNode.renderdjango/template/library.py:3962 ms1.8%
RequestContext.newdjango/template/context.py:2822 ms1.8%
URLNode.renderdjango/template/defaulttags.py:5112 ms1.8%
reversedjango/urls/base.py:492 ms1.8%
ExtendsNode.renderdjango/template/loader_tags.py:1522 ms1.8%
NodeList.get_nodes_by_typedjango/template/base.py:11142 ms1.8%
Node.get_nodes_by_typedjango/template/base.py:10952 ms1.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3822 ms1.8%
CsrfViewMiddleware.process_responsedjango/middleware/csrf.py:4742 ms1.8%
CsrfViewMiddleware._set_csrf_cookiedjango/middleware/csrf.py:2582 ms1.8%
HttpResponseBase.set_cookiedjango/http/response.py:2792 ms1.8%
Morsel.__setitem__<stdlib>/http/cookies.py:3072 ms1.8%
_has_control_character<stdlib>/http/cookies.py:1812 ms1.8%
_has_control_character.<locals>.<genexpr><stdlib>/http/cookies.py:1812 ms1.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3793 ms3.6%
LocaleMiddleware.process_requestdjango/middleware/locale.py:283 ms3.6%
get_language_from_pathdjango/utils/translation/__init__.py:2523 ms3.6%
get_language_from_pathdjango/utils/translation/trans_real.py:5593 ms3.6%
get_supported_language_variantdjango/utils/translation/trans_real.py:5422 ms1.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3802 ms1.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:562 ms1.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3802 ms1.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:562 ms1.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3802 ms1.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:562 ms1.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3802 ms1.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:562 ms1.8%
BaseHandler._get_responsedjango/core/handlers/base.py:1832 ms1.8%
BaseHandler.resolve_requestdjango/core/handlers/base.py:3152 ms1.8%
URLResolver.resolvedjango/urls/resolvers.py:6782 ms1.8%
TestEditStarterPackAccounts.test_not_logged_instarter_packs/tests.py:255 response = self.client.get(reverse("edit_accounts_starter_pack", args=[self.starter_pack.slug]))35 ms40.1%
Client.getdjango/test/client.py:113335 ms40.1%
RequestFactory.getdjango/test/client.py:47535 ms40.1%
RequestFactory.genericdjango/test/client.py:67135 ms40.1%
Client.requestdjango/test/client.py:109135 ms40.1%
ClientHandler.__call__django/test/client.py:17332 ms36.5%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6332 ms36.5%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10427 ms31.0%
WhiteNoise.add_fileswhitenoise/base.py:10827 ms31.0%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12021 ms23.7%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13121 ms23.7%
WhiteNoise.get_static_filewhitenoise/base.py:21716 ms18.2%
StaticFile.__init__whitenoise/responders.py:725 ms5.5%
StaticFile.get_file_statswhitenoise/responders.py:1612 ms1.8%
__init____init__:-12 ms1.8%
FileEntry.__init__whitenoise/responders.py:2632 ms1.8%
FileEntry.stat_regular_filewhitenoise/responders.py:2762 ms1.8%
<GC>~2 ms1.8%
StaticFile.__init__whitenoise/responders.py:735 ms5.5%
StaticFile.get_headerswhitenoise/responders.py:1765 ms5.5%
formatdate<stdlib>/email/utils.py:2663 ms3.6%
format_datetime<stdlib>/email/utils.py:2842 ms1.8%
_format_timetuple_and_zone<stdlib>/email/utils.py:2322 ms1.8%
Headers.__setitem__<stdlib>/wsgiref/headers.py:622 ms1.8%
Headers.__delitem__<stdlib>/wsgiref/headers.py:722 ms1.8%
StaticFile.__init__whitenoise/responders.py:762 ms1.8%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1882 ms1.8%
Headers.__contains__<stdlib>/wsgiref/headers.py:872 ms1.8%
Headers.get<stdlib>/wsgiref/headers.py:1042 ms1.8%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:462 ms1.8%
StaticFile.__init__whitenoise/responders.py:742 ms1.8%
parsedate<stdlib>/email/_parseaddr.py:1852 ms1.8%
WhiteNoise.get_static_filewhitenoise/base.py:2125 ms5.5%
WhiteNoise.add_cache_headerswhitenoise/base.py:2335 ms5.5%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1762 ms1.8%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1972 ms1.8%
URLMixin.urldebug_toolbar/panels/staticfiles.py:202 ms1.8%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:2352 ms1.8%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:2162 ms1.8%
FileSystemStorage.urldjango/core/files/storage/filesystem.py:2072 ms1.8%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1802 ms1.8%
basename<frozen posixpath>:1702 ms1.8%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1156 ms7.3%
scantreewhitenoise/base.py:2716 ms7.3%
scantreewhitenoise/base.py:2693 ms3.6%
scantreewhitenoise/base.py:2732 ms1.8%
scantreewhitenoise/base.py:2732 ms1.8%
scantreewhitenoise/base.py:2712 ms1.8%
scantreewhitenoise/base.py:2732 ms1.8%
<GC>~2 ms1.8%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:1113 ms3.6%
WhiteNoise.add_fileswhitenoise/base.py:1083 ms3.6%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1203 ms3.6%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:1313 ms3.6%
WhiteNoise.get_static_filewhitenoise/base.py:2173 ms3.6%
StaticFile.__init__whitenoise/responders.py:762 ms1.8%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1882 ms1.8%
StaticFile.__init__whitenoise/responders.py:722 ms1.8%
ClientHandler.__call__django/test/client.py:1782 ms1.8%
__init____init__:-12 ms1.8%
ClientHandler.__call__django/test/client.py:1862 ms1.8%
BaseHandler.get_responsedjango/core/handlers/base.py:1422 ms1.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:562 ms1.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3802 ms1.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:562 ms1.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3802 ms1.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:562 ms1.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3802 ms1.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:562 ms1.8%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:1232 ms1.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:562 ms1.8%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1452 ms1.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:562 ms1.8%
MiddlewareMixin.__call__django/utils/deprecation.py:3792 ms1.8%
SessionMiddleware.process_requestdjango/contrib/sessions/middleware.py:202 ms1.8%
TransactionTestCase._post_teardowndjango/test/testcases.py:1243 self._fixture_teardown()8 ms9.1%
TestCase._fixture_teardowndjango/test/testcases.py:14985 ms5.5%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4953 ms3.6%
CursorWrapper.executedjango/db/backends/utils.py:793 ms3.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms3.6%
CursorWrapper._executedjango/db/backends/utils.py:1033 ms3.6%
Cursor.executepsycopg/cursor.py:1133 ms3.6%
Connection.waitpsycopg/connection.py:4953 ms3.6%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4962 ms1.8%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.8%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms1.8%
Cursor.executepsycopg/cursor.py:1132 ms1.8%
Connection.waitpsycopg/connection.py:4952 ms1.8%
TestCase._fixture_teardowndjango/test/testcases.py:14972 ms1.8%
TestCase._should_check_constraintsdjango/test/testcases.py:15062 ms1.8%
DatabaseWrapper.is_usabledjango/db/backends/postgresql/base.py:5042 ms1.8%
Cursor.executepsycopg/cursor.py:1132 ms1.8%
Connection.waitpsycopg/connection.py:4952 ms1.8%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms1.8%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms1.8%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms1.8%
TestCase._fixture_teardowndjango/test/testcases.py:15002 ms1.8%
TestCase._rollback_atomicsdjango/test/testcases.py:14082 ms1.8%
Atomic.__exit__django/db/transaction.py:2952 ms1.8%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms1.8%
BaseDatabaseWrapper.savepoint_rollbackdjango/db/backends/base/base.py:4132 ms1.8%
BaseDatabaseWrapper._savepoint_rollbackdjango/db/backends/base/base.py:3712 ms1.8%
CursorWrapper.executedjango/db/backends/utils.py:792 ms1.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms1.8%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms1.8%
Cursor.executepsycopg/cursor.py:1132 ms1.8%
Connection.waitpsycopg/connection.py:4952 ms1.8%
Estimated from 55 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
starter_packs/tests.py:255
response = self.client.get(reverse("edit_accounts_starter_pack", args=[self.starter_pack.slug]))
TestEditStarterPackAccounts.test_not_logged_in
· Libraries
|
35 ms |
|
accounts/templatetags/account_extras.py:36
for instance in instances:
instances_datalist
· Database
|
26 ms |
|
starter_packs/tests.py:256
self.assertRedirects(
TestEditStarterPackAccounts.test_not_logged_in
· Libraries
|
6 ms |
|
accounts/views.py:280
return render(request, "login.html")
login
· Templates
|
6 ms |
|
accounts/templatetags/account_extras.py:34
instances = Instance.objects.filter(deleted_at__isnull=True).values_list("domain", flat=True)
instances_datalist
· Database
|
3 ms |
Fixtures
Exact setup time| _template_string_if_invalid_marker function | 0.05 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
7 queries · 6 msNo repeated queries.
Biggest pieces of work
|
call test body
starter_packs/tests.py:256
|
77 ms |
|
call _post_teardown
django/test/testcases.py:1243
|
8 ms |
| call pytest internals | 2 ms |
|
setup __init__
__init__:-1
|
0.96 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 | 87 ms | Profile |
| 16 hours ago | CI github-actions:test | passed | 79 ms | Profile |
| 22 hours ago | CI github-actions:test | passed | 103 ms | Profile |
| 1 week, 5 days ago | CI github-actions:test | passed | 103 ms | Profile |
| 2 weeks, 2 days ago | CI github-actions:test | passed | 69 ms | Profile |
| 2 weeks, 2 days ago | CI github-actions:test | passed | 101 ms | Profile |
| 2 weeks, 4 days ago | CI github-actions:test | passed | 89 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 51 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 261 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 198 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 193 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 92 ms | Run |