Tests / confs/tests.py
TestApproveConference::test_staff_sees_approve_button_on_detail
First seen 1 month, 1 week ago in 0c23747
CI
github-actions:test
13 runs
Average
1.15 s
median 1.10 s
max 2.26 s
max 2.26 s
Phases
Setup 2 ms
Call 1.14 s
Teardown 3 ms
Categories
Password hashing 921 ms
Database 47 ms
Factories 0.48 ms
Test code 0.17 ms
Other (Libraries, Templates, Unsampled, pytest, ...) 179 ms
31 database queries per run
Needs 186 KB of memory (max 1 MB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 2 weeks ago ·
open run
setup1 ms0.1%
call855 ms99.3%
TestApproveConference.setUpconfs/tests.py:1372 self.normal = User.objects.create_user("bob", password="pw")430 ms50.0%
UserManager.create_userdjango/contrib/auth/models.py:180430 ms50.0%
UserManager._create_userdjango/contrib/auth/models.py:167429 ms49.8%
UserManager._create_user_objectdjango/contrib/auth/models.py:160429 ms49.8%
make_passworddjango/contrib/auth/hashers.py:118429 ms49.8%
PBKDF2PasswordHasher.encodedjango/contrib/auth/hashers.py:333429 ms49.8%
pbkdf2django/utils/crypto.py:93429 ms49.8%
1 smaller frames hidden
TestApproveConference.setUpconfs/tests.py:1371 self.staff = User.objects.create_user("staff", password="pw", is_staff=True)354 ms41.1%
UserManager.create_userdjango/contrib/auth/models.py:180354 ms41.1%
UserManager._create_userdjango/contrib/auth/models.py:167349 ms40.5%
UserManager._create_user_objectdjango/contrib/auth/models.py:160349 ms40.5%
make_passworddjango/contrib/auth/hashers.py:118349 ms40.5%
PBKDF2PasswordHasher.encodedjango/contrib/auth/hashers.py:333349 ms40.5%
pbkdf2django/utils/crypto.py:93349 ms40.5%
UserManager._create_userdjango/contrib/auth/models.py:1685 ms0.6%
AbstractBaseUser.savedjango/contrib/auth/base_user.py:625 ms0.6%
Model.savedjango/db/models/base.py:9045 ms0.6%
Model.save_basedjango/db/models/base.py:9965 ms0.6%
Model._save_tabledjango/db/models/base.py:11995 ms0.6%
Model._do_insertdjango/db/models/base.py:12515 ms0.6%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:875 ms0.6%
QuerySet._insertdjango/db/models/query.py:21415 ms0.6%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19365 ms0.6%
CursorWrapper.executedjango/db/backends/utils.py:795 ms0.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:925 ms0.6%
CursorWrapper._executedjango/db/backends/utils.py:1055 ms0.6%
Cursor.executepsycopg/cursor.py:1135 ms0.6%
Connection.waitpsycopg/connection.py:4955 ms0.6%
TestApproveConference.test_staff_sees_approve_button_on_detailconfs/tests.py:1407 response = self.client.get(url)60 ms7.0%
Client.getdjango/test/client.py:113360 ms7.0%
RequestFactory.getdjango/test/client.py:47560 ms7.0%
RequestFactory.genericdjango/test/client.py:67160 ms7.0%
Client.requestdjango/test/client.py:109160 ms7.0%
ClientHandler.__call__django/test/client.py:18651 ms5.9%
BaseHandler.get_responsedjango/core/handlers/base.py:14251 ms5.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5651 ms5.9%
MiddlewareMixin.__call__django/utils/deprecation.py:38051 ms5.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5651 ms5.9%
MiddlewareMixin.__call__django/utils/deprecation.py:38051 ms5.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5651 ms5.9%
MiddlewareMixin.__call__django/utils/deprecation.py:38051 ms5.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5651 ms5.9%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12351 ms5.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5651 ms5.9%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:14551 ms5.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5651 ms5.9%
MiddlewareMixin.__call__django/utils/deprecation.py:38051 ms5.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5651 ms5.9%
MiddlewareMixin.__call__django/utils/deprecation.py:38051 ms5.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5651 ms5.9%
MiddlewareMixin.__call__django/utils/deprecation.py:38051 ms5.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5651 ms5.9%
MiddlewareMixin.__call__django/utils/deprecation.py:38051 ms5.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5651 ms5.9%
MiddlewareMixin.__call__django/utils/deprecation.py:38051 ms5.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5651 ms5.9%
MiddlewareMixin.__call__django/utils/deprecation.py:38051 ms5.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5651 ms5.9%
MiddlewareMixin.__call__django/utils/deprecation.py:38051 ms5.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5651 ms5.9%
BaseHandler._get_responsedjango/core/handlers/base.py:19951 ms5.9%
conferenceconfs/views.py:16851 ms5.9%
_conference_detailconfs/views.py:27642 ms4.8%
_conference_detail.<locals>.<genexpr>confs/views.py:276 current_account = next((account for account in account_counts if account.account.id == account_id), None)42 ms4.8%
QuerySet.__iter__django/db/models/query.py:43942 ms4.8%
QuerySet._fetch_alldjango/db/models/query.py:226242 ms4.8%
ModelIterable.__iter__django/db/models/query.py:10342 ms4.8%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:161238 ms4.5%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:76838 ms4.5%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:8937 ms4.3%
SQLCompiler.setup_querydjango/db/models/sql/compiler.py:7837 ms4.3%
SQLCompiler.get_selectdjango/db/models/sql/compiler.py:33235 ms4.1%
SQLCompiler.compiledjango/db/models/sql/compiler.py:57934 ms4.0%
1 smaller frames hidden
2 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
_conference_detailconfs/views.py:272 user_instance = str(request.user.accountaccess.instance)7 ms0.8%
new_method_proxy.<locals>.innerdjango/utils/functional.py:2537 ms0.8%
ReverseOneToOneDescriptor.__get__django/db/models/fields/related_descriptors.py:5376 ms0.7%
FetchOne.fetchdjango/db/models/fetch_modes.py:176 ms0.7%
ReverseOneToOneDescriptor.fetch_onedjango/db/models/fields/related_descriptors.py:5626 ms0.7%
QuerySet.getdjango/db/models/query.py:7026 ms0.7%
QuerySet.__len__django/db/models/query.py:4216 ms0.7%
QuerySet._fetch_alldjango/db/models/query.py:22626 ms0.7%
ModelIterable.__iter__django/db/models/query.py:1036 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16256 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:796 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:926 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1056 ms0.7%
Cursor.executepsycopg/cursor.py:1136 ms0.7%
Connection.waitpsycopg/connection.py:4956 ms0.7%
1 smaller frames hidden
2 smaller frames hidden
ClientHandler.__call__django/test/client.py:1739 ms1.1%
BaseHandler.load_middlewaredjango/core/handlers/base.py:639 ms1.1%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:1049 ms1.1%
WhiteNoise.add_fileswhitenoise/base.py:1089 ms1.1%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1155 ms0.6%
scantreewhitenoise/base.py:2715 ms0.6%
1 smaller frames hidden
TestApproveConference.test_staff_sees_approve_button_on_detailconfs/tests.py:1405 self.client.force_login(self.staff)8 ms1.0%
ClientMixin.force_logindjango/test/client.py:8588 ms1.0%
2 smaller frames hidden
Estimated from 824 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
|
430 ms |
|
confs/tests.py:1371
self.staff = User.objects.create_user("staff", password="pw", is_staff=True)
TestApproveConference.setUp
· Password hashing
|
354 ms |
|
confs/views.py:276
current_account = next((account for account in account_counts if account.account.id == account_id), None)
_conference_detail.<locals>.<genexpr>
· Database
|
42 ms |
|
confs/tests.py:1407
response = self.client.get(url)
TestApproveConference.test_staff_sees_approve_button_on_detail
· Libraries
|
9 ms |
|
confs/tests.py:1405
self.client.force_login(self.staff)
TestApproveConference.test_staff_sees_approve_button_on_detail
· Database
|
8 ms |
|
confs/views.py:272
user_instance = str(request.user.accountaccess.instance)
_conference_detail
· Database
|
7 ms |
|
confs/tests.py:1370
self.conference = baker.make(Conference, approved_at=None, tags="tag1")
TestApproveConference.setUp
· Database
|
1 ms |
|
confs/views.py:309
reverse("conference", kwargs={"conference_slug": conference.slug}), request.GET, ["account", "date"]
_conference_detail
· Libraries
|
1 ms |
|
confs/views.py:296
return render(
_conference_detail
· Templates
|
1 ms |
Fixtures
Exact setup time| _django_db_marker function | 0.10 ms |
| _dj_autoclear_mailbox function | 0.05 ms |
| _template_string_if_invalid_marker function | 0.04 ms |
| _django_isolate_apps function | 0.04 ms |
| _django_clear_site_cache function | 0.03 ms |
| _django_set_urlconf function | 0.03 ms |
| _live_server_helper function | 0.03 ms |
| monkeypatch function | 0.02 ms |
Database
31 queries · 42 msNo repeated queries.
Biggest pieces of work
|
call setUp
confs/tests.py:1372
|
785 ms |
|
call test body
confs/tests.py:1407
|
69 ms |
| setup pytest internals | 1 ms |
|
call _pre_setup
django/test/testcases.py:1167
|
1 ms |
Reliability
14 results · 0 CI failures · 0 local failuresThis test hasn't failed recently.
History
Latest 14 results, oldest first in the strip| When | Environment | Outcome | Duration | |
|---|---|---|---|---|
| 2 weeks ago | CI github-actions:test | passed | 861 ms | Profile |
| 2 weeks, 5 days ago | CI github-actions:test | passed | 1.28 s | Profile |
| 2 weeks, 6 days ago | CI github-actions:test | passed | 1.27 s | Profile |
| 3 weeks ago | CI github-actions:test | passed | 651 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 1.10 s | Profile |
| 1 month ago | CI github-actions:test | passed | 1.30 s | Profile |
| 1 month ago | CI github-actions:test | passed | 855 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 1.07 s | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 896 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 577 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 1.49 s | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 2.26 s | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 1.31 s | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 679 ms | Run |