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

TestApproveConference::test_staff_sees_approve_button_on_detail

First seen 12 hours ago in 0c23747
CI github-actions:test 4 runs
Average
1.41 s
median 1.40 s
max 2.26 s
Phases
Setup 4 ms Call 1.40 s Teardown 2 ms
Categories
Password hashing 962 ms Database 31 ms Factories 0.55 ms Test code 0.55 ms Other (Libraries, Templates, Unsampled, pytest) 415 ms

31 database queries per run

Needs 571 KB of memory (max 1 MB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 7 hours ago · open run
Show pytest frames
call574 ms99.6%
TestApproveConference.setUpconfs/tests.py:1372 self.normal = User.objects.create_user("bob", password="pw")265 ms46.0%
UserManager.create_userdjango/contrib/auth/models.py:180265 ms46.0%
UserManager._create_userdjango/contrib/auth/models.py:167264 ms45.8%
UserManager._create_user_objectdjango/contrib/auth/models.py:160264 ms45.8%
make_passworddjango/contrib/auth/hashers.py:118264 ms45.8%
PBKDF2PasswordHasher.encodedjango/contrib/auth/hashers.py:333264 ms45.8%
pbkdf2django/utils/crypto.py:93264 ms45.8%
1 smaller frames hidden
TestApproveConference.setUpconfs/tests.py:1371 self.staff = User.objects.create_user("staff", password="pw", is_staff=True)257 ms44.5%
UserManager.create_userdjango/contrib/auth/models.py:180257 ms44.5%
UserManager._create_userdjango/contrib/auth/models.py:167257 ms44.5%
UserManager._create_user_objectdjango/contrib/auth/models.py:160257 ms44.5%
make_passworddjango/contrib/auth/hashers.py:118257 ms44.5%
PBKDF2PasswordHasher.encodedjango/contrib/auth/hashers.py:333257 ms44.5%
pbkdf2django/utils/crypto.py:93257 ms44.5%
TestApproveConference.test_staff_sees_approve_button_on_detailconfs/tests.py:1407 response = self.client.get(url)46 ms7.9%
Client.getdjango/test/client.py:113346 ms7.9%
RequestFactory.getdjango/test/client.py:47546 ms7.9%
RequestFactory.genericdjango/test/client.py:67146 ms7.9%
Client.requestdjango/test/client.py:109146 ms7.9%
ClientHandler.__call__django/test/client.py:17323 ms4.1%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6323 ms4.1%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10422 ms3.9%
WhiteNoise.add_fileswhitenoise/base.py:10822 ms3.9%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12011 ms1.8%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13111 ms1.8%
WhiteNoise.get_static_filewhitenoise/base.py:2179 ms1.5%
2 smaller frames hidden
WhiteNoise.update_files_dictionarywhitenoise/base.py:11510 ms1.7%
scantreewhitenoise/base.py:27110 ms1.7%
scantreewhitenoise/base.py:2736 ms1.1%
<GC>~6 ms1.1%
scantreewhitenoise/base.py:2713 ms0.6%
1 smaller frames hidden
ClientHandler.__call__django/test/client.py:18622 ms3.9%
BaseHandler.get_responsedjango/core/handlers/base.py:14222 ms3.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5622 ms3.9%
MiddlewareMixin.__call__django/utils/deprecation.py:38022 ms3.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5622 ms3.9%
MiddlewareMixin.__call__django/utils/deprecation.py:38022 ms3.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5622 ms3.9%
MiddlewareMixin.__call__django/utils/deprecation.py:38022 ms3.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5622 ms3.9%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12322 ms3.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5622 ms3.9%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:14521 ms3.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5621 ms3.7%
MiddlewareMixin.__call__django/utils/deprecation.py:38021 ms3.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5621 ms3.7%
MiddlewareMixin.__call__django/utils/deprecation.py:38021 ms3.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5621 ms3.7%
MiddlewareMixin.__call__django/utils/deprecation.py:38021 ms3.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5621 ms3.7%
MiddlewareMixin.__call__django/utils/deprecation.py:38021 ms3.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5621 ms3.7%
MiddlewareMixin.__call__django/utils/deprecation.py:38021 ms3.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5621 ms3.7%
MiddlewareMixin.__call__django/utils/deprecation.py:38021 ms3.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5621 ms3.7%
MiddlewareMixin.__call__django/utils/deprecation.py:38021 ms3.7%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5621 ms3.7%
BaseHandler._get_responsedjango/core/handlers/base.py:19921 ms3.7%
conferenceconfs/views.py:16817 ms3.0%
_conference_detailconfs/views.py:272 user_instance = str(request.user.accountaccess.instance)3 ms0.6%
new_method_proxy.<locals>.innerdjango/utils/functional.py:2533 ms0.6%
ReverseOneToOneDescriptor.__get__django/db/models/fields/related_descriptors.py:5373 ms0.6%
FetchOne.fetchdjango/db/models/fetch_modes.py:173 ms0.6%
ReverseOneToOneDescriptor.fetch_onedjango/db/models/fields/related_descriptors.py:5623 ms0.6%
QuerySet.getdjango/db/models/query.py:7023 ms0.6%
QuerySet.__len__django/db/models/query.py:4213 ms0.6%
QuerySet._fetch_alldjango/db/models/query.py:22623 ms0.6%
ModelIterable.__iter__django/db/models/query.py:1033 ms0.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16253 ms0.6%
CursorWrapper.executedjango/db/backends/utils.py:793 ms0.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms0.6%
CursorWrapper._executedjango/db/backends/utils.py:1053 ms0.6%
Cursor.executepsycopg/cursor.py:1133 ms0.6%
Connection.waitpsycopg/connection.py:4953 ms0.6%
BaseCursor._execute_genpsycopg/_cursor_base.py:2063 ms0.6%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2863 ms0.6%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:783 ms0.6%
_conference_detailconfs/views.py:296 return render(3 ms0.6%
renderdjango/shortcuts.py:273 ms0.6%
render_to_stringdjango/template/loader.py:623 ms0.6%
Template.renderdjango/template/backends/django.py:1073 ms0.6%
Template.renderdjango/template/base.py:1753 ms0.6%
instrumented_test_renderdjango/test/utils.py:1133 ms0.6%
NodeList.renderdjango/template/base.py:11083 ms0.6%
Node.render_annotateddjango/template/base.py:10693 ms0.6%
ExtendsNode.renderdjango/template/loader_tags.py:1603 ms0.6%
instrumented_test_renderdjango/test/utils.py:1133 ms0.6%
NodeList.renderdjango/template/base.py:11083 ms0.6%
8 smaller frames hidden
conferenceconfs/views.py:167 if request.user.is_authenticated:4 ms0.7%
new_method_proxy.<locals>.innerdjango/utils/functional.py:2514 ms0.7%
SimpleLazyObject._setupdjango/utils/functional.py:4044 ms0.7%
AuthenticationMiddleware.process_request.<locals>.<lambda>django/contrib/auth/middleware.py:394 ms0.7%
get_userdjango/contrib/auth/middleware.py:194 ms0.7%
1 smaller frames hidden
TestApproveConference.test_staff_sees_approve_button_on_detailconfs/tests.py:1405 self.client.force_login(self.staff)4 ms0.7%
ClientMixin.force_logindjango/test/client.py:8584 ms0.7%
1 smaller frames hidden
teardown2 ms0.3%
Estimated from 541 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

confs/tests.py:1372
self.normal = User.objects.create_user("bob", password="pw")
TestApproveConference.setUp · Password hashing
265 ms
confs/tests.py:1371
self.staff = User.objects.create_user("staff", password="pw", is_staff=True)
TestApproveConference.setUp · Password hashing
257 ms
confs/tests.py:1407
response = self.client.get(url)
TestApproveConference.test_staff_sees_approve_button_on_detail · Libraries
24 ms
confs/tests.py:1405
self.client.force_login(self.staff)
TestApproveConference.test_staff_sees_approve_button_on_detail · Database
4 ms
confs/views.py:167
if request.user.is_authenticated:
conference · Database
4 ms
confs/views.py:272
user_instance = str(request.user.accountaccess.instance)
_conference_detail · Database
3 ms
confs/views.py:296
return render(
_conference_detail · Templates
3 ms
confs/views.py:226
counts_dict = {c["created_at_date"].date(): c["count"] for c in counts}
_conference_detail · Database
2 ms
confs/views.py:268
page_obj = paginator.get_page(page_number)
_conference_detail · Database
2 ms
confs/views.py:173
conference = get_object_or_404(Conference, slug=conference_slug)
_conference_detail · 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.02 ms
_django_isolate_apps function 0.02 ms
_live_server_helper function 0.02 ms
_django_clear_site_cache function 0.02 ms
_django_set_urlconf function 0.02 ms
monkeypatch function 0.01 ms

Database

31 queries · 14 ms
No repeated queries.

Biggest pieces of work

call setUp
confs/tests.py:1372
522 ms
call test body
confs/tests.py:1407
50 ms
teardown tearDownClass
django/test/testcases.py:1456
2 ms
call pytest internals 1 ms
call _post_teardown
django/test/testcases.py:1243
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 577 ms d923a46 main Profile
7 hours ago CI github-actions:test passed 1.49 s 82997f8 main Profile
7 hours ago CI github-actions:test passed 2.26 s 623aa3e main Profile
12 hours ago CI github-actions:test passed 1.31 s ab6465a main Profile
12 hours ago CI github-actions:test passed 679 ms 0c23747 main Run