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

TestConferenceApprovalVisibility::test_pending_detail_page_is_viewable

First seen 1 month, 1 week ago in 0c23747
CI github-actions:test 13 runs
Average
988 ms
median 668 ms
max 2.14 s
Phases
Setup 1 ms Call 985 ms Teardown 2 ms
Categories
Password hashing 914 ms Database 26 ms Factories 0.94 ms App code 0.24 ms Other (Libraries, Templates, pytest, Unsampled, ...) 47 ms

15 database queries per run

Needs 326 KB of memory (max 1 MB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 2 weeks ago · open run
Show pytest frames
setup0.58 ms0.1%
call520 ms99.8%
TestConferenceApprovalVisibility.setUpconfs/tests.py:1317 self.other = User.objects.create_user("other", password="pw")246 ms47.2%
UserManager.create_userdjango/contrib/auth/models.py:180246 ms47.2%
UserManager._create_userdjango/contrib/auth/models.py:167244 ms46.8%
UserManager._create_user_objectdjango/contrib/auth/models.py:160244 ms46.8%
make_passworddjango/contrib/auth/hashers.py:118244 ms46.8%
PBKDF2PasswordHasher.encodedjango/contrib/auth/hashers.py:333244 ms46.8%
pbkdf2django/utils/crypto.py:93244 ms46.8%
1 smaller frames hidden
TestConferenceApprovalVisibility.setUpconfs/tests.py:1316 self.owner = User.objects.create_user("owner", password="pw")241 ms46.2%
UserManager.create_userdjango/contrib/auth/models.py:180241 ms46.2%
UserManager._create_userdjango/contrib/auth/models.py:167240 ms46.0%
UserManager._create_user_objectdjango/contrib/auth/models.py:160240 ms46.0%
make_passworddjango/contrib/auth/hashers.py:118240 ms46.0%
PBKDF2PasswordHasher.encodedjango/contrib/auth/hashers.py:333240 ms46.0%
pbkdf2django/utils/crypto.py:93240 ms46.0%
1 smaller frames hidden
TestConferenceApprovalVisibility.test_pending_detail_page_is_viewableconfs/tests.py:1355 response = self.client.get(url)30 ms5.8%
Client.getdjango/test/client.py:113330 ms5.8%
RequestFactory.getdjango/test/client.py:47530 ms5.8%
RequestFactory.genericdjango/test/client.py:67130 ms5.8%
Client.requestdjango/test/client.py:109130 ms5.8%
ClientHandler.__call__django/test/client.py:18624 ms4.6%
BaseHandler.get_responsedjango/core/handlers/base.py:14224 ms4.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5624 ms4.6%
MiddlewareMixin.__call__django/utils/deprecation.py:38024 ms4.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5624 ms4.6%
MiddlewareMixin.__call__django/utils/deprecation.py:38024 ms4.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5624 ms4.6%
MiddlewareMixin.__call__django/utils/deprecation.py:38024 ms4.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5624 ms4.6%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12324 ms4.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5624 ms4.6%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:14524 ms4.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5624 ms4.6%
MiddlewareMixin.__call__django/utils/deprecation.py:38024 ms4.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5624 ms4.6%
MiddlewareMixin.__call__django/utils/deprecation.py:38024 ms4.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5624 ms4.6%
MiddlewareMixin.__call__django/utils/deprecation.py:38024 ms4.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5624 ms4.6%
MiddlewareMixin.__call__django/utils/deprecation.py:38024 ms4.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5624 ms4.6%
MiddlewareMixin.__call__django/utils/deprecation.py:38024 ms4.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5624 ms4.6%
MiddlewareMixin.__call__django/utils/deprecation.py:38024 ms4.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5624 ms4.6%
MiddlewareMixin.__call__django/utils/deprecation.py:38024 ms4.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5624 ms4.6%
BaseHandler._get_responsedjango/core/handlers/base.py:19924 ms4.6%
conferenceconfs/views.py:169 return _conference_detail_cached(request, conference_slug)24 ms4.6%
make_middleware_decorator.<locals>._make_decorator.<locals>._decorator.<locals>._view_wrapperdjango/utils/decorators.py:18924 ms4.6%
_conference_detailconfs/views.py:268 page_obj = paginator.get_page(page_number)22 ms4.2%
Paginator.get_pagedjango/core/paginator.py:16122 ms4.2%
Paginator.validate_numberdjango/core/paginator.py:15322 ms4.2%
cached_property.__get__django/utils/functional.py:4722 ms4.2%
Paginator.num_pagesdjango/core/paginator.py:18822 ms4.2%
cached_property.__get__django/utils/functional.py:4722 ms4.2%
Paginator.countdjango/core/paginator.py:18222 ms4.2%
QuerySet.countdjango/db/models/query.py:67722 ms4.2%
Query.get_countdjango/db/models/sql/query.py:65722 ms4.2%
Query.get_aggregationdjango/db/models/sql/query.py:63922 ms4.2%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:162522 ms4.2%
CursorWrapper.executedjango/db/backends/utils.py:7922 ms4.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9222 ms4.2%
CursorWrapper._executedjango/db/backends/utils.py:10522 ms4.2%
Cursor.executepsycopg/cursor.py:11322 ms4.2%
Connection.waitpsycopg/connection.py:49522 ms4.2%
1 smaller frames hidden
ClientHandler.__call__django/test/client.py:1736 ms1.2%
BaseHandler.load_middlewaredjango/core/handlers/base.py:636 ms1.2%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:1046 ms1.2%
WhiteNoise.add_fileswhitenoise/base.py:1086 ms1.2%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1155 ms1.0%
scantreewhitenoise/base.py:2715 ms1.0%
scantreewhitenoise/base.py:2734 ms0.8%
<GC>~3 ms0.6%
1 smaller frames hidden
1 smaller frames hidden
3 smaller frames hidden
Estimated from 504 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
246 ms
confs/tests.py:1316
self.owner = User.objects.create_user("owner", password="pw")
TestConferenceApprovalVisibility.setUp · Password hashing
241 ms
confs/views.py:268
page_obj = paginator.get_page(page_number)
_conference_detail · Database
22 ms
confs/tests.py:1355
response = self.client.get(url)
TestConferenceApprovalVisibility.test_pending_detail_page_is_viewable · Libraries
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
2 ms
confs/tests.py:1318
self.approved = baker.make(
TestConferenceApprovalVisibility.setUp · Database
1 ms
confs/tests.py:1326
self.pending = baker.make(
TestConferenceApprovalVisibility.setUp · Database
1 ms

Fixtures

Exact setup time
_dj_autoclear_mailbox function 0.04 ms
_django_db_marker function 0.03 ms
_template_string_if_invalid_marker function 0.03 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 · 10 ms
No repeated queries.

Biggest pieces of work

call setUp
confs/tests.py:1317
489 ms
call test body
confs/tests.py:1355
30 ms
call _post_teardown
django/test/testcases.py:1243
1 ms
setup __init__
__init__:-1
0.58 ms

Reliability

14 results · 0 CI failures · 0 local failures

This test hasn't failed recently.

History

Latest 14 results, oldest first in the strip
When Environment Outcome Duration Commit
2 weeks ago CI github-actions:test passed 522 ms 28600ed main Profile
2 weeks, 5 days ago CI github-actions:test passed 668 ms 600b717 main Profile
2 weeks, 6 days ago CI github-actions:test passed 631 ms c28a326 main Profile
3 weeks ago CI github-actions:test passed 430 ms 9b8826a main Profile
3 weeks ago CI github-actions:test passed 653 ms 4f01055 main Profile
1 month ago CI github-actions:test passed 642 ms 8ab642e main Profile
1 month ago CI github-actions:test passed 549 ms 9b75244 main Profile
1 month ago CI github-actions:test passed 1.14 s 9603516 main Profile
1 month, 1 week ago CI github-actions:test passed 1.03 s 615a272 main Profile
1 month, 1 week ago CI github-actions:test passed 779 ms d923a46 main Profile
1 month, 1 week ago CI github-actions:test passed 2.14 s 82997f8 main Profile
1 month, 1 week ago CI github-actions:test passed 1.70 s 623aa3e main Profile
1 month, 1 week ago CI github-actions:test passed 1.96 s ab6465a main Profile
1 month, 1 week ago CI github-actions:test passed 930 ms 0c23747 main Run