Tests / starter_packs/tests.py
TestCreateStarterPack::test_form_error
First seen 1 year, 10 months ago in 1b5db0c
CI
github-actions:test
4 runs
Average
211 ms
median 244 ms
max 293 ms
max 293 ms
Phases
Setup 3 ms
Call 205 ms
Teardown 2 ms
Categories
Database 33 ms
Other (Libraries, Templates, pytest, Deep copies, ...) 178 ms
25 database queries per run
Needs 726 KB of memory (max 836 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 7 hours ago ·
open run
setup0.69 ms1.1%
call59 ms93.1%
TestCreateStarterPack.test_form_errorstarter_packs/tests.py:125 response = self.client.post(reverse("create_starter_pack"), {})48 ms75.2%
Client.postdjango/test/client.py:116248 ms75.2%
RequestFactory.postdjango/test/client.py:49948 ms75.2%
RequestFactory.genericdjango/test/client.py:67148 ms75.2%
Client.requestdjango/test/client.py:109148 ms75.2%
ClientHandler.__call__django/test/client.py:17334 ms53.7%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6334 ms53.7%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10434 ms53.7%
WhiteNoise.add_fileswhitenoise/base.py:10834 ms53.7%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12023 ms35.8%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13123 ms35.8%
WhiteNoise.get_static_filewhitenoise/base.py:21721 ms32.2%
StaticFile.__init__whitenoise/responders.py:729 ms14.3%
StaticFile.get_file_statswhitenoise/responders.py:1617 ms10.7%
__init____init__:-15 ms7.2%
FileEntry.__init__whitenoise/responders.py:2635 ms7.2%
FileEntry.stat_regular_filewhitenoise/responders.py:2765 ms7.2%
<GC>~5 ms7.2%
StaticFile.get_file_statswhitenoise/responders.py:1572 ms3.6%
formatdate<stdlib>/email/utils.py:2662 ms3.6%
Headers.__init__<stdlib>/wsgiref/headers.py:442 ms3.6%
StaticFile.__init__whitenoise/responders.py:735 ms7.2%
StaticFile.get_headerswhitenoise/responders.py:1672 ms3.6%
StaticFile.get_headerswhitenoise/responders.py:1762 ms3.6%
StaticFile.__init__whitenoise/responders.py:762 ms3.6%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1892 ms3.6%
WhiteNoise.get_static_filewhitenoise/base.py:2122 ms3.6%
WhiteNoise.add_cache_headerswhitenoise/base.py:2332 ms3.6%
WhiteNoise.update_files_dictionarywhitenoise/base.py:11511 ms17.9%
scantreewhitenoise/base.py:27111 ms17.9%
scantreewhitenoise/base.py:2719 ms14.3%
scantreewhitenoise/base.py:2735 ms7.2%
scantreewhitenoise/base.py:2715 ms7.2%
scantreewhitenoise/base.py:2715 ms7.2%
scantreewhitenoise/base.py:2715 ms7.2%
scantreewhitenoise/base.py:2732 ms3.6%
scantreewhitenoise/base.py:2692 ms3.6%
scantreewhitenoise/base.py:2732 ms3.6%
ClientHandler.__call__django/test/client.py:18614 ms21.5%
BaseHandler.get_responsedjango/core/handlers/base.py:14214 ms21.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5614 ms21.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38014 ms21.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5614 ms21.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38014 ms21.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5614 ms21.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38014 ms21.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5614 ms21.5%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12314 ms21.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5614 ms21.5%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:14514 ms21.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5614 ms21.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38014 ms21.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5614 ms21.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38014 ms21.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5614 ms21.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38014 ms21.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5614 ms21.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38014 ms21.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5614 ms21.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38014 ms21.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5614 ms21.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38014 ms21.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5614 ms21.5%
MiddlewareMixin.__call__django/utils/deprecation.py:38014 ms21.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5614 ms21.5%
BaseHandler._get_responsedjango/core/handlers/base.py:19914 ms21.5%
user_passes_test.<locals>.decorator.<locals>._view_wrapperdjango/contrib/auth/decorators.py:6211 ms17.9%
create_starter_packstarter_packs/views.py:573 return render(11 ms17.9%
renderdjango/shortcuts.py:2711 ms17.9%
render_to_stringdjango/template/loader.py:6211 ms17.9%
Template.renderdjango/template/backends/django.py:10711 ms17.9%
Template.renderdjango/template/base.py:17511 ms17.9%
instrumented_test_renderdjango/test/utils.py:11311 ms17.9%
NodeList.renderdjango/template/base.py:110811 ms17.9%
Node.render_annotateddjango/template/base.py:106911 ms17.9%
ExtendsNode.renderdjango/template/loader_tags.py:16011 ms17.9%
instrumented_test_renderdjango/test/utils.py:11311 ms17.9%
NodeList.renderdjango/template/base.py:110811 ms17.9%
Node.render_annotateddjango/template/base.py:106911 ms17.9%
BlockNode.renderdjango/template/loader_tags.py:669 ms14.3%
NodeList.renderdjango/template/base.py:11089 ms14.3%
Node.render_annotateddjango/template/base.py:10699 ms14.3%
ForNode.renderdjango/template/defaulttags.py:2495 ms7.2%
Node.render_annotateddjango/template/base.py:10695 ms7.2%
IfNode.renderdjango/template/defaulttags.py:3332 ms3.6%
NodeList.renderdjango/template/base.py:11082 ms3.6%
VariableNode.renderdjango/template/base.py:11732 ms3.6%
render_value_in_contextdjango/template/base.py:11512 ms3.6%
conditional_escapedjango/utils/html.py:1322 ms3.6%
keep_lazy.<locals>.decorator.<locals>.wrapperdjango/utils/functional.py:2262 ms3.6%
keep_lazy.<locals>.decorator.<locals>.wrapper.<locals>.<genexpr>django/utils/functional.py:2282 ms3.6%
VariableNode.renderdjango/template/base.py:11732 ms3.6%
render_value_in_contextdjango/template/base.py:11502 ms3.6%
RenderableMixin.renderdjango/forms/utils.py:552 ms3.6%
BaseRenderer.renderdjango/forms/renderers.py:292 ms3.6%
Template.renderdjango/template/backends/django.py:1072 ms3.6%
Template.renderdjango/template/base.py:1752 ms3.6%
instrumented_test_renderdjango/test/utils.py:1132 ms3.6%
NodeList.renderdjango/template/base.py:11082 ms3.6%
Node.render_annotateddjango/template/base.py:10692 ms3.6%
IncludeNode.renderdjango/template/loader_tags.py:2112 ms3.6%
Template.renderdjango/template/base.py:1772 ms3.6%
instrumented_test_renderdjango/test/utils.py:1132 ms3.6%
NodeList.renderdjango/template/base.py:11082 ms3.6%
Node.render_annotateddjango/template/base.py:10692 ms3.6%
IfNode.renderdjango/template/defaulttags.py:3332 ms3.6%
NodeList.renderdjango/template/base.py:11082 ms3.6%
IfNode.renderdjango/template/defaulttags.py:3262 ms3.6%
prefix.<locals>.Operator.evaldjango/template/smartif.py:882 ms3.6%
<lambda>django/template/smartif.py:1012 ms3.6%
TemplateLiteral.evaldjango/template/defaulttags.py:9182 ms3.6%
FilterExpression.resolvedjango/template/base.py:8062 ms3.6%
Variable.resolvedjango/template/base.py:9452 ms3.6%
Variable._resolve_lookupdjango/template/base.py:9932 ms3.6%
LazyObject.__getattribute__django/utils/functional.py:2802 ms3.6%
IfNode.renderdjango/template/defaulttags.py:3332 ms3.6%
NodeList.renderdjango/template/base.py:11082 ms3.6%
Node.render_annotateddjango/template/base.py:10692 ms3.6%
VariableNode.renderdjango/template/base.py:11672 ms3.6%
FilterExpression.resolvedjango/template/base.py:8062 ms3.6%
Variable.resolvedjango/template/base.py:9452 ms3.6%
Variable._resolve_lookupdjango/template/base.py:9932 ms3.6%
ForwardManyToOneDescriptor.__get__django/db/models/fields/related_descriptors.py:2662 ms3.6%
FetchOne.fetchdjango/db/models/fetch_modes.py:172 ms3.6%
ForwardManyToOneDescriptor.fetch_onedjango/db/models/fields/related_descriptors.py:2792 ms3.6%
ForwardManyToOneDescriptor.get_objectdjango/db/models/fields/related_descriptors.py:2312 ms3.6%
QuerySet.getdjango/db/models/query.py:7022 ms3.6%
QuerySet.__len__django/db/models/query.py:4212 ms3.6%
QuerySet._fetch_alldjango/db/models/query.py:22622 ms3.6%
ModelIterable.__iter__django/db/models/query.py:1032 ms3.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16252 ms3.6%
CursorWrapper.executedjango/db/backends/utils.py:792 ms3.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.6%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms3.6%
Cursor.executepsycopg/cursor.py:1132 ms3.6%
Connection.waitpsycopg/connection.py:4952 ms3.6%
user_passes_test.<locals>.decorator.<locals>._view_wrapperdjango/contrib/auth/decorators.py:592 ms3.6%
login_required.<locals>.<lambda>django/contrib/auth/decorators.py:822 ms3.6%
new_method_proxy.<locals>.innerdjango/utils/functional.py:2512 ms3.6%
SimpleLazyObject._setupdjango/utils/functional.py:4042 ms3.6%
AuthenticationMiddleware.process_request.<locals>.<lambda>django/contrib/auth/middleware.py:392 ms3.6%
get_userdjango/contrib/auth/middleware.py:192 ms3.6%
get_userdjango/contrib/auth/__init__.py:2942 ms3.6%
ModelBackend.get_userdjango/contrib/auth/backends.py:2372 ms3.6%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms3.6%
QuerySet.getdjango/db/models/query.py:7022 ms3.6%
QuerySet.__len__django/db/models/query.py:4212 ms3.6%
TestCreateStarterPack.test_form_errorstarter_packs/tests.py:124 self.client.force_login(self.user)5 ms7.2%
ClientMixin.force_logindjango/test/client.py:8585 ms7.2%
ClientMixin._logindjango/test/client.py:8842 ms3.6%
ClientMixin.sessiondjango/test/client.py:8152 ms3.6%
SessionStore.savedjango/contrib/sessions/backends/db.py:1212 ms3.6%
SessionStore.createdjango/contrib/sessions/backends/db.py:742 ms3.6%
SessionStore.savedjango/contrib/sessions/backends/db.py:1232 ms3.6%
SessionStore.create_model_instancedjango/contrib/sessions/backends/db.py:1022 ms3.6%
SessionBase.encodedjango/contrib/sessions/backends/base.py:1292 ms3.6%
dumpsdjango/core/signing.py:1912 ms3.6%
Signer.sign_objectdjango/core/signing.py:2792 ms3.6%
TimestampSigner.signdjango/core/signing.py:3012 ms3.6%
Signer.signdjango/core/signing.py:2452 ms3.6%
Signer.signaturedjango/core/signing.py:2422 ms3.6%
base64_hmacdjango/core/signing.py:1142 ms3.6%
salted_hmacdjango/utils/crypto.py:612 ms3.6%
ClientMixin._logindjango/test/client.py:8892 ms3.6%
logindjango/contrib/auth/__init__.py:1892 ms3.6%
SessionBase.cycle_keydjango/contrib/sessions/backends/base.py:4402 ms3.6%
SessionStore.deletedjango/contrib/sessions/backends/db.py:1752 ms3.6%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms3.6%
QuerySet.getdjango/db/models/query.py:7022 ms3.6%
QuerySet.__len__django/db/models/query.py:4212 ms3.6%
QuerySet._fetch_alldjango/db/models/query.py:22622 ms3.6%
ModelIterable.__iter__django/db/models/query.py:1032 ms3.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16252 ms3.6%
CursorWrapper.executedjango/db/backends/utils.py:792 ms3.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.6%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms3.6%
Cursor.executepsycopg/cursor.py:1132 ms3.6%
Connection.waitpsycopg/connection.py:4952 ms3.6%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms3.6%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms3.6%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms3.6%
TestCreateStarterPack.test_form_errorstarter_packs/tests.py:126 self.assertEqual(response.status_code, 200)2 ms3.6%
TestCreateStarterPack.test_form_errorstarter_packs/tests.py:128 self.assertEqual(self.user.starterpack_set.count(), 0)2 ms3.6%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:872 ms3.6%
QuerySet.countdjango/db/models/query.py:6772 ms3.6%
Query.get_countdjango/db/models/sql/query.py:6572 ms3.6%
Query.get_aggregationdjango/db/models/sql/query.py:6392 ms3.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16252 ms3.6%
CursorWrapper.executedjango/db/backends/utils.py:792 ms3.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.6%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms3.6%
Cursor.executepsycopg/cursor.py:1132 ms3.6%
Connection.waitpsycopg/connection.py:4952 ms3.6%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms3.6%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms3.6%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms3.6%
TransactionTestCase._post_teardowndjango/test/testcases.py:1243 self._fixture_teardown()2 ms3.6%
TestCase._fixture_teardowndjango/test/testcases.py:14982 ms3.6%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4962 ms3.6%
CursorWrapper.executedjango/db/backends/utils.py:792 ms3.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms3.6%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms3.6%
Cursor.executepsycopg/cursor.py:1132 ms3.6%
Connection.waitpsycopg/connection.py:4952 ms3.6%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms3.6%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms3.6%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms3.6%
teardown4 ms5.8%
TestCase.tearDownClassdjango/test/testcases.py:1458 conn.close()4 ms5.8%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:264 ms5.8%
BaseDatabaseWrapper.closedjango/db/backends/base/base.py:3554 ms5.8%
DatabaseWrapper._closedjango/db/backends/postgresql/base.py:4084 ms5.8%
Connection.closepsycopg/connection.py:2014 ms5.8%
Estimated from 30 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
starter_packs/tests.py:125
response = self.client.post(reverse("create_starter_pack"), {})
TestCreateStarterPack.test_form_error
· Libraries
|
36 ms |
|
starter_packs/views.py:573
return render(
create_starter_pack
· Templates
|
11 ms |
|
starter_packs/tests.py:124
self.client.force_login(self.user)
TestCreateStarterPack.test_form_error
· Libraries
|
5 ms |
|
starter_packs/tests.py:126
self.assertEqual(response.status_code, 200)
TestCreateStarterPack.test_form_error
· pytest
|
2 ms |
|
starter_packs/tests.py:128
self.assertEqual(self.user.starterpack_set.count(), 0)
TestCreateStarterPack.test_form_error
· Database
|
2 ms |
Fixtures
Exact setup time| _dj_autoclear_mailbox function | 0.05 ms |
| _template_string_if_invalid_marker function | 0.03 ms |
| _django_db_marker function | 0.03 ms |
| _django_isolate_apps function | 0.03 ms |
| _live_server_helper function | 0.02 ms |
| _django_set_urlconf function | 0.02 ms |
| _django_clear_site_cache function | 0.02 ms |
| monkeypatch function | 0.02 ms |
Database
25 queries · 6 msNo repeated queries.
Biggest pieces of work
|
call test body
starter_packs/tests.py:125
|
57 ms |
|
teardown tearDownClass
django/test/testcases.py:1458
|
4 ms |
|
call _post_teardown
django/test/testcases.py:1243
|
2 ms |
| setup pytest internals | 0.69 ms |
Reliability
5 results · 0 CI failures · 0 local failuresThis test hasn't failed recently.
History
Latest 50 results, oldest first in the strip| When | Environment | Outcome | Duration | |
|---|---|---|---|---|
| 7 hours ago | CI github-actions:test | passed | 64 ms | Profile |
| 7 hours ago | CI github-actions:test | passed | 293 ms | Profile |
| 7 hours ago | CI github-actions:test | passed | 248 ms | Profile |
| 12 hours ago | CI github-actions:test | passed | 240 ms | Profile |
| 12 hours ago | CI github-actions:test | passed | 98 ms | Run |
| 3 months, 3 weeks ago | CI github-actions | passed | 71 ms | Run |
| 3 months, 3 weeks ago | CI github-actions | passed | 102 ms | Run |
| 3 months, 3 weeks ago | CI github-actions | passed | 102 ms | Run |
| 3 months, 3 weeks ago | CI github-actions | passed | 118 ms | Run |
| 3 months, 3 weeks ago | CI github-actions | passed | 100 ms | Run |
| 3 months, 3 weeks ago | CI github-actions | passed | 112 ms | Run |
| 3 months, 3 weeks ago | CI github-actions | passed | 100 ms | Run |
| 3 months, 3 weeks ago | CI github-actions | passed | 106 ms | Run |
| 3 months, 3 weeks ago | CI github-actions | passed | 116 ms | Run |
| 3 months, 4 weeks ago | CI github-actions | passed | 116 ms | Run |
| 3 months, 4 weeks ago | CI github-actions | passed | 109 ms | Run |
| 3 months, 4 weeks ago | CI github-actions | passed | 110 ms | Run |
| 3 months, 4 weeks ago | CI github-actions | passed | 105 ms | Run |
| 3 months, 4 weeks ago | CI github-actions | passed | 116 ms | Run |
| 3 months, 4 weeks ago | CI github-actions | passed | 111 ms | Run |