Tests / confs/tests.py
TestCreateConference::test_selected_icons_are_saved
First seen 12 hours ago in 0c23747
CI
github-actions:test
4 runs
Average
996 ms
median 1.11 s
max 1.29 s
max 1.29 s
Phases
Setup 4 ms
Call 990 ms
Teardown 2 ms
Categories
Password hashing 851 ms
Database 25 ms
Test code 0.65 ms
Other (Libraries, pytest, Deep copies, Mocking, ...) 119 ms
31 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, 7 hours ago ·
open run
call474 ms99.7%
TestCreateConference.setUpconfs/tests.py:1044 self.user = User.objects.create_user("alice", password="pw")438 ms92.1%
UserManager.create_userdjango/contrib/auth/models.py:180438 ms92.1%
UserManager._create_userdjango/contrib/auth/models.py:167436 ms91.6%
UserManager._create_user_objectdjango/contrib/auth/models.py:160436 ms91.6%
make_passworddjango/contrib/auth/hashers.py:118436 ms91.6%
PBKDF2PasswordHasher.encodedjango/contrib/auth/hashers.py:333436 ms91.6%
pbkdf2django/utils/crypto.py:93436 ms91.6%
1 smaller frames hidden
TestCreateConference.test_selected_icons_are_savedconfs/tests.py:1167 self.client.post(reverse("create_conference"), data)28 ms5.8%
Client.postdjango/test/client.py:116228 ms5.8%
RequestFactory.postdjango/test/client.py:49928 ms5.8%
RequestFactory.genericdjango/test/client.py:67128 ms5.8%
Client.requestdjango/test/client.py:109128 ms5.8%
ClientHandler.__call__django/test/client.py:17323 ms4.9%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6323 ms4.9%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10423 ms4.9%
WhiteNoise.add_fileswhitenoise/base.py:10823 ms4.9%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12015 ms3.2%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13115 ms3.2%
WhiteNoise.get_static_filewhitenoise/base.py:21714 ms3.0%
StaticFile.__init__whitenoise/responders.py:729 ms1.9%
StaticFile.get_file_statswhitenoise/responders.py:1619 ms1.9%
__init____init__:-19 ms1.9%
FileEntry.__init__whitenoise/responders.py:2639 ms1.9%
FileEntry.stat_regular_filewhitenoise/responders.py:2769 ms1.9%
<GC>~9 ms1.9%
3 smaller frames hidden
1 smaller frames hidden
WhiteNoise.update_files_dictionarywhitenoise/base.py:1157 ms1.4%
scantreewhitenoise/base.py:2716 ms1.2%
scantreewhitenoise/base.py:2714 ms0.9%
1 smaller frames hidden
1 smaller frames hidden
ClientHandler.__call__django/test/client.py:1864 ms0.9%
BaseHandler.get_responsedjango/core/handlers/base.py:1424 ms0.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:564 ms0.9%
MiddlewareMixin.__call__django/utils/deprecation.py:3804 ms0.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:564 ms0.9%
MiddlewareMixin.__call__django/utils/deprecation.py:3804 ms0.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:564 ms0.9%
MiddlewareMixin.__call__django/utils/deprecation.py:3804 ms0.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:564 ms0.9%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:1234 ms0.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:564 ms0.9%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1454 ms0.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:564 ms0.9%
MiddlewareMixin.__call__django/utils/deprecation.py:3804 ms0.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:564 ms0.9%
MiddlewareMixin.__call__django/utils/deprecation.py:3804 ms0.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:564 ms0.9%
MiddlewareMixin.__call__django/utils/deprecation.py:3804 ms0.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:564 ms0.9%
MiddlewareMixin.__call__django/utils/deprecation.py:3804 ms0.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:564 ms0.9%
MiddlewareMixin.__call__django/utils/deprecation.py:3804 ms0.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:564 ms0.9%
MiddlewareMixin.__call__django/utils/deprecation.py:3804 ms0.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:564 ms0.9%
MiddlewareMixin.__call__django/utils/deprecation.py:3804 ms0.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:564 ms0.9%
BaseHandler._get_responsedjango/core/handlers/base.py:1994 ms0.9%
user_passes_test.<locals>.decorator.<locals>._view_wrapperdjango/contrib/auth/decorators.py:624 ms0.9%
TestCreateConference.test_selected_icons_are_savedconfs/tests.py:1161 self.client.force_login(self.user)3 ms0.7%
ClientMixin.force_logindjango/test/client.py:8583 ms0.7%
3 smaller frames hidden
teardown0.52 ms0.1%
Estimated from 431 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
|
438 ms |
|
confs/tests.py:1167
self.client.post(reverse("create_conference"), data)
TestCreateConference.test_selected_icons_are_saved
· Libraries
|
23 ms |
|
confs/tests.py:1161
self.client.force_login(self.user)
TestCreateConference.test_selected_icons_are_saved
· Database
|
3 ms |
|
confs/tests.py:1158
tag, _ = ConferenceTag.objects.get_or_create(
TestCreateConference.test_selected_icons_are_saved
· Database
|
2 ms |
|
confs/views.py:420
super().__init__(*args, **kwargs)
ConferenceForm.__init__
· Deep copies
|
2 ms |
|
confs/views.py:498
form.save_m2m() # persist the selected conference_tags (icons)
create_conference
· Database
|
2 ms |
|
confs/tests.py:1168
conference = Conference.objects.get(name="PyCon Test")
TestCreateConference.test_selected_icons_are_saved
· Database
|
2 ms |
|
confs/tests.py:1164
mock.patch("confs.views.send_mail"),
TestCreateConference.test_selected_icons_are_saved
· Mocking
|
1 ms |
Fixtures
Exact setup time| _dj_autoclear_mailbox function | 0.04 ms |
| _django_clear_site_cache function | 0.04 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 |
| monkeypatch function | 0.02 ms |
Database
31 queries · 10 msNo repeated queries.
Biggest pieces of work
|
call setUp
confs/tests.py:1044
|
438 ms |
|
call test body
confs/tests.py:1167
|
36 ms |
| teardown pytest internals | 0.52 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 | 476 ms | Profile |
| 7 hours ago | CI github-actions:test | passed | 1.19 s | Profile |
| 7 hours ago | CI github-actions:test | passed | 1.03 s | Profile |
| 12 hours ago | CI github-actions:test | passed | 1.29 s | Profile |
| 12 hours ago | CI github-actions:test | passed | 536 ms | Run |