Tests / confs/tests.py
TestCreateConference::test_mastodon_handle_is_converted_to_url
First seen 12 hours ago in 0c23747
CI
github-actions:test
4 runs
Average
947 ms
median 1.05 s
max 1.22 s
max 1.22 s
Phases
Setup 2 ms
Call 944 ms
Teardown 0.29 ms
Categories
Password hashing 802 ms
Database 28 ms
Other (Libraries, Deep copies, pytest, Unsampled, ...) 117 ms
27 database queries per run
Needs 622 KB of memory (max 864 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 7 hours ago ·
open run
call462 ms99.8%
TestCreateConference.setUpconfs/tests.py:1044 self.user = User.objects.create_user("alice", password="pw")425 ms91.8%
UserManager.create_userdjango/contrib/auth/models.py:180425 ms91.8%
UserManager._create_userdjango/contrib/auth/models.py:167425 ms91.8%
UserManager._create_user_objectdjango/contrib/auth/models.py:160425 ms91.8%
make_passworddjango/contrib/auth/hashers.py:118424 ms91.6%
PBKDF2PasswordHasher.encodedjango/contrib/auth/hashers.py:333424 ms91.6%
pbkdf2django/utils/crypto.py:93424 ms91.6%
1 smaller frames hidden
TestCreateConference.test_mastodon_handle_is_converted_to_urlconfs/tests.py:1121 self.client.post(reverse("create_conference"), data)29 ms6.2%
Client.postdjango/test/client.py:116229 ms6.2%
RequestFactory.postdjango/test/client.py:49929 ms6.2%
RequestFactory.genericdjango/test/client.py:67129 ms6.2%
Client.requestdjango/test/client.py:109129 ms6.2%
ClientHandler.__call__django/test/client.py:17322 ms4.8%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6322 ms4.8%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10422 ms4.8%
WhiteNoise.add_fileswhitenoise/base.py:10822 ms4.8%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12014 ms3.0%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13114 ms3.0%
WhiteNoise.get_static_filewhitenoise/base.py:21710 ms2.1%
StaticFile.__init__whitenoise/responders.py:736 ms1.4%
1 smaller frames hidden
WhiteNoise.get_static_filewhitenoise/base.py:2124 ms0.9%
WhiteNoise.add_cache_headerswhitenoise/base.py:2333 ms0.7%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1763 ms0.7%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1157 ms1.6%
scantreewhitenoise/base.py:2713 ms0.7%
2 smaller frames hidden
ClientHandler.__call__django/test/client.py:1866 ms1.4%
BaseHandler.get_responsedjango/core/handlers/base.py:1426 ms1.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:566 ms1.4%
MiddlewareMixin.__call__django/utils/deprecation.py:3806 ms1.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:566 ms1.4%
MiddlewareMixin.__call__django/utils/deprecation.py:3806 ms1.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:566 ms1.4%
MiddlewareMixin.__call__django/utils/deprecation.py:3806 ms1.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:566 ms1.4%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:1236 ms1.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:566 ms1.4%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1456 ms1.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:566 ms1.4%
MiddlewareMixin.__call__django/utils/deprecation.py:3806 ms1.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:566 ms1.4%
MiddlewareMixin.__call__django/utils/deprecation.py:3806 ms1.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:566 ms1.4%
MiddlewareMixin.__call__django/utils/deprecation.py:3806 ms1.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:566 ms1.4%
MiddlewareMixin.__call__django/utils/deprecation.py:3806 ms1.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:566 ms1.4%
MiddlewareMixin.__call__django/utils/deprecation.py:3806 ms1.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:566 ms1.4%
MiddlewareMixin.__call__django/utils/deprecation.py:3806 ms1.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:566 ms1.4%
MiddlewareMixin.__call__django/utils/deprecation.py:3806 ms1.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:566 ms1.4%
BaseHandler._get_responsedjango/core/handlers/base.py:1996 ms1.4%
user_passes_test.<locals>.decorator.<locals>._view_wrapperdjango/contrib/auth/decorators.py:625 ms1.1%
create_conferenceconfs/views.py:498 form.save_m2m() # persist the selected conference_tags (icons)3 ms0.7%
BaseModelForm._save_m2mdjango/forms/models.py:5563 ms0.7%
ManyToManyField.save_form_datadjango/db/models/fields/related.py:21333 ms0.7%
create_forward_many_to_many_manager.<locals>.ManyRelatedManager.setdjango/db/models/fields/related_descriptors.py:14303 ms0.7%
create_forward_many_to_many_manager.<locals>.ManyRelatedManager.set_basedjango/db/models/fields/related_descriptors.py:14063 ms0.7%
QuerySet.__iter__django/db/models/query.py:4393 ms0.7%
QuerySet._fetch_alldjango/db/models/query.py:22623 ms0.7%
FlatValuesListIterable.__iter__django/db/models/query.py:3023 ms0.7%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15743 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16253 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:793 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1053 ms0.7%
Cursor.executepsycopg/cursor.py:1133 ms0.7%
Connection.waitpsycopg/connection.py:4953 ms0.7%
BaseCursor._execute_genpsycopg/_cursor_base.py:2063 ms0.7%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2863 ms0.7%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:783 ms0.7%
2 smaller frames hidden
1 smaller frames hidden
TestCreateConference.test_mastodon_handle_is_converted_to_urlconfs/tests.py:1115 self.client.force_login(self.user)4 ms0.9%
ClientMixin.force_logindjango/test/client.py:8584 ms0.9%
ClientMixin._logindjango/test/client.py:8893 ms0.7%
1 smaller frames hidden
3 smaller frames hidden
Estimated from 437 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
|
425 ms |
|
confs/tests.py:1121
self.client.post(reverse("create_conference"), data)
TestCreateConference.test_mastodon_handle_is_converted_to_url
· Libraries
|
23 ms |
|
confs/tests.py:1115
self.client.force_login(self.user)
TestCreateConference.test_mastodon_handle_is_converted_to_url
· Database
|
4 ms |
|
confs/views.py:498
form.save_m2m() # persist the selected conference_tags (icons)
create_conference
· Database
|
3 ms |
|
confs/views.py:420
super().__init__(*args, **kwargs)
ConferenceForm.__init__
· Deep copies
|
1 ms |
|
confs/views.py:485
if form.is_valid():
create_conference
· Libraries
|
1 ms |
|
confs/views.py:606
send_mail(
send_approval_notification
· Mocking
|
1 ms |
Fixtures
Exact setup time| _dj_autoclear_mailbox function | 0.04 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.03 ms |
| _django_set_urlconf function | 0.02 ms |
| _django_clear_site_cache function | 0.02 ms |
| monkeypatch function | 0.02 ms |
Database
27 queries · 7 msNo repeated queries.
Biggest pieces of work
|
call setUp
confs/tests.py:1044
|
425 ms |
|
call test body
confs/tests.py:1121
|
34 ms |
|
call _pre_setup
django/test/testcases.py:1167
|
2 ms |
|
call _post_teardown
django/test/testcases.py:1243
|
1 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 | |
|---|---|---|---|---|
| 7 hours ago | CI github-actions:test | passed | 463 ms | Profile |
| 7 hours ago | CI github-actions:test | passed | 982 ms | Profile |
| 7 hours ago | CI github-actions:test | passed | 1.12 s | Profile |
| 12 hours ago | CI github-actions:test | passed | 1.22 s | Profile |
| 12 hours ago | CI github-actions:test | passed | 678 ms | Run |