flakytest.dev anze3db fedidevs
Tests / confs/tests.py

TestConferenceApprovalVisibility::test_pending_detail_page_is_viewable

First seen 12 hours ago in 0c23747
CI github-actions:test 4 runs
Average
1.65 s
median 1.83 s
max 2.14 s
Phases
Setup 1 ms Call 1.64 s Teardown 3 ms
Categories
Password hashing 1.52 s Database 29 ms Factories 2 ms Other (Libraries, Templates, pytest, Unsampled) 91 ms

15 database queries per run

Needs 1 KB of memory (max 4 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 7 hours ago · open run
Show pytest frames
setup1 ms0.1%
call775 ms99.5%
TestConferenceApprovalVisibility.setUpconfs/tests.py:1316 self.owner = User.objects.create_user("owner", password="pw")379 ms48.6%
UserManager.create_userdjango/contrib/auth/models.py:180379 ms48.6%
UserManager._create_userdjango/contrib/auth/models.py:167377 ms48.4%
UserManager._create_user_objectdjango/contrib/auth/models.py:160376 ms48.2%
make_passworddjango/contrib/auth/hashers.py:118376 ms48.2%
PBKDF2PasswordHasher.encodedjango/contrib/auth/hashers.py:333376 ms48.2%
pbkdf2django/utils/crypto.py:93376 ms48.2%
1 smaller frames hidden
1 smaller frames hidden
TestConferenceApprovalVisibility.setUpconfs/tests.py:1317 self.other = User.objects.create_user("other", password="pw")354 ms45.4%
UserManager.create_userdjango/contrib/auth/models.py:180354 ms45.4%
UserManager._create_userdjango/contrib/auth/models.py:167352 ms45.3%
UserManager._create_user_objectdjango/contrib/auth/models.py:160352 ms45.3%
make_passworddjango/contrib/auth/hashers.py:118352 ms45.3%
PBKDF2PasswordHasher.encodedjango/contrib/auth/hashers.py:333352 ms45.3%
pbkdf2django/utils/crypto.py:93352 ms45.3%
1 smaller frames hidden
TestConferenceApprovalVisibility.test_pending_detail_page_is_viewableconfs/tests.py:1355 response = self.client.get(url)40 ms5.1%
Client.getdjango/test/client.py:113340 ms5.1%
RequestFactory.getdjango/test/client.py:47540 ms5.1%
RequestFactory.genericdjango/test/client.py:67140 ms5.1%
Client.requestdjango/test/client.py:109140 ms5.1%
ClientHandler.__call__django/test/client.py:17321 ms2.7%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6321 ms2.7%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10421 ms2.7%
WhiteNoise.add_fileswhitenoise/base.py:10821 ms2.7%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12016 ms2.0%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13116 ms2.0%
WhiteNoise.get_static_filewhitenoise/base.py:21713 ms1.6%
StaticFile.__init__whitenoise/responders.py:725 ms0.7%
StaticFile.get_file_statswhitenoise/responders.py:1615 ms0.7%
__init____init__:-15 ms0.7%
FileEntry.__init__whitenoise/responders.py:2635 ms0.7%
FileEntry.stat_regular_filewhitenoise/responders.py:2765 ms0.7%
<GC>~5 ms0.7%
3 smaller frames hidden
2 smaller frames hidden
WhiteNoise.update_files_dictionarywhitenoise/base.py:1154 ms0.5%
scantreewhitenoise/base.py:2714 ms0.5%
scantreewhitenoise/base.py:2714 ms0.5%
ClientHandler.__call__django/test/client.py:18619 ms2.4%
BaseHandler.get_responsedjango/core/handlers/base.py:14219 ms2.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5619 ms2.4%
MiddlewareMixin.__call__django/utils/deprecation.py:38019 ms2.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5619 ms2.4%
MiddlewareMixin.__call__django/utils/deprecation.py:38019 ms2.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5619 ms2.4%
MiddlewareMixin.__call__django/utils/deprecation.py:38019 ms2.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5619 ms2.4%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12319 ms2.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5619 ms2.4%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:14519 ms2.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5619 ms2.4%
MiddlewareMixin.__call__django/utils/deprecation.py:38019 ms2.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5619 ms2.4%
MiddlewareMixin.__call__django/utils/deprecation.py:38019 ms2.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5619 ms2.4%
MiddlewareMixin.__call__django/utils/deprecation.py:38019 ms2.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5619 ms2.4%
MiddlewareMixin.__call__django/utils/deprecation.py:38019 ms2.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5619 ms2.4%
MiddlewareMixin.__call__django/utils/deprecation.py:38019 ms2.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5619 ms2.4%
MiddlewareMixin.__call__django/utils/deprecation.py:38019 ms2.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5619 ms2.4%
MiddlewareMixin.__call__django/utils/deprecation.py:38019 ms2.4%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5619 ms2.4%
BaseHandler._get_responsedjango/core/handlers/base.py:19919 ms2.4%
conferenceconfs/views.py:169 return _conference_detail_cached(request, conference_slug)19 ms2.4%
make_middleware_decorator.<locals>._make_decorator.<locals>._decorator.<locals>._view_wrapperdjango/utils/decorators.py:18919 ms2.4%
_conference_detailconfs/views.py:268 page_obj = paginator.get_page(page_number)6 ms0.8%
Paginator.get_pagedjango/core/paginator.py:1616 ms0.8%
Paginator.validate_numberdjango/core/paginator.py:1536 ms0.8%
cached_property.__get__django/utils/functional.py:476 ms0.8%
Paginator.num_pagesdjango/core/paginator.py:1886 ms0.8%
cached_property.__get__django/utils/functional.py:476 ms0.8%
Paginator.countdjango/core/paginator.py:1826 ms0.8%
QuerySet.countdjango/db/models/query.py:6776 ms0.8%
Query.get_countdjango/db/models/sql/query.py:6576 ms0.8%
Query.get_aggregationdjango/db/models/sql/query.py:6396 ms0.8%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16256 ms0.8%
CursorWrapper.executedjango/db/backends/utils.py:796 ms0.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:926 ms0.8%
CursorWrapper._executedjango/db/backends/utils.py:1056 ms0.8%
Cursor.executepsycopg/cursor.py:1136 ms0.8%
Connection.waitpsycopg/connection.py:4956 ms0.8%
_conference_detailconfs/views.py:2764 ms0.5%
_conference_detail.<locals>.<genexpr>confs/views.py:276 current_account = next((account for account in account_counts if account.account.id == account_id), None)4 ms0.5%
QuerySet.__iter__django/db/models/query.py:4394 ms0.5%
QuerySet._fetch_alldjango/db/models/query.py:22624 ms0.5%
ModelIterable.__iter__django/db/models/query.py:1034 ms0.5%
3 smaller frames hidden
3 smaller frames hidden
teardown3 ms0.3%
Estimated from 744 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

confs/tests.py:1316
self.owner = User.objects.create_user("owner", password="pw")
TestConferenceApprovalVisibility.setUp · Password hashing
379 ms
confs/tests.py:1317
self.other = User.objects.create_user("other", password="pw")
TestConferenceApprovalVisibility.setUp · Password hashing
354 ms
confs/tests.py:1355
response = self.client.get(url)
TestConferenceApprovalVisibility.test_pending_detail_page_is_viewable · Libraries
21 ms
confs/views.py:268
page_obj = paginator.get_page(page_number)
_conference_detail · Database
6 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
4 ms
confs/views.py:226
counts_dict = {c["created_at_date"].date(): c["count"] for c in counts}
_conference_detail · Database
3 ms
confs/views.py:296
return render(
_conference_detail · Templates
3 ms
confs/views.py:173
conference = get_object_or_404(Conference, slug=conference_slug)
_conference_detail · Database
2 ms
confs/tests.py:1318
self.approved = baker.make(
TestConferenceApprovalVisibility.setUp · Factories
1 ms
confs/tests.py:1326
self.pending = baker.make(
TestConferenceApprovalVisibility.setUp · Factories
1 ms

Fixtures

Exact setup time
_dj_autoclear_mailbox function 0.05 ms
_template_string_if_invalid_marker function 0.04 ms
_django_db_marker function 0.03 ms
_django_isolate_apps function 0.03 ms
_live_server_helper function 0.03 ms
_django_clear_site_cache function 0.03 ms
_django_set_urlconf function 0.02 ms
monkeypatch function 0.02 ms

Database

15 queries · 18 ms
No repeated queries.

Biggest pieces of work

call setUp
confs/tests.py:1316
734 ms
call test body
confs/tests.py:1355
40 ms
teardown tearDownClass
django/test/testcases.py:1456
1 ms
teardown pytest internals 1 ms
call __init__
__init__:-1
1 ms

Reliability

5 results · 0 CI failures · 0 local failures

This test hasn't failed recently.

History

Latest 5 results, oldest first in the strip
When Environment Outcome Duration Commit
7 hours ago CI github-actions:test passed 779 ms d923a46 main Profile
7 hours ago CI github-actions:test passed 2.14 s 82997f8 main Profile
7 hours ago CI github-actions:test passed 1.70 s 623aa3e main Profile
12 hours ago CI github-actions:test passed 1.96 s ab6465a main Profile
12 hours ago CI github-actions:test passed 930 ms 0c23747 main Run