Tests / confs/tests.py
TestApproveConference::test_anonymous_sees_pending_banner_without_button
First seen 1 month, 1 week ago in 0c23747
CI
github-actions:test
13 runs
Average
993 ms
median 712 ms
max 2.18 s
max 2.18 s
Phases
Setup 1 ms
Call 957 ms
Teardown 34 ms
Categories
Password hashing 877 ms
Database 26 ms
Factories 0.77 ms
App code 0.39 ms
Other (Libraries, DB schema, pytest, Templates, ...) 88 ms
15 database queries per run
Needs 357 KB of memory (max 804 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 2 weeks ago ·
open run
call525 ms87.7%
TestApproveConference.setUpconfs/tests.py:1371 self.staff = User.objects.create_user("staff", password="pw", is_staff=True)248 ms41.4%
UserManager.create_userdjango/contrib/auth/models.py:180248 ms41.4%
UserManager._create_userdjango/contrib/auth/models.py:167248 ms41.4%
UserManager._create_user_objectdjango/contrib/auth/models.py:160248 ms41.4%
make_passworddjango/contrib/auth/hashers.py:118248 ms41.4%
PBKDF2PasswordHasher.encodedjango/contrib/auth/hashers.py:333248 ms41.4%
pbkdf2django/utils/crypto.py:93248 ms41.4%
TestApproveConference.setUpconfs/tests.py:1372 self.normal = User.objects.create_user("bob", password="pw")243 ms40.5%
UserManager.create_userdjango/contrib/auth/models.py:180243 ms40.5%
UserManager._create_userdjango/contrib/auth/models.py:167242 ms40.3%
UserManager._create_user_objectdjango/contrib/auth/models.py:159242 ms40.3%
make_passworddjango/contrib/auth/hashers.py:118241 ms40.2%
PBKDF2PasswordHasher.encodedjango/contrib/auth/hashers.py:333241 ms40.2%
pbkdf2django/utils/crypto.py:93241 ms40.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)26 ms4.3%
Client.getdjango/test/client.py:113326 ms4.3%
RequestFactory.getdjango/test/client.py:47526 ms4.3%
RequestFactory.genericdjango/test/client.py:67126 ms4.3%
Client.requestdjango/test/client.py:109126 ms4.3%
ClientHandler.__call__django/test/client.py:18613 ms2.2%
BaseHandler.get_responsedjango/core/handlers/base.py:14213 ms2.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5613 ms2.2%
MiddlewareMixin.__call__django/utils/deprecation.py:38013 ms2.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5613 ms2.2%
MiddlewareMixin.__call__django/utils/deprecation.py:38013 ms2.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5613 ms2.2%
MiddlewareMixin.__call__django/utils/deprecation.py:38013 ms2.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5613 ms2.2%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12313 ms2.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5613 ms2.2%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:14513 ms2.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5613 ms2.2%
MiddlewareMixin.__call__django/utils/deprecation.py:38013 ms2.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5613 ms2.2%
MiddlewareMixin.__call__django/utils/deprecation.py:38013 ms2.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5613 ms2.2%
MiddlewareMixin.__call__django/utils/deprecation.py:38013 ms2.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5613 ms2.2%
MiddlewareMixin.__call__django/utils/deprecation.py:38013 ms2.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5613 ms2.2%
MiddlewareMixin.__call__django/utils/deprecation.py:38013 ms2.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5613 ms2.2%
MiddlewareMixin.__call__django/utils/deprecation.py:38013 ms2.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5613 ms2.2%
MiddlewareMixin.__call__django/utils/deprecation.py:38013 ms2.2%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5613 ms2.2%
BaseHandler._get_responsedjango/core/handlers/base.py:19913 ms2.2%
conferenceconfs/views.py:169 return _conference_detail_cached(request, conference_slug)13 ms2.2%
make_middleware_decorator.<locals>._make_decorator.<locals>._decorator.<locals>._view_wrapperdjango/utils/decorators.py:18913 ms2.2%
_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
ClientHandler.__call__django/test/client.py:17312 ms2.1%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6312 ms2.1%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10412 ms2.1%
WhiteNoise.add_fileswhitenoise/base.py:10812 ms2.1%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1208 ms1.4%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:1318 ms1.4%
WhiteNoise.get_static_filewhitenoise/base.py:2176 ms1.0%
StaticFile.__init__whitenoise/responders.py:733 ms0.5%
2 smaller frames hidden
1 smaller frames hidden
WhiteNoise.update_files_dictionarywhitenoise/base.py:1154 ms0.7%
scantreewhitenoise/base.py:2713 ms0.5%
scantreewhitenoise/base.py:2713 ms0.5%
1 smaller frames hidden
TestApproveConference.setUpconfs/tests.py:1370 self.conference = baker.make(Conference, approved_at=None, tags="tag1")8 ms1.4%
makemodel_bakery/baker.py:1758 ms1.4%
Baker.makemodel_bakery/baker.py:4547 ms1.2%
Baker._makemodel_bakery/baker.py:5427 ms1.2%
Baker.instancemodel_bakery/baker.py:6597 ms1.2%
Model.savedjango/db/models/base.py:9047 ms1.2%
Model.save_basedjango/db/models/base.py:9967 ms1.2%
Model._save_tabledjango/db/models/base.py:11997 ms1.2%
Model._do_insertdjango/db/models/base.py:12517 ms1.2%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:877 ms1.2%
QuerySet._insertdjango/db/models/query.py:21417 ms1.2%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19366 ms1.0%
CursorWrapper.executedjango/db/backends/utils.py:796 ms1.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:926 ms1.0%
CursorWrapper._executedjango/db/backends/utils.py:1056 ms1.0%
Cursor.executepsycopg/cursor.py:1136 ms1.0%
Connection.waitpsycopg/connection.py:4956 ms1.0%
BaseCursor._execute_genpsycopg/_cursor_base.py:2066 ms1.0%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2866 ms1.0%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:786 ms1.0%
1 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
teardown73 ms12.2%
django_db_setuppytest_django/fixtures.py:199 teardown_databases(db_cfg, verbosity=request.config.option.verbose)73 ms12.2%
teardown_databasesdjango/test/utils.py:39473 ms12.2%
BaseDatabaseCreation.destroy_test_dbdjango/db/backends/base/creation.py:33673 ms12.2%
DatabaseCreation._destroy_test_dbdjango/db/backends/postgresql/creation.py:9173 ms12.2%
BaseDatabaseCreation._destroy_test_dbdjango/db/backends/base/creation.py:35267 ms11.2%
CursorWrapper.executedjango/db/backends/utils.py:7967 ms11.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9267 ms11.2%
CursorWrapper._executedjango/db/backends/utils.py:10367 ms11.2%
Cursor.executepsycopg/cursor.py:11367 ms11.2%
Connection.waitpsycopg/connection.py:49567 ms11.2%
BaseDatabaseCreation._destroy_test_dbdjango/db/backends/base/creation.py:3516 ms1.0%
DatabaseWrapper._nodb_cursordjango/db/backends/postgresql/base.py:5206 ms1.0%
BaseDatabaseWrapper._nodb_cursordjango/db/backends/base/base.py:7126 ms1.0%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:266 ms1.0%
BaseDatabaseWrapper.cursordjango/db/backends/base/base.py:3206 ms1.0%
BaseDatabaseWrapper._cursordjango/db/backends/base/base.py:2966 ms1.0%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:266 ms1.0%
BaseDatabaseWrapper.ensure_connectiondjango/db/backends/base/base.py:2796 ms1.0%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:266 ms1.0%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:2566 ms1.0%
DatabaseWrapper.get_new_connectionfedidevs/db/postgresql/base.py:39 return super().get_new_connection(conn_params)6 ms1.0%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:266 ms1.0%
DatabaseWrapper.get_new_connectiondjango/db/backends/postgresql/base.py:3456 ms1.0%
Connection.connectpsycopg/connection.py:1096 ms1.0%
wait_connpsycopg/waiting.py:1413 ms0.5%
EpollSelector.select<stdlib>/selectors.py:4523 ms0.5%
wait_connpsycopg/waiting.py:1453 ms0.5%
BaseConnection._connect_genpsycopg/_connection_base.py:4393 ms0.5%
Estimated from 585 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
confs/tests.py:1371
self.staff = User.objects.create_user("staff", password="pw", is_staff=True)
TestApproveConference.setUp
· Password hashing
|
248 ms |
|
confs/tests.py:1372
self.normal = User.objects.create_user("bob", password="pw")
TestApproveConference.setUp
· Password hashing
|
243 ms |
|
confs/tests.py:1412
response = self.client.get(url)
TestApproveConference.test_anonymous_sees_pending_banner_without_button
· Libraries
|
12 ms |
|
confs/tests.py:1370
self.conference = baker.make(Conference, approved_at=None, tags="tag1")
TestApproveConference.setUp
· Database
|
8 ms |
|
fedidevs/db/postgresql/base.py:39
return super().get_new_connection(conn_params)
DatabaseWrapper.get_new_connection
· DB schema
|
6 ms |
|
confs/views.py:268
page_obj = paginator.get_page(page_number)
_conference_detail
· Database
|
4 ms |
|
confs/views.py:173
conference = get_object_or_404(Conference, slug=conference_slug)
_conference_detail
· Database
|
2 ms |
|
confs/views.py:204
.count()
_conference_detail
· Database
|
2 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 |
Fixtures
Exact setup time| _dj_autoclear_mailbox function | 0.04 ms |
| _template_string_if_invalid_marker function | 0.03 ms |
| _django_db_marker function | 0.02 ms |
| _django_isolate_apps function | 0.02 ms |
| _live_server_helper function | 0.02 ms |
| _django_set_urlconf function | 0.02 ms |
| _django_clear_site_cache function | 0.02 ms |
| monkeypatch function | 0.01 ms |
Database
15 queries · 81 msNo repeated queries.
Biggest pieces of work
|
call setUp
confs/tests.py:1371
|
498 ms |
|
teardown fixture django_db_setup (session scope)
pytest_django/fixtures.py:199
|
73 ms |
|
call test body
confs/tests.py:1412
|
26 ms |
|
call _post_teardown
django/test/testcases.py:1243
|
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 | 599 ms | Profile |
| 2 weeks, 5 days ago | CI github-actions:test | passed | 712 ms | Profile |
| 2 weeks, 6 days ago | CI github-actions:test | passed | 697 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 505 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 701 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 691 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 629 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 1.04 s | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 961 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 850 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 2.06 s | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 2.18 s | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 1.28 s | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 879 ms | Run |