Tests / confs/tests.py
TestApproveConference::test_staff_sees_approve_button_on_detail
First seen 3 weeks ago in 0c23747
CI
github-actions:test
11 runs
Average
1.16 s
median 1.10 s
max 2.26 s
max 2.26 s
Phases
Setup 2 ms
Call 1.16 s
Teardown 2 ms
Categories
Password hashing 921 ms
Database 44 ms
Factories 0.47 ms
Test code 0.20 ms
Other (Libraries, Templates, Unsampled, pytest, ...) 197 ms
31 database queries per run
Needs 220 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
setup4 ms0.3%
call1.26 s99.6%
TestApproveConference.setUpconfs/tests.py:1372 self.normal = User.objects.create_user("bob", password="pw")553 ms43.5%
UserManager.create_userdjango/contrib/auth/models.py:180553 ms43.5%
UserManager._create_userdjango/contrib/auth/models.py:167551 ms43.4%
UserManager._create_user_objectdjango/contrib/auth/models.py:160551 ms43.4%
make_passworddjango/contrib/auth/hashers.py:118550 ms43.3%
PBKDF2PasswordHasher.encodedjango/contrib/auth/hashers.py:333550 ms43.3%
pbkdf2django/utils/crypto.py:93550 ms43.3%
1 smaller frames hidden
1 smaller frames hidden
TestApproveConference.setUpconfs/tests.py:1371 self.staff = User.objects.create_user("staff", password="pw", is_staff=True)549 ms43.2%
UserManager.create_userdjango/contrib/auth/models.py:180549 ms43.2%
UserManager._create_userdjango/contrib/auth/models.py:167547 ms43.0%
UserManager._create_user_objectdjango/contrib/auth/models.py:160547 ms43.0%
make_passworddjango/contrib/auth/hashers.py:118547 ms43.0%
PBKDF2PasswordHasher.encodedjango/contrib/auth/hashers.py:333547 ms43.0%
pbkdf2django/utils/crypto.py:93547 ms43.0%
1 smaller frames hidden
TestApproveConference.test_staff_sees_approve_button_on_detailconfs/tests.py:1407 response = self.client.get(url)150 ms11.8%
Client.getdjango/test/client.py:1133150 ms11.8%
RequestFactory.getdjango/test/client.py:475150 ms11.8%
RequestFactory.genericdjango/test/client.py:671150 ms11.8%
Client.requestdjango/test/client.py:1091150 ms11.8%
ClientHandler.__call__django/test/client.py:173115 ms9.0%
BaseHandler.load_middlewaredjango/core/handlers/base.py:63115 ms9.0%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:104113 ms8.9%
WhiteNoise.add_fileswhitenoise/base.py:108113 ms8.9%
WhiteNoise.update_files_dictionarywhitenoise/base.py:120106 ms8.4%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:131104 ms8.2%
WhiteNoise.get_static_filewhitenoise/base.py:21760 ms4.7%
StaticFile.__init__whitenoise/responders.py:7323 ms1.8%
StaticFile.get_headerswhitenoise/responders.py:1787 ms0.6%
parsedate<stdlib>/email/_parseaddr.py:1857 ms0.6%
parsedate_tz<stdlib>/email/_parseaddr.py:507 ms0.6%
7 smaller frames hidden
StaticFile.__init__whitenoise/responders.py:7718 ms1.4%
StaticFile.__init__whitenoise/responders.py:768 ms0.6%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1887 ms0.6%
1 smaller frames hidden
3 smaller frames hidden
WhiteNoise.get_static_filewhitenoise/base.py:21233 ms2.6%
WhiteNoise.add_cache_headerswhitenoise/base.py:23328 ms2.2%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:17617 ms1.4%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:19717 ms1.4%
URLMixin.urldebug_toolbar/panels/staticfiles.py:2011 ms0.9%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:23510 ms0.8%
4 smaller frames hidden
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1809 ms0.7%
<GC>~9 ms0.7%
2 smaller frames hidden
2 smaller frames hidden
3 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
ClientHandler.__call__django/test/client.py:18635 ms2.8%
BaseHandler.get_responsedjango/core/handlers/base.py:14235 ms2.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5635 ms2.8%
MiddlewareMixin.__call__django/utils/deprecation.py:38035 ms2.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5635 ms2.8%
MiddlewareMixin.__call__django/utils/deprecation.py:38035 ms2.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5635 ms2.8%
MiddlewareMixin.__call__django/utils/deprecation.py:38035 ms2.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5635 ms2.8%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12335 ms2.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5635 ms2.8%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:14535 ms2.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5635 ms2.8%
MiddlewareMixin.__call__django/utils/deprecation.py:38035 ms2.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5635 ms2.8%
MiddlewareMixin.__call__django/utils/deprecation.py:38035 ms2.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5635 ms2.8%
MiddlewareMixin.__call__django/utils/deprecation.py:38035 ms2.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5635 ms2.8%
MiddlewareMixin.__call__django/utils/deprecation.py:38035 ms2.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5635 ms2.8%
MiddlewareMixin.__call__django/utils/deprecation.py:38035 ms2.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5635 ms2.8%
MiddlewareMixin.__call__django/utils/deprecation.py:38035 ms2.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5635 ms2.8%
MiddlewareMixin.__call__django/utils/deprecation.py:38035 ms2.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5635 ms2.8%
BaseHandler._get_responsedjango/core/handlers/base.py:19934 ms2.7%
conferenceconfs/views.py:16831 ms2.5%
_conference_detailconfs/views.py:268 page_obj = paginator.get_page(page_number)9 ms0.7%
Paginator.get_pagedjango/core/paginator.py:1619 ms0.7%
Paginator.validate_numberdjango/core/paginator.py:1539 ms0.7%
cached_property.__get__django/utils/functional.py:479 ms0.7%
Paginator.num_pagesdjango/core/paginator.py:1889 ms0.7%
cached_property.__get__django/utils/functional.py:479 ms0.7%
Paginator.countdjango/core/paginator.py:1829 ms0.7%
QuerySet.countdjango/db/models/query.py:6779 ms0.7%
Query.get_countdjango/db/models/sql/query.py:6579 ms0.7%
Query.get_aggregationdjango/db/models/sql/query.py:6399 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16259 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:799 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:929 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1059 ms0.7%
Cursor.executepsycopg/cursor.py:1139 ms0.7%
Connection.waitpsycopg/connection.py:4959 ms0.7%
7 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
TestApproveConference.test_staff_sees_approve_button_on_detailconfs/tests.py:1405 self.client.force_login(self.staff)8 ms0.6%
ClientMixin.force_logindjango/test/client.py:8588 ms0.6%
2 smaller frames hidden
Estimated from 1,251 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
|
553 ms |
|
confs/tests.py:1371
self.staff = User.objects.create_user("staff", password="pw", is_staff=True)
TestApproveConference.setUp
· Password hashing
|
549 ms |
|
confs/tests.py:1407
response = self.client.get(url)
TestApproveConference.test_staff_sees_approve_button_on_detail
· Libraries
|
116 ms |
|
confs/views.py:268
page_obj = paginator.get_page(page_number)
_conference_detail
· Database
|
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:204
.count()
_conference_detail
· Database
|
5 ms |
|
confs/views.py:226
counts_dict = {c["created_at_date"].date(): c["count"] for c in counts}
_conference_detail
· Database
|
5 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
|
5 ms |
|
confs/tests.py:1370
self.conference = baker.make(Conference, approved_at=None, tags="tag1")
TestApproveConference.setUp
· Database
|
4 ms |
|
confs/views.py:272
user_instance = str(request.user.accountaccess.instance)
_conference_detail
· Database
|
3 ms |
Fixtures
Exact setup time| _django_set_urlconf function | 2 ms |
| _template_string_if_invalid_marker function | 0.08 ms |
| _live_server_helper function | 0.06 ms |
| _dj_autoclear_mailbox function | 0.05 ms |
| _django_db_marker function | 0.04 ms |
| _django_isolate_apps function | 0.04 ms |
| _django_clear_site_cache function | 0.03 ms |
| monkeypatch function | 0.03 ms |
Database
31 queries · 39 msNo repeated queries.
Biggest pieces of work
|
call setUp
confs/tests.py:1372
|
1.11 s |
|
call test body
confs/tests.py:1407
|
158 ms |
| setup pytest internals | 3 ms |
|
setup fixture _django_set_urlconf
pytest_django/plugin.py:682
|
1 ms |
|
call _pre_setup
django/test/testcases.py:1167
|
1 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 | 1.27 s | Profile |
| 16 hours ago | CI github-actions:test | passed | 651 ms | Profile |
| 22 hours ago | CI github-actions:test | passed | 1.10 s | Profile |
| 1 week, 5 days ago | CI github-actions:test | passed | 1.30 s | Profile |
| 2 weeks, 2 days ago | CI github-actions:test | passed | 855 ms | Profile |
| 2 weeks, 2 days ago | CI github-actions:test | passed | 1.07 s | Profile |
| 2 weeks, 4 days ago | CI github-actions:test | passed | 896 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 577 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 1.49 s | Profile |
| 3 weeks ago | CI github-actions:test | passed | 2.26 s | Profile |
| 3 weeks ago | CI github-actions:test | passed | 1.31 s | Profile |
| 3 weeks ago | CI github-actions:test | passed | 679 ms | Run |