Tests / confs/tests.py
TestApproveConference::test_anonymous_sees_pending_banner_without_button
First seen 12 hours ago in 0c23747
CI
github-actions:test
4 runs
Average
1.59 s
median 1.67 s
max 2.18 s
max 2.18 s
Phases
Setup 2 ms
Call 1.59 s
Teardown 0.46 ms
Categories
Password hashing 1.43 s
Database 27 ms
Factories 0.42 ms
Other (Libraries, pytest, Templates, Unsampled) 130 ms
14 database queries per run
Needs 37 KB of memory (max 128 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 7 hours ago ·
open run
call849 ms99.9%
TestApproveConference.setUpconfs/tests.py:1372 self.normal = User.objects.create_user("bob", password="pw")388 ms45.7%
UserManager.create_userdjango/contrib/auth/models.py:180388 ms45.7%
UserManager._create_userdjango/contrib/auth/models.py:167388 ms45.7%
UserManager._create_user_objectdjango/contrib/auth/models.py:160388 ms45.7%
make_passworddjango/contrib/auth/hashers.py:118388 ms45.7%
PBKDF2PasswordHasher.encodedjango/contrib/auth/hashers.py:333388 ms45.7%
pbkdf2django/utils/crypto.py:93388 ms45.7%
TestApproveConference.setUpconfs/tests.py:1371 self.staff = User.objects.create_user("staff", password="pw", is_staff=True)369 ms43.4%
UserManager.create_userdjango/contrib/auth/models.py:180369 ms43.4%
UserManager._create_userdjango/contrib/auth/models.py:167368 ms43.3%
UserManager._create_user_objectdjango/contrib/auth/models.py:159368 ms43.3%
make_passworddjango/contrib/auth/hashers.py:118367 ms43.2%
PBKDF2PasswordHasher.encodedjango/contrib/auth/hashers.py:333367 ms43.2%
pbkdf2django/utils/crypto.py:93367 ms43.2%
1 smaller frames hidden
1 smaller frames hidden
TestApproveConference.test_anonymous_sees_pending_banner_without_buttonconfs/tests.py:1412 response = self.client.get(url)89 ms10.5%
Client.getdjango/test/client.py:113389 ms10.5%
RequestFactory.getdjango/test/client.py:47589 ms10.5%
RequestFactory.genericdjango/test/client.py:67189 ms10.5%
Client.requestdjango/test/client.py:109189 ms10.5%
ClientHandler.__call__django/test/client.py:17364 ms7.5%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6363 ms7.4%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10462 ms7.3%
WhiteNoise.add_fileswhitenoise/base.py:10861 ms7.2%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12054 ms6.3%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13153 ms6.2%
WhiteNoise.get_static_filewhitenoise/base.py:21730 ms3.6%
StaticFile.__init__whitenoise/responders.py:7312 ms1.4%
StaticFile.__init__whitenoise/responders.py:777 ms0.8%
StaticFile.__init__whitenoise/responders.py:765 ms0.6%
StaticFile.__init__whitenoise/responders.py:725 ms0.6%
StaticFile.get_file_statswhitenoise/responders.py:1615 ms0.6%
__init____init__:-15 ms0.6%
1 smaller frames hidden
WhiteNoise.get_static_filewhitenoise/base.py:21217 ms2.0%
WhiteNoise.add_cache_headerswhitenoise/base.py:23317 ms2.0%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:17615 ms1.8%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:19715 ms1.8%
URLMixin.urldebug_toolbar/panels/staticfiles.py:2012 ms1.4%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:23511 ms1.3%
2 smaller frames hidden
2 smaller frames hidden
WhiteNoise.get_static_filewhitenoise/base.py:2115 ms0.6%
1 smaller frames hidden
WhiteNoise.update_files_dictionarywhitenoise/base.py:1156 ms0.7%
scantreewhitenoise/base.py:2715 ms0.6%
1 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
ClientHandler.__call__django/test/client.py:18625 ms3.0%
BaseHandler.get_responsedjango/core/handlers/base.py:14225 ms3.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5625 ms3.0%
MiddlewareMixin.__call__django/utils/deprecation.py:38025 ms3.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5625 ms3.0%
MiddlewareMixin.__call__django/utils/deprecation.py:38025 ms3.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5625 ms3.0%
MiddlewareMixin.__call__django/utils/deprecation.py:38025 ms3.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5625 ms3.0%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12325 ms3.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5625 ms3.0%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:14525 ms3.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5625 ms3.0%
MiddlewareMixin.__call__django/utils/deprecation.py:38025 ms3.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5625 ms3.0%
MiddlewareMixin.__call__django/utils/deprecation.py:38025 ms3.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5625 ms3.0%
MiddlewareMixin.__call__django/utils/deprecation.py:38025 ms3.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5625 ms3.0%
MiddlewareMixin.__call__django/utils/deprecation.py:38025 ms3.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5625 ms3.0%
MiddlewareMixin.__call__django/utils/deprecation.py:38025 ms3.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5625 ms3.0%
MiddlewareMixin.__call__django/utils/deprecation.py:38025 ms3.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5625 ms3.0%
MiddlewareMixin.__call__django/utils/deprecation.py:38025 ms3.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5625 ms3.0%
BaseHandler._get_responsedjango/core/handlers/base.py:19925 ms3.0%
conferenceconfs/views.py:169 return _conference_detail_cached(request, conference_slug)25 ms3.0%
make_middleware_decorator.<locals>._make_decorator.<locals>._decorator.<locals>._view_wrapperdjango/utils/decorators.py:18924 ms2.9%
_conference_detailconfs/views.py:268 page_obj = paginator.get_page(page_number)8 ms1.0%
Paginator.get_pagedjango/core/paginator.py:1618 ms1.0%
Paginator.validate_numberdjango/core/paginator.py:1538 ms1.0%
cached_property.__get__django/utils/functional.py:478 ms1.0%
Paginator.num_pagesdjango/core/paginator.py:1888 ms1.0%
cached_property.__get__django/utils/functional.py:478 ms1.0%
Paginator.countdjango/core/paginator.py:1828 ms1.0%
QuerySet.countdjango/db/models/query.py:6778 ms1.0%
Query.get_countdjango/db/models/sql/query.py:6578 ms1.0%
Query.get_aggregationdjango/db/models/sql/query.py:6398 ms1.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16258 ms1.0%
CursorWrapper.executedjango/db/backends/utils.py:798 ms1.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:928 ms1.0%
CursorWrapper._executedjango/db/backends/utils.py:1058 ms1.0%
Cursor.executepsycopg/cursor.py:1138 ms1.0%
Connection.waitpsycopg/connection.py:4958 ms1.0%
5 smaller frames hidden
1 smaller frames hidden
2 smaller frames hidden
Estimated from 837 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
|
388 ms |
|
confs/tests.py:1371
self.staff = User.objects.create_user("staff", password="pw", is_staff=True)
TestApproveConference.setUp
· Password hashing
|
369 ms |
|
confs/tests.py:1412
response = self.client.get(url)
TestApproveConference.test_anonymous_sees_pending_banner_without_button
· Libraries
|
64 ms |
|
confs/views.py:268
page_obj = paginator.get_page(page_number)
_conference_detail
· Database
|
8 ms |
|
confs/views.py:204
.count()
_conference_detail
· Database
|
4 ms |
|
confs/views.py:226
counts_dict = {c["created_at_date"].date(): c["count"] for c in counts}
_conference_detail
· Database
|
4 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
|
3 ms |
|
confs/views.py:296
return render(
_conference_detail
· Templates
|
3 ms |
|
confs/tests.py:1370
self.conference = baker.make(Conference, approved_at=None, tags="tag1")
TestApproveConference.setUp
· Database
|
1 ms |
|
confs/views.py:169
return _conference_detail_cached(request, conference_slug)
conference
· Libraries
|
1 ms |
Fixtures
Exact setup time| _django_clear_site_cache function | 0.07 ms |
| _dj_autoclear_mailbox function | 0.04 ms |
| _template_string_if_invalid_marker function | 0.03 ms |
| _django_db_marker function | 0.03 ms |
| _django_isolate_apps function | 0.03 ms |
| _live_server_helper function | 0.03 ms |
| _django_set_urlconf function | 0.02 ms |
| monkeypatch function | 0.01 ms |
Database
14 queries · 24 msNo repeated queries.
Biggest pieces of work
|
call setUp
confs/tests.py:1372
|
758 ms |
|
call test body
confs/tests.py:1412
|
89 ms |
|
call _pre_setup
django/test/testcases.py:1167
|
1 ms |
Reliability
5 results · 0 CI failures · 0 local failuresThis test hasn't failed recently.
History
Latest 5 results, oldest first in the strip| When | Environment | Outcome | Duration | |
|---|---|---|---|---|
| 7 hours ago | CI github-actions:test | passed | 850 ms | Profile |
| 7 hours ago | CI github-actions:test | passed | 2.06 s | Profile |
| 7 hours ago | CI github-actions:test | passed | 2.18 s | Profile |
| 12 hours ago | CI github-actions:test | passed | 1.28 s | Profile |
| 12 hours ago | CI github-actions:test | passed | 879 ms | Run |