Tests / confs/tests.py
TestConferenceApprovalVisibility::test_pending_detail_page_is_viewable
First seen 3 weeks ago in 0c23747
CI
github-actions:test
11 runs
Average
1.06 s
median 779 ms
max 2.14 s
max 2.14 s
Phases
Setup 1 ms
Call 1.06 s
Teardown 2 ms
Categories
Password hashing 979 ms
Database 26 ms
Factories 1 ms
App code 0.28 ms
Other (Libraries, Templates, pytest, Unsampled, ...) 53 ms
15 database queries per run
Needs 280 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
call629 ms99.7%
TestConferenceApprovalVisibility.setUpconfs/tests.py:1317 self.other = User.objects.create_user("other", password="pw")298 ms47.3%
UserManager.create_userdjango/contrib/auth/models.py:180298 ms47.3%
UserManager._create_userdjango/contrib/auth/models.py:167297 ms47.1%
UserManager._create_user_objectdjango/contrib/auth/models.py:160297 ms47.1%
make_passworddjango/contrib/auth/hashers.py:118297 ms47.1%
PBKDF2PasswordHasher.encodedjango/contrib/auth/hashers.py:333297 ms47.1%
pbkdf2django/utils/crypto.py:93297 ms47.1%
1 smaller frames hidden
TestConferenceApprovalVisibility.setUpconfs/tests.py:1316 self.owner = User.objects.create_user("owner", password="pw")297 ms47.1%
UserManager.create_userdjango/contrib/auth/models.py:180297 ms47.1%
UserManager._create_userdjango/contrib/auth/models.py:167296 ms46.9%
UserManager._create_user_objectdjango/contrib/auth/models.py:160296 ms46.9%
make_passworddjango/contrib/auth/hashers.py:118296 ms46.9%
PBKDF2PasswordHasher.encodedjango/contrib/auth/hashers.py:333296 ms46.9%
pbkdf2django/utils/crypto.py:93296 ms46.9%
1 smaller frames hidden
TestConferenceApprovalVisibility.test_pending_detail_page_is_viewableconfs/tests.py:1355 response = self.client.get(url)32 ms5.0%
Client.getdjango/test/client.py:113332 ms5.0%
RequestFactory.getdjango/test/client.py:47532 ms5.0%
RequestFactory.genericdjango/test/client.py:67132 ms5.0%
Client.requestdjango/test/client.py:109132 ms5.0%
ClientHandler.__call__django/test/client.py:17320 ms3.2%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6320 ms3.2%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10420 ms3.2%
WhiteNoise.add_fileswhitenoise/base.py:10820 ms3.2%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12016 ms2.5%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13115 ms2.3%
WhiteNoise.get_static_filewhitenoise/base.py:2179 ms1.5%
StaticFile.__init__whitenoise/responders.py:736 ms1.0%
StaticFile.get_alternativeswhitenoise/responders.py:1983 ms0.5%
StaticFile.get_alternatives.<locals>.<lambda>whitenoise/responders.py:1983 ms0.5%
<GC>~3 ms0.5%
2 smaller frames hidden
1 smaller frames hidden
WhiteNoise.get_static_filewhitenoise/base.py:2123 ms0.5%
WhiteNoise.add_cache_headerswhitenoise/base.py:2333 ms0.5%
1 smaller frames hidden
WhiteNoise.update_files_dictionarywhitenoise/base.py:1153 ms0.5%
ClientHandler.__call__django/test/client.py:18612 ms1.8%
BaseHandler.get_responsedjango/core/handlers/base.py:14212 ms1.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5612 ms1.8%
MiddlewareMixin.__call__django/utils/deprecation.py:38012 ms1.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5612 ms1.8%
MiddlewareMixin.__call__django/utils/deprecation.py:38012 ms1.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5612 ms1.8%
MiddlewareMixin.__call__django/utils/deprecation.py:38012 ms1.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5612 ms1.8%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12312 ms1.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5612 ms1.8%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:14512 ms1.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5612 ms1.8%
MiddlewareMixin.__call__django/utils/deprecation.py:38012 ms1.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5612 ms1.8%
MiddlewareMixin.__call__django/utils/deprecation.py:38012 ms1.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5612 ms1.8%
MiddlewareMixin.__call__django/utils/deprecation.py:38012 ms1.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5612 ms1.8%
MiddlewareMixin.__call__django/utils/deprecation.py:38012 ms1.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5612 ms1.8%
MiddlewareMixin.__call__django/utils/deprecation.py:38012 ms1.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5612 ms1.8%
MiddlewareMixin.__call__django/utils/deprecation.py:38012 ms1.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5612 ms1.8%
MiddlewareMixin.__call__django/utils/deprecation.py:38012 ms1.8%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5612 ms1.8%
BaseHandler._get_responsedjango/core/handlers/base.py:19912 ms1.8%
conferenceconfs/views.py:169 return _conference_detail_cached(request, conference_slug)12 ms1.8%
make_middleware_decorator.<locals>._make_decorator.<locals>._decorator.<locals>._view_wrapperdjango/utils/decorators.py:18912 ms1.8%
_conference_detailconfs/views.py:268 page_obj = paginator.get_page(page_number)4 ms0.7%
Paginator.get_pagedjango/core/paginator.py:1614 ms0.7%
Paginator.validate_numberdjango/core/paginator.py:1534 ms0.7%
cached_property.__get__django/utils/functional.py:474 ms0.7%
Paginator.num_pagesdjango/core/paginator.py:1884 ms0.7%
cached_property.__get__django/utils/functional.py:474 ms0.7%
Paginator.countdjango/core/paginator.py:1824 ms0.7%
QuerySet.countdjango/db/models/query.py:6774 ms0.7%
Query.get_countdjango/db/models/sql/query.py:6574 ms0.7%
Query.get_aggregationdjango/db/models/sql/query.py:6394 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16254 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:794 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:924 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1054 ms0.7%
Cursor.executepsycopg/cursor.py:1134 ms0.7%
Connection.waitpsycopg/connection.py:4954 ms0.7%
5 smaller frames hidden
2 smaller frames hidden
Estimated from 597 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
confs/tests.py:1317
self.other = User.objects.create_user("other", password="pw")
TestConferenceApprovalVisibility.setUp
· Password hashing
|
298 ms |
|
confs/tests.py:1316
self.owner = User.objects.create_user("owner", password="pw")
TestConferenceApprovalVisibility.setUp
· Password hashing
|
297 ms |
|
confs/tests.py:1355
response = self.client.get(url)
TestConferenceApprovalVisibility.test_pending_detail_page_is_viewable
· Libraries
|
20 ms |
|
confs/views.py:268
page_obj = paginator.get_page(page_number)
_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
|
2 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
|
2 ms |
|
confs/tests.py:1318
self.approved = baker.make(
TestConferenceApprovalVisibility.setUp
· Database
|
1 ms |
|
confs/views.py:173
conference = get_object_or_404(Conference, slug=conference_slug)
_conference_detail
· Database
|
1 ms |
|
confs/views.py:204
.count()
_conference_detail
· Database
|
1 ms |
|
confs/views.py:296
return render(
_conference_detail
· Templates
|
1 ms |
Fixtures
Exact setup time| _dj_autoclear_mailbox function | 0.04 ms |
| _template_string_if_invalid_marker function | 0.04 ms |
| _live_server_helper function | 0.04 ms |
| _django_db_marker function | 0.03 ms |
| _django_isolate_apps function | 0.03 ms |
| _django_set_urlconf function | 0.03 ms |
| _django_clear_site_cache function | 0.02 ms |
| monkeypatch function | 0.02 ms |
Database
15 queries · 12 msNo repeated queries.
Biggest pieces of work
|
call setUp
confs/tests.py:1317
|
597 ms |
|
call test body
confs/tests.py:1355
|
32 ms |
|
call _post_teardown
django/test/testcases.py:1243
|
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 | 631 ms | Profile |
| 16 hours ago | CI github-actions:test | passed | 430 ms | Profile |
| 22 hours ago | CI github-actions:test | passed | 653 ms | Profile |
| 1 week, 5 days ago | CI github-actions:test | passed | 642 ms | Profile |
| 2 weeks, 2 days ago | CI github-actions:test | passed | 549 ms | Profile |
| 2 weeks, 2 days ago | CI github-actions:test | passed | 1.14 s | Profile |
| 2 weeks, 4 days ago | CI github-actions:test | passed | 1.03 s | Profile |
| 3 weeks ago | CI github-actions:test | passed | 779 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 2.14 s | Profile |
| 3 weeks ago | CI github-actions:test | passed | 1.70 s | Profile |
| 3 weeks ago | CI github-actions:test | passed | 1.96 s | Profile |
| 3 weeks ago | CI github-actions:test | passed | 930 ms | Run |