Tests / confs/tests.py
TestCreateConference::test_rejects_end_date_before_start
First seen 3 weeks ago in 0c23747
CI
github-actions:test
11 runs
Average
839 ms
median 859 ms
max 1.26 s
max 1.26 s
Phases
Setup 2 ms
Call 837 ms
Teardown 0.37 ms
Categories
Password hashing 596 ms
Database 21 ms
Test code 0.49 ms
Other (Templates, Libraries, pytest, Unsampled, ...) 222 ms
26 database queries per run
Needs 571 KB of memory (max 2 MB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 7 hours ago ·
open run
call702 ms99.8%
TestCreateConference.setUpconfs/tests.py:1044 self.user = User.objects.create_user("alice", password="pw")526 ms74.8%
UserManager.create_userdjango/contrib/auth/models.py:180526 ms74.8%
UserManager._create_userdjango/contrib/auth/models.py:167525 ms74.7%
UserManager._create_user_objectdjango/contrib/auth/models.py:160525 ms74.7%
make_passworddjango/contrib/auth/hashers.py:118525 ms74.7%
PBKDF2PasswordHasher.encodedjango/contrib/auth/hashers.py:333525 ms74.7%
pbkdf2django/utils/crypto.py:93525 ms74.7%
1 smaller frames hidden
TestCreateConference.test_rejects_end_date_before_startconfs/tests.py:1100 response = self.client.post(reverse("create_conference"), data)157 ms22.3%
Client.postdjango/test/client.py:1162157 ms22.3%
RequestFactory.postdjango/test/client.py:499157 ms22.3%
RequestFactory.genericdjango/test/client.py:671157 ms22.3%
Client.requestdjango/test/client.py:1091157 ms22.3%
ClientHandler.__call__django/test/client.py:186143 ms20.3%
BaseHandler.get_responsedjango/core/handlers/base.py:142143 ms20.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:56143 ms20.3%
MiddlewareMixin.__call__django/utils/deprecation.py:380143 ms20.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:56143 ms20.3%
MiddlewareMixin.__call__django/utils/deprecation.py:380143 ms20.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:56143 ms20.3%
MiddlewareMixin.__call__django/utils/deprecation.py:380143 ms20.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:56143 ms20.3%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:123143 ms20.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:56143 ms20.3%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:145143 ms20.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:56143 ms20.3%
MiddlewareMixin.__call__django/utils/deprecation.py:380143 ms20.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:56143 ms20.3%
MiddlewareMixin.__call__django/utils/deprecation.py:380143 ms20.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:56143 ms20.3%
MiddlewareMixin.__call__django/utils/deprecation.py:380143 ms20.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:56143 ms20.3%
MiddlewareMixin.__call__django/utils/deprecation.py:380143 ms20.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:56143 ms20.3%
MiddlewareMixin.__call__django/utils/deprecation.py:380143 ms20.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:56143 ms20.3%
MiddlewareMixin.__call__django/utils/deprecation.py:380143 ms20.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:56143 ms20.3%
MiddlewareMixin.__call__django/utils/deprecation.py:380143 ms20.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:56143 ms20.3%
BaseHandler._get_responsedjango/core/handlers/base.py:199143 ms20.3%
user_passes_test.<locals>.decorator.<locals>._view_wrapperdjango/contrib/auth/decorators.py:62143 ms20.3%
create_conferenceconfs/views.py:509 return render(143 ms20.3%
renderdjango/shortcuts.py:27143 ms20.3%
render_to_stringdjango/template/loader.py:62143 ms20.3%
Template.renderdjango/template/backends/django.py:107143 ms20.3%
Template.renderdjango/template/base.py:175143 ms20.3%
instrumented_test_renderdjango/test/utils.py:113143 ms20.3%
NodeList.renderdjango/template/base.py:1108143 ms20.3%
Node.render_annotateddjango/template/base.py:1069143 ms20.3%
ExtendsNode.renderdjango/template/loader_tags.py:160143 ms20.3%
instrumented_test_renderdjango/test/utils.py:113143 ms20.3%
NodeList.renderdjango/template/base.py:1108143 ms20.3%
Node.render_annotateddjango/template/base.py:1069143 ms20.3%
BlockNode.renderdjango/template/loader_tags.py:66143 ms20.3%
NodeList.renderdjango/template/base.py:1108143 ms20.3%
Node.render_annotateddjango/template/base.py:1069143 ms20.3%
VariableNode.renderdjango/template/base.py:1173118 ms16.8%
render_value_in_contextdjango/template/base.py:1150118 ms16.8%
RenderableFieldMixin.__str__django/forms/utils.py:79118 ms16.8%
BoundField.as_widgetdjango/forms/boundfield.py:108118 ms16.8%
Widget.renderdjango/forms/widgets.py:376118 ms16.8%
Widget._renderdjango/forms/widgets.py:381118 ms16.8%
BaseRenderer.renderdjango/forms/renderers.py:29118 ms16.8%
Template.renderdjango/template/backends/django.py:107118 ms16.8%
Template.renderdjango/template/base.py:175118 ms16.8%
instrumented_test_renderdjango/test/utils.py:113118 ms16.8%
NodeList.renderdjango/template/base.py:1108118 ms16.8%
Node.render_annotateddjango/template/base.py:1069118 ms16.8%
ForNode.renderdjango/template/defaulttags.py:249117 ms16.6%
Node.render_annotateddjango/template/base.py:1069117 ms16.6%
ForNode.renderdjango/template/defaulttags.py:249113 ms16.0%
Node.render_annotateddjango/template/base.py:1069112 ms15.9%
IncludeNode.renderdjango/template/loader_tags.py:211112 ms15.9%
Template.renderdjango/template/base.py:177110 ms15.7%
instrumented_test_renderdjango/test/utils.py:113109 ms15.6%
NodeList.renderdjango/template/base.py:1108109 ms15.6%
Node.render_annotateddjango/template/base.py:1069108 ms15.4%
IncludeNode.renderdjango/template/loader_tags.py:211108 ms15.4%
Template.renderdjango/template/base.py:171104 ms14.8%
RenderContext.push_statedjango/template/context.py:221104 ms14.8%
BaseContext.popdjango/template/context.py:65104 ms14.8%
1 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
ForNode.renderdjango/template/defaulttags.py:24922 ms3.1%
Node.render_annotateddjango/template/base.py:106922 ms3.1%
VariableNode.renderdjango/template/base.py:116722 ms3.1%
FilterExpression.resolvedjango/template/base.py:80622 ms3.1%
Variable.resolvedjango/template/base.py:94522 ms3.1%
Variable._resolve_lookupdjango/template/base.py:99322 ms3.1%
ConferenceTag.icon_urlconfs/models.py:266 return static(self.icon)21 ms2.9%
staticdjango/templatetags/static.py:17921 ms2.9%
StaticNode.handle_simpledjango/templatetags/static.py:12617 ms2.5%
Apps.is_installeddjango/apps/registry.py:24917 ms2.5%
Apps.is_installed.<locals>.<genexpr>django/apps/registry.py:24917 ms2.5%
1 smaller frames hidden
2 smaller frames hidden
ClientHandler.__call__django/test/client.py:17314 ms2.0%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6314 ms2.0%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10414 ms2.0%
WhiteNoise.add_fileswhitenoise/base.py:10814 ms2.0%
WhiteNoise.update_files_dictionarywhitenoise/base.py:11510 ms1.4%
scantreewhitenoise/base.py:2719 ms1.2%
scantreewhitenoise/base.py:2716 ms0.9%
1 smaller frames hidden
1 smaller frames hidden
WhiteNoise.update_files_dictionarywhitenoise/base.py:1204 ms0.6%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:1314 ms0.6%
WhiteNoise.get_static_filewhitenoise/base.py:2174 ms0.6%
StaticFile.__init__whitenoise/responders.py:734 ms0.6%
TestCreateConference.test_rejects_end_date_before_startconfs/tests.py:1098 self.client.force_login(self.user)8 ms1.1%
ClientMixin.force_logindjango/test/client.py:8588 ms1.1%
ClientMixin._logindjango/test/client.py:8844 ms0.6%
ClientMixin.sessiondjango/test/client.py:8154 ms0.6%
SessionStore.savedjango/contrib/sessions/backends/db.py:1214 ms0.6%
2 smaller frames hidden
TransactionTestCase._post_teardowndjango/test/testcases.py:1243 self._fixture_teardown()5 ms0.8%
TestCreateConference.test_rejects_end_date_before_startconfs/tests.py:1101 self.assertEqual(response.status_code, 200)4 ms0.6%
1 smaller frames hidden
Estimated from 648 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
confs/tests.py:1044
self.user = User.objects.create_user("alice", password="pw")
TestCreateConference.setUp
· Password hashing
|
526 ms |
|
confs/views.py:509
return render(
create_conference
· Templates
|
122 ms |
|
confs/models.py:266
return static(self.icon)
ConferenceTag.icon_url
· Templates
|
21 ms |
|
confs/tests.py:1100
response = self.client.post(reverse("create_conference"), data)
TestCreateConference.test_rejects_end_date_before_start
· Libraries
|
14 ms |
|
confs/tests.py:1098
self.client.force_login(self.user)
TestCreateConference.test_rejects_end_date_before_start
· Database
|
8 ms |
|
confs/tests.py:1101
self.assertEqual(response.status_code, 200)
TestCreateConference.test_rejects_end_date_before_start
· Test code
|
4 ms |
Fixtures
Exact setup time| _django_isolate_apps function | 0.15 ms |
| _template_string_if_invalid_marker function | 0.05 ms |
| _django_set_urlconf function | 0.05 ms |
| _dj_autoclear_mailbox function | 0.05 ms |
| _django_db_marker function | 0.04 ms |
| _live_server_helper function | 0.04 ms |
| _django_clear_site_cache function | 0.03 ms |
| monkeypatch function | 0.02 ms |
Database
26 queries · 21 msNo repeated queries.
Biggest pieces of work
|
call setUp
confs/tests.py:1044
|
526 ms |
|
call test body
confs/tests.py:1100
|
169 ms |
|
call _post_teardown
django/test/testcases.py:1243
|
5 ms |
|
call _pre_setup
django/test/testcases.py:1167
|
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 | 703 ms | Profile |
| 16 hours ago | CI github-actions:test | passed | 357 ms | Profile |
| 22 hours ago | CI github-actions:test | passed | 673 ms | Profile |
| 1 week, 5 days ago | CI github-actions:test | passed | 1.02 s | Profile |
| 2 weeks, 2 days ago | CI github-actions:test | passed | 859 ms | Profile |
| 2 weeks, 2 days ago | CI github-actions:test | passed | 852 ms | Profile |
| 2 weeks, 4 days ago | CI github-actions:test | passed | 875 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 539 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 874 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 1.26 s | Profile |
| 3 weeks ago | CI github-actions:test | passed | 1.22 s | Profile |
| 3 weeks ago | CI github-actions:test | passed | 574 ms | Run |