flakytest.dev anze3db fedidevs
Tests / confs/tests.py

TestCreateConference::test_submit_creates_pending_conference

First seen 12 hours ago in 0c23747
CI github-actions:test 4 runs
Average
1.01 s
median 1.17 s
max 1.28 s
Phases
Setup 2 ms Call 1.00 s Teardown 3 ms
Categories
Password hashing 784 ms Database 36 ms Other (Libraries, Deep copies, pytest, Mocking, ...) 189 ms

28 database queries per run

Needs 3 KB of memory (max 8 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 7 hours ago · open run
Show pytest frames
call419 ms99.0%
TestCreateConference.setUpconfs/tests.py:1044 self.user = User.objects.create_user("alice", password="pw")383 ms90.4%
UserManager.create_userdjango/contrib/auth/models.py:180383 ms90.4%
UserManager._create_userdjango/contrib/auth/models.py:167383 ms90.4%
UserManager._create_user_objectdjango/contrib/auth/models.py:160383 ms90.4%
make_passworddjango/contrib/auth/hashers.py:118383 ms90.4%
PBKDF2PasswordHasher.encodedjango/contrib/auth/hashers.py:333383 ms90.4%
pbkdf2django/utils/crypto.py:93383 ms90.4%
TestCreateConference.test_submit_creates_pending_conferenceconfs/tests.py:1079 response = self.client.post(reverse("create_conference"), self.form_data)29 ms6.8%
Client.postdjango/test/client.py:116229 ms6.8%
RequestFactory.postdjango/test/client.py:49929 ms6.8%
RequestFactory.genericdjango/test/client.py:67129 ms6.8%
Client.requestdjango/test/client.py:109129 ms6.8%
ClientHandler.__call__django/test/client.py:17319 ms4.4%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6319 ms4.4%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10419 ms4.4%
WhiteNoise.add_fileswhitenoise/base.py:10819 ms4.4%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12012 ms2.9%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13110 ms2.3%
WhiteNoise.get_static_filewhitenoise/base.py:21710 ms2.3%
StaticFile.__init__whitenoise/responders.py:724 ms1.0%
StaticFile.get_file_statswhitenoise/responders.py:1614 ms1.0%
__init____init__:-14 ms1.0%
FileEntry.__init__whitenoise/responders.py:2634 ms1.0%
FileEntry.stat_regular_filewhitenoise/responders.py:2764 ms1.0%
<GC>~4 ms1.0%
StaticFile.__init__whitenoise/responders.py:763 ms0.8%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1882 ms0.5%
StaticFile.__init__whitenoise/responders.py:732 ms0.5%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1156 ms1.3%
scantreewhitenoise/base.py:2713 ms0.8%
scantreewhitenoise/base.py:2713 ms0.8%
scantreewhitenoise/base.py:2712 ms0.5%
scantreewhitenoise/base.py:2712 ms0.5%
scantreewhitenoise/base.py:2712 ms0.5%
scantreewhitenoise/base.py:2732 ms0.5%
1 smaller frames hidden
scantreewhitenoise/base.py:2732 ms0.5%
ClientHandler.__call__django/test/client.py:18610 ms2.3%
BaseHandler.get_responsedjango/core/handlers/base.py:14210 ms2.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5610 ms2.3%
MiddlewareMixin.__call__django/utils/deprecation.py:38010 ms2.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5610 ms2.3%
MiddlewareMixin.__call__django/utils/deprecation.py:38010 ms2.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5610 ms2.3%
MiddlewareMixin.__call__django/utils/deprecation.py:38010 ms2.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5610 ms2.3%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12310 ms2.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5610 ms2.3%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:14510 ms2.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5610 ms2.3%
MiddlewareMixin.__call__django/utils/deprecation.py:38010 ms2.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5610 ms2.3%
MiddlewareMixin.__call__django/utils/deprecation.py:38010 ms2.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5610 ms2.3%
MiddlewareMixin.__call__django/utils/deprecation.py:38010 ms2.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5610 ms2.3%
MiddlewareMixin.__call__django/utils/deprecation.py:38010 ms2.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5610 ms2.3%
MiddlewareMixin.__call__django/utils/deprecation.py:38010 ms2.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5610 ms2.3%
MiddlewareMixin.__call__django/utils/deprecation.py:38010 ms2.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5610 ms2.3%
MiddlewareMixin.__call__django/utils/deprecation.py:38010 ms2.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5610 ms2.3%
BaseHandler._get_responsedjango/core/handlers/base.py:19910 ms2.3%
user_passes_test.<locals>.decorator.<locals>._view_wrapperdjango/contrib/auth/decorators.py:627 ms1.6%
create_conferenceconfs/views.py:484 form = ConferenceForm(request.POST)3 ms0.8%
ConferenceForm.__init__confs/views.py:420 super().__init__(*args, **kwargs)2 ms0.5%
BaseModelForm.__init__django/forms/models.py:3812 ms0.5%
BaseForm.__init__django/forms/forms.py:1062 ms0.5%
deepcopy<stdlib>/copy.py:1312 ms0.5%
_deepcopy_dict<stdlib>/copy.py:2022 ms0.5%
deepcopy<stdlib>/copy.py:1382 ms0.5%
ChoiceField.__deepcopy__django/forms/fields.py:8742 ms0.5%
deepcopy<stdlib>/copy.py:1312 ms0.5%
_deepcopy_list<stdlib>/copy.py:1772 ms0.5%
1 smaller frames hidden
3 smaller frames hidden
user_passes_test.<locals>.decorator.<locals>._view_wrapperdjango/contrib/auth/decorators.py:593 ms0.8%
login_required.<locals>.<lambda>django/contrib/auth/decorators.py:823 ms0.8%
new_method_proxy.<locals>.innerdjango/utils/functional.py:2513 ms0.8%
SimpleLazyObject._setupdjango/utils/functional.py:4043 ms0.8%
AuthenticationMiddleware.process_request.<locals>.<lambda>django/contrib/auth/middleware.py:393 ms0.8%
get_userdjango/contrib/auth/middleware.py:193 ms0.8%
get_userdjango/contrib/auth/__init__.py:2872 ms0.5%
_get_user_session_keydjango/contrib/auth/__init__.py:1112 ms0.5%
SessionBase.__getitem__django/contrib/sessions/backends/base.py:552 ms0.5%
SessionBase._get_sessiondjango/contrib/sessions/backends/base.py:2542 ms0.5%
1 smaller frames hidden
TestCreateConference.test_submit_creates_pending_conferenceconfs/tests.py:1074 self.client.force_login(self.user)4 ms1.0%
ClientMixin.force_logindjango/test/client.py:8584 ms1.0%
ClientMixin._logindjango/test/client.py:8892 ms0.5%
logindjango/contrib/auth/__init__.py:1892 ms0.5%
2 smaller frames hidden
2 smaller frames hidden
teardown3 ms0.8%
TestCase.tearDownClassdjango/test/testcases.py:1458 conn.close()3 ms0.8%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:263 ms0.8%
BaseDatabaseWrapper.closedjango/db/backends/base/base.py:3553 ms0.8%
DatabaseWrapper._closedjango/db/backends/postgresql/base.py:4083 ms0.8%
Connection.closepsycopg/connection.py:2013 ms0.8%
Estimated from 383 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
383 ms
confs/tests.py:1079
response = self.client.post(reverse("create_conference"), self.form_data)
TestCreateConference.test_submit_creates_pending_conference · Libraries
22 ms
confs/tests.py:1074
self.client.force_login(self.user)
TestCreateConference.test_submit_creates_pending_conference · Libraries
4 ms
confs/views.py:420
super().__init__(*args, **kwargs)
ConferenceForm.__init__ · Deep copies
2 ms
confs/views.py:484
form = ConferenceForm(request.POST)
create_conference · Libraries
1 ms
confs/views.py:428
if tags and len(tags) > MAX_CONFERENCE_TAGS:
ConferenceForm.clean_conference_tags · Database
1 ms
confs/views.py:497
conference.save()
create_conference · Database
1 ms
confs/views.py:498
form.save_m2m() # persist the selected conference_tags (icons)
create_conference · Database
1 ms
confs/tests.py:1083
self.assertEqual(conference.created_by, self.user)
TestCreateConference.test_submit_creates_pending_conference · Database
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
_django_set_urlconf function 0.03 ms
_live_server_helper function 0.03 ms
_django_clear_site_cache function 0.02 ms
monkeypatch function 0.02 ms

Database

28 queries · 9 ms
No repeated queries.

Biggest pieces of work

call setUp
confs/tests.py:1044
383 ms
call test body
confs/tests.py:1079
34 ms
teardown tearDownClass
django/test/testcases.py:1458
3 ms
call _post_teardown
django/test/testcases.py:1243
1 ms
call pytest internals 1 ms

Reliability

5 results · 0 CI failures · 0 local failures

This test hasn't failed recently.

History

Latest 5 results, oldest first in the strip
When Environment Outcome Duration Commit
7 hours ago CI github-actions:test passed 424 ms d923a46 main Profile
7 hours ago CI github-actions:test passed 1.15 s 82997f8 main Profile
7 hours ago CI github-actions:test passed 1.19 s 623aa3e main Profile
12 hours ago CI github-actions:test passed 1.28 s ab6465a main Profile
12 hours ago CI github-actions:test passed 613 ms 0c23747 main Run