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

TestCreateConference::test_selected_icons_are_saved

First seen 1 month, 1 week ago in 0c23747
CI github-actions:test 13 runs
Average
677 ms
median 558 ms
max 1.29 s
Phases
Setup 3 ms Call 673 ms Teardown 1 ms
Categories
Password hashing 574 ms Database 23 ms Test code 0.20 ms App code 0.08 ms Other (Libraries, Deep copies, pytest, Unsampled, ...) 80 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, 2 weeks ago · open run
Show pytest frames
call541 ms99.7%
TestCreateConference.setUpconfs/tests.py:1044 self.user = User.objects.create_user("alice", password="pw")442 ms81.4%
UserManager.create_userdjango/contrib/auth/models.py:180442 ms81.4%
UserManager._create_userdjango/contrib/auth/models.py:167442 ms81.4%
UserManager._create_user_objectdjango/contrib/auth/models.py:160442 ms81.4%
make_passworddjango/contrib/auth/hashers.py:118442 ms81.4%
PBKDF2PasswordHasher.encodedjango/contrib/auth/hashers.py:333442 ms81.4%
pbkdf2django/utils/crypto.py:93442 ms81.4%
TestCreateConference.test_selected_icons_are_savedconfs/tests.py:1167 self.client.post(reverse("create_conference"), data)85 ms15.7%
Client.postdjango/test/client.py:116285 ms15.7%
RequestFactory.postdjango/test/client.py:49985 ms15.7%
RequestFactory.genericdjango/test/client.py:67185 ms15.7%
Client.requestdjango/test/client.py:109185 ms15.7%
ClientHandler.__call__django/test/client.py:17359 ms10.9%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6359 ms10.9%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10459 ms10.9%
WhiteNoise.add_fileswhitenoise/base.py:10859 ms10.9%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12048 ms8.9%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13148 ms8.9%
WhiteNoise.get_static_filewhitenoise/base.py:21734 ms6.2%
StaticFile.__init__whitenoise/responders.py:7718 ms3.3%
StaticFile.get_alternativeswhitenoise/responders.py:2017 ms1.3%
Headers.__setitem__<stdlib>/wsgiref/headers.py:625 ms0.9%
Headers.__delitem__<stdlib>/wsgiref/headers.py:725 ms0.9%
2 smaller frames hidden
StaticFile.get_alternativeswhitenoise/responders.py:2066 ms1.1%
compile<stdlib>/re/__init__.py:2916 ms1.1%
_compile<stdlib>/re/__init__.py:3376 ms1.1%
StaticFile.get_alternativeswhitenoise/responders.py:2004 ms0.7%
__init____init__:-14 ms0.7%
Headers.__init__<stdlib>/wsgiref/headers.py:433 ms0.5%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:503 ms0.5%
1 smaller frames hidden
1 smaller frames hidden
StaticFile.__init__whitenoise/responders.py:736 ms1.1%
StaticFile.get_headerswhitenoise/responders.py:1783 ms0.5%
parsedate<stdlib>/email/_parseaddr.py:1853 ms0.5%
parsedate_tz<stdlib>/email/_parseaddr.py:503 ms0.5%
StaticFile.get_headerswhitenoise/responders.py:1763 ms0.5%
StaticFile.__init__whitenoise/responders.py:764 ms0.7%
StaticFile.__init__whitenoise/responders.py:743 ms0.5%
2 smaller frames hidden
WhiteNoise.get_static_filewhitenoise/base.py:21212 ms2.2%
WhiteNoise.add_cache_headerswhitenoise/base.py:23311 ms2.0%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1766 ms1.1%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1976 ms1.1%
new_method_proxy.<locals>.innerdjango/utils/functional.py:2506 ms1.1%
LazyObject.__getattribute__django/utils/functional.py:2796 ms1.1%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1724 ms0.7%
1 smaller frames hidden
1 smaller frames hidden
WhiteNoise.get_static_filewhitenoise/base.py:2113 ms0.5%
WhiteNoise.add_mime_headerswhitenoise/base.py:2303 ms0.5%
WhiteNoise.update_files_dictionarywhitenoise/base.py:11511 ms2.0%
scantreewhitenoise/base.py:2718 ms1.5%
scantreewhitenoise/base.py:2734 ms0.7%
scantreewhitenoise/base.py:2714 ms0.7%
ClientHandler.__call__django/test/client.py:18626 ms4.7%
BaseHandler.get_responsedjango/core/handlers/base.py:14226 ms4.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5626 ms4.7%
MiddlewareMixin.__call__django/utils/deprecation.py:38026 ms4.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5626 ms4.7%
MiddlewareMixin.__call__django/utils/deprecation.py:38026 ms4.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5626 ms4.7%
MiddlewareMixin.__call__django/utils/deprecation.py:38026 ms4.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5626 ms4.7%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12326 ms4.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5626 ms4.7%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:14526 ms4.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5626 ms4.7%
MiddlewareMixin.__call__django/utils/deprecation.py:38026 ms4.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5626 ms4.7%
MiddlewareMixin.__call__django/utils/deprecation.py:38026 ms4.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5626 ms4.7%
MiddlewareMixin.__call__django/utils/deprecation.py:38026 ms4.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5626 ms4.7%
MiddlewareMixin.__call__django/utils/deprecation.py:38026 ms4.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5626 ms4.7%
MiddlewareMixin.__call__django/utils/deprecation.py:38026 ms4.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5626 ms4.7%
MiddlewareMixin.__call__django/utils/deprecation.py:38026 ms4.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5626 ms4.7%
MiddlewareMixin.__call__django/utils/deprecation.py:38026 ms4.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5626 ms4.7%
BaseHandler._get_responsedjango/core/handlers/base.py:19926 ms4.7%
user_passes_test.<locals>.decorator.<locals>._view_wrapperdjango/contrib/auth/decorators.py:6226 ms4.7%
create_conferenceconfs/views.py:48420 ms3.6%
ConferenceForm.__init__confs/views.py:420 super().__init__(*args, **kwargs)20 ms3.6%
BaseModelForm.__init__django/forms/models.py:38120 ms3.6%
BaseForm.__init__django/forms/forms.py:10620 ms3.6%
deepcopy<stdlib>/copy.py:13020 ms3.6%
_deepcopy_dict<stdlib>/copy.py:20120 ms3.6%
deepcopy<stdlib>/copy.py:13720 ms3.6%
ChoiceField.__deepcopy__django/forms/fields.py:87318 ms3.3%
Field.__deepcopy__django/forms/fields.py:26618 ms3.3%
deepcopy<stdlib>/copy.py:13718 ms3.3%
ChoiceWidget.__deepcopy__django/forms/widgets.py:74718 ms3.3%
ChoiceWidget.choicesdjango/forms/widgets.py:86618 ms3.3%
normalize_choicesdjango/utils/choices.py:11017 ms3.1%
normalize_choicesdjango/utils/choices.py:7515 ms2.7%
1 smaller frames hidden
1 smaller frames hidden
5 smaller frames hidden
TestCreateConference.test_selected_icons_are_savedconfs/tests.py:1161 self.client.force_login(self.user)12 ms2.2%
ClientMixin.force_logindjango/test/client.py:85812 ms2.2%
ClientMixin._logindjango/test/client.py:8899 ms1.6%
logindjango/contrib/auth/__init__.py:1776 ms1.1%
SessionBase.__contains__django/contrib/sessions/backends/base.py:526 ms1.1%
SessionBase._get_sessiondjango/contrib/sessions/backends/base.py:2546 ms1.1%
SessionStore.loaddjango/contrib/sessions/backends/db.py:556 ms1.1%
SessionStore._get_session_from_dbdjango/contrib/sessions/backends/db.py:346 ms1.1%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:876 ms1.1%
QuerySet.getdjango/db/models/query.py:7026 ms1.1%
QuerySet.__len__django/db/models/query.py:4216 ms1.1%
QuerySet._fetch_alldjango/db/models/query.py:22626 ms1.1%
ModelIterable.__iter__django/db/models/query.py:1036 ms1.1%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16256 ms1.1%
CursorWrapper.executedjango/db/backends/utils.py:796 ms1.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:926 ms1.1%
CursorWrapper._executedjango/db/backends/utils.py:1056 ms1.1%
Cursor.executepsycopg/cursor.py:1136 ms1.1%
Connection.waitpsycopg/connection.py:4956 ms1.1%
2 smaller frames hidden
2 smaller frames hidden
1 smaller frames hidden
Estimated from 547 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
442 ms
confs/tests.py:1167
self.client.post(reverse("create_conference"), data)
TestCreateConference.test_selected_icons_are_saved · Libraries
59 ms
confs/views.py:420
super().__init__(*args, **kwargs)
ConferenceForm.__init__ · Deep copies
20 ms
confs/tests.py:1161
self.client.force_login(self.user)
TestCreateConference.test_selected_icons_are_saved · Database
12 ms
confs/views.py:498
form.save_m2m() # persist the selected conference_tags (icons)
create_conference · Database
2 ms
confs/views.py:485
if form.is_valid():
create_conference · Database
0.99 ms
confs/views.py:475
while Conference.objects.filter(slug=slug).exists():
unique_conference_slug · Database
0.99 ms
confs/views.py:497
conference.save()
create_conference · Database
0.99 ms
confs/views.py:505
return redirect("conference", conference_slug=conference.slug)
create_conference · Libraries
0.99 ms

Fixtures

Exact setup time
_django_set_urlconf function 0.86 ms
_template_string_if_invalid_marker function 0.12 ms
_dj_autoclear_mailbox function 0.04 ms
_live_server_helper function 0.03 ms
_django_db_marker function 0.03 ms
_django_isolate_apps function 0.03 ms
_django_clear_site_cache function 0.02 ms
monkeypatch function 0.02 ms

Database

31 queries · 20 ms
No repeated queries.

Biggest pieces of work

call setUp
confs/tests.py:1044
442 ms
call test body
confs/tests.py:1167
97 ms
call _post_teardown
django/test/testcases.py:1243
2 ms

Reliability

14 results · 0 CI failures · 0 local failures

This test hasn't failed recently.

History

Latest 14 results, oldest first in the strip
When Environment Outcome Duration Commit
2 weeks ago CI github-actions:test passed 543 ms 28600ed main Profile
2 weeks, 5 days ago CI github-actions:test passed 574 ms 600b717 main Profile
2 weeks, 6 days ago CI github-actions:test passed 558 ms c28a326 main Profile
3 weeks ago CI github-actions:test passed 302 ms 9b8826a main Profile
3 weeks ago CI github-actions:test passed 527 ms 4f01055 main Profile
1 month ago CI github-actions:test passed 701 ms 8ab642e main Profile
1 month ago CI github-actions:test passed 495 ms 9b75244 main Profile
1 month ago CI github-actions:test passed 552 ms 9603516 main Profile
1 month, 1 week ago CI github-actions:test passed 570 ms 615a272 main Profile
1 month, 1 week ago CI github-actions:test passed 476 ms d923a46 main Profile
1 month, 1 week ago CI github-actions:test passed 1.19 s 82997f8 main Profile
1 month, 1 week ago CI github-actions:test passed 1.03 s 623aa3e main Profile
1 month, 1 week ago CI github-actions:test passed 1.29 s ab6465a main Profile
1 month, 1 week ago CI github-actions:test passed 536 ms 0c23747 main Run