Tests / confs/tests.py
TestConferenceApprovalVisibility::test_owner_sees_own_pending
First seen 3 weeks ago in 0c23747
CI
github-actions:test
11 runs
Average
1.09 s
median 911 ms
max 2.02 s
max 2.02 s
Phases
Setup 2 ms
Call 1.09 s
Teardown 0.33 ms
Categories
Password hashing 993 ms
Database 35 ms
Factories 0.28 ms
App code 0.09 ms
Other (Libraries, Templates, pytest, Unsampled, ...) 66 ms
35 database queries per run
Needs 255 KB of memory (max 944 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 7 hours ago ·
open run
call642 ms99.8%
TestConferenceApprovalVisibility.setUpconfs/tests.py:1316 self.owner = User.objects.create_user("owner", password="pw")303 ms47.2%
UserManager.create_userdjango/contrib/auth/models.py:180303 ms47.2%
UserManager._create_userdjango/contrib/auth/models.py:167302 ms47.0%
UserManager._create_user_objectdjango/contrib/auth/models.py:160302 ms47.0%
make_passworddjango/contrib/auth/hashers.py:118302 ms47.0%
PBKDF2PasswordHasher.encodedjango/contrib/auth/hashers.py:333302 ms47.0%
pbkdf2django/utils/crypto.py:93302 ms47.0%
1 smaller frames hidden
TestConferenceApprovalVisibility.setUpconfs/tests.py:1317 self.other = User.objects.create_user("other", password="pw")295 ms45.9%
UserManager.create_userdjango/contrib/auth/models.py:180295 ms45.9%
UserManager._create_userdjango/contrib/auth/models.py:167294 ms45.7%
UserManager._create_user_objectdjango/contrib/auth/models.py:160294 ms45.7%
make_passworddjango/contrib/auth/hashers.py:118294 ms45.7%
PBKDF2PasswordHasher.encodedjango/contrib/auth/hashers.py:333294 ms45.7%
pbkdf2django/utils/crypto.py:93294 ms45.7%
1 smaller frames hidden
TestConferenceApprovalVisibility.test_owner_sees_own_pendingconfs/tests.py:1343 response = self.client.get(reverse("conferences"))36 ms5.7%
Client.getdjango/test/client.py:113336 ms5.7%
RequestFactory.getdjango/test/client.py:47536 ms5.7%
RequestFactory.genericdjango/test/client.py:67136 ms5.7%
Client.requestdjango/test/client.py:109135 ms5.5%
ClientHandler.__call__django/test/client.py:17325 ms3.9%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6325 ms3.9%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10425 ms3.9%
WhiteNoise.add_fileswhitenoise/base.py:10825 ms3.9%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12021 ms3.2%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13121 ms3.2%
WhiteNoise.get_static_filewhitenoise/base.py:21716 ms2.4%
StaticFile.__init__whitenoise/responders.py:7210 ms1.6%
StaticFile.get_file_statswhitenoise/responders.py:16110 ms1.6%
__init____init__:-110 ms1.6%
FileEntry.__init__whitenoise/responders.py:26010 ms1.6%
<GC>~10 ms1.6%
3 smaller frames hidden
WhiteNoise.get_static_filewhitenoise/base.py:2124 ms0.6%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1154 ms0.6%
scantreewhitenoise/base.py:2714 ms0.6%
ClientHandler.__call__django/test/client.py:18610 ms1.6%
BaseHandler.get_responsedjango/core/handlers/base.py:14210 ms1.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5610 ms1.6%
MiddlewareMixin.__call__django/utils/deprecation.py:38010 ms1.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5610 ms1.6%
MiddlewareMixin.__call__django/utils/deprecation.py:38010 ms1.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5610 ms1.6%
MiddlewareMixin.__call__django/utils/deprecation.py:38010 ms1.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5610 ms1.6%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12310 ms1.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5610 ms1.6%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:14510 ms1.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5610 ms1.6%
MiddlewareMixin.__call__django/utils/deprecation.py:38010 ms1.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5610 ms1.6%
MiddlewareMixin.__call__django/utils/deprecation.py:38010 ms1.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5610 ms1.6%
MiddlewareMixin.__call__django/utils/deprecation.py:38010 ms1.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5610 ms1.6%
MiddlewareMixin.__call__django/utils/deprecation.py:38010 ms1.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5610 ms1.6%
MiddlewareMixin.__call__django/utils/deprecation.py:38010 ms1.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5610 ms1.6%
MiddlewareMixin.__call__django/utils/deprecation.py:38010 ms1.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5610 ms1.6%
MiddlewareMixin.__call__django/utils/deprecation.py:38010 ms1.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5610 ms1.6%
BaseHandler._get_responsedjango/core/handlers/base.py:19910 ms1.6%
conferencesconfs/views.py:128 return render(10 ms1.6%
renderdjango/shortcuts.py:2710 ms1.6%
render_to_stringdjango/template/loader.py:6210 ms1.6%
Template.renderdjango/template/backends/django.py:10710 ms1.6%
Template.renderdjango/template/base.py:17510 ms1.6%
instrumented_test_renderdjango/test/utils.py:11310 ms1.6%
NodeList.renderdjango/template/base.py:110810 ms1.6%
Node.render_annotateddjango/template/base.py:106910 ms1.6%
ExtendsNode.renderdjango/template/loader_tags.py:16010 ms1.6%
instrumented_test_renderdjango/test/utils.py:11310 ms1.6%
NodeList.renderdjango/template/base.py:110810 ms1.6%
Node.render_annotateddjango/template/base.py:106910 ms1.6%
BlockNode.renderdjango/template/loader_tags.py:666 ms1.0%
NodeList.renderdjango/template/base.py:11086 ms1.0%
Node.render_annotateddjango/template/base.py:10696 ms1.0%
IfNode.renderdjango/template/defaulttags.py:3324 ms0.6%
QuerySet.__bool__django/db/models/query.py:4534 ms0.6%
2 smaller frames hidden
3 smaller frames hidden
1 smaller frames hidden
TestConferenceApprovalVisibility.test_owner_sees_own_pendingconfs/tests.py:1342 self.client.force_login(self.owner)5 ms0.8%
ClientMixin.force_logindjango/test/client.py:8585 ms0.8%
2 smaller frames hidden
Estimated from 616 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
confs/tests.py:1316
self.owner = User.objects.create_user("owner", password="pw")
TestConferenceApprovalVisibility.setUp
· Password hashing
|
303 ms |
|
confs/tests.py:1317
self.other = User.objects.create_user("other", password="pw")
TestConferenceApprovalVisibility.setUp
· Password hashing
|
295 ms |
|
confs/tests.py:1343
response = self.client.get(reverse("conferences"))
TestConferenceApprovalVisibility.test_owner_sees_own_pending
· Libraries
|
26 ms |
|
confs/views.py:128
return render(
conferences
· Templates
|
10 ms |
|
confs/tests.py:1342
self.client.force_login(self.owner)
TestConferenceApprovalVisibility.test_owner_sees_own_pending
· Database
|
5 ms |
|
confs/tests.py:1318
self.approved = baker.make(
TestConferenceApprovalVisibility.setUp
· Database
|
1 ms |
|
confs/tests.py:1326
self.pending = baker.make(
TestConferenceApprovalVisibility.setUp
· Database
|
1 ms |
Fixtures
Exact setup time| _template_string_if_invalid_marker function | 0.05 ms |
| _dj_autoclear_mailbox function | 0.04 ms |
| _django_db_marker function | 0.04 ms |
| _django_clear_site_cache 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
35 queries · 13 ms
Repeated queries are usually N+1 lookups: fetch them once with select_related / prefetch_related (or selectinload).
3×
SELECT "confs_conference"."id", "confs_conference"."name", "confs_conference"."slug", "confs_conference"."location", "confs_conference"."start_date", "confs_conference"."end_date", "confs_conference"."time_zone", "confs_conference"."archived_date", "confs_conference"."approved_at", "confs_conferenc…
Biggest pieces of work
|
call setUp
confs/tests.py:1316
|
600 ms |
|
call test body
confs/tests.py:1343
|
42 ms |
Reliability
12 results · 0 CI failures · 0 local failuresThis test hasn't failed recently.
History
Latest 12 results, oldest first in the strip| When | Environment | Outcome | Duration | |
|---|---|---|---|---|
| 7 hours ago | CI github-actions:test | passed | 643 ms | Profile |
| 16 hours ago | CI github-actions:test | passed | 438 ms | Profile |
| 22 hours ago | CI github-actions:test | passed | 656 ms | Profile |
| 1 week, 5 days ago | CI github-actions:test | passed | 668 ms | Profile |
| 2 weeks, 2 days ago | CI github-actions:test | passed | 632 ms | Profile |
| 2 weeks, 2 days ago | CI github-actions:test | passed | 1.24 s | Profile |
| 2 weeks, 4 days ago | CI github-actions:test | passed | 976 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 911 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 1.95 s | Profile |
| 3 weeks ago | CI github-actions:test | passed | 2.02 s | Profile |
| 3 weeks ago | CI github-actions:test | passed | 1.89 s | Profile |
| 3 weeks ago | CI github-actions:test | passed | 950 ms | Run |