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

TestApproveConference::test_get_not_allowed

First seen 12 hours ago in 0c23747
CI github-actions:test 4 runs
Average
1.58 s
median 1.70 s
max 2.14 s
Phases
Setup 2 ms Call 1.57 s Teardown 0.30 ms
Categories
Password hashing 1.41 s Database 35 ms Factories 1 ms Other (Libraries, pytest, Unsampled, Imports) 129 ms

25 database queries per run

Needs 41 KB of memory (max 144 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 7 hours ago · open run
Show pytest frames
call754 ms99.9%
TestApproveConference.setUpconfs/tests.py:1372 self.normal = User.objects.create_user("bob", password="pw")365 ms48.3%
UserManager.create_userdjango/contrib/auth/models.py:180365 ms48.3%
UserManager._create_userdjango/contrib/auth/models.py:167364 ms48.1%
UserManager._create_user_objectdjango/contrib/auth/models.py:160364 ms48.1%
make_passworddjango/contrib/auth/hashers.py:118364 ms48.1%
PBKDF2PasswordHasher.encodedjango/contrib/auth/hashers.py:333364 ms48.1%
pbkdf2django/utils/crypto.py:93364 ms48.1%
1 smaller frames hidden
TestApproveConference.setUpconfs/tests.py:1371 self.staff = User.objects.create_user("staff", password="pw", is_staff=True)357 ms47.3%
UserManager.create_userdjango/contrib/auth/models.py:180357 ms47.3%
UserManager._create_userdjango/contrib/auth/models.py:167356 ms47.2%
UserManager._create_user_objectdjango/contrib/auth/models.py:160356 ms47.2%
make_passworddjango/contrib/auth/hashers.py:118356 ms47.2%
PBKDF2PasswordHasher.encodedjango/contrib/auth/hashers.py:333356 ms47.2%
pbkdf2django/utils/crypto.py:93356 ms47.2%
1 smaller frames hidden
TestApproveConference.test_get_not_allowedconfs/tests.py:1401 response = self.client.get(self.url)24 ms3.2%
Client.getdjango/test/client.py:113324 ms3.2%
RequestFactory.getdjango/test/client.py:47524 ms3.2%
RequestFactory.genericdjango/test/client.py:67124 ms3.2%
Client.requestdjango/test/client.py:109124 ms3.2%
ClientHandler.__call__django/test/client.py:17320 ms2.6%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6320 ms2.6%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10420 ms2.6%
WhiteNoise.add_fileswhitenoise/base.py:10820 ms2.6%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12015 ms1.9%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13114 ms1.8%
WhiteNoise.get_static_filewhitenoise/base.py:21714 ms1.8%
StaticFile.__init__whitenoise/responders.py:776 ms0.8%
StaticFile.get_alternativeswhitenoise/responders.py:2016 ms0.8%
Headers.__setitem__<stdlib>/wsgiref/headers.py:626 ms0.8%
Headers.__delitem__<stdlib>/wsgiref/headers.py:726 ms0.8%
<GC>~6 ms0.8%
3 smaller frames hidden
WhiteNoise.update_files_dictionarywhitenoise/base.py:1155 ms0.7%
ClientHandler.__call__django/test/client.py:1864 ms0.6%
BaseHandler.get_responsedjango/core/handlers/base.py:1424 ms0.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:564 ms0.6%
MiddlewareMixin.__call__django/utils/deprecation.py:3804 ms0.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:564 ms0.6%
MiddlewareMixin.__call__django/utils/deprecation.py:3804 ms0.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:564 ms0.6%
MiddlewareMixin.__call__django/utils/deprecation.py:3804 ms0.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:564 ms0.6%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:1234 ms0.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:564 ms0.6%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1454 ms0.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:564 ms0.6%
MiddlewareMixin.__call__django/utils/deprecation.py:3804 ms0.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:564 ms0.6%
MiddlewareMixin.__call__django/utils/deprecation.py:3804 ms0.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:564 ms0.6%
MiddlewareMixin.__call__django/utils/deprecation.py:3804 ms0.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:564 ms0.6%
MiddlewareMixin.__call__django/utils/deprecation.py:3804 ms0.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:564 ms0.6%
MiddlewareMixin.__call__django/utils/deprecation.py:3804 ms0.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:564 ms0.6%
MiddlewareMixin.__call__django/utils/deprecation.py:3804 ms0.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:564 ms0.6%
MiddlewareMixin.__call__django/utils/deprecation.py:3804 ms0.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:564 ms0.6%
TestApproveConference.test_get_not_allowedconfs/tests.py:1400 self.client.force_login(self.staff)7 ms1.0%
ClientMixin.force_logindjango/test/client.py:8587 ms1.0%
ClientMixin._logindjango/test/client.py:8894 ms0.6%
1 smaller frames hidden
1 smaller frames hidden
Estimated from 722 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
365 ms
confs/tests.py:1371
self.staff = User.objects.create_user("staff", password="pw", is_staff=True)
TestApproveConference.setUp · Password hashing
357 ms
confs/tests.py:1401
response = self.client.get(self.url)
TestApproveConference.test_get_not_allowed · Libraries
24 ms
confs/tests.py:1400
self.client.force_login(self.staff)
TestApproveConference.test_get_not_allowed · Database
7 ms
confs/tests.py:1370
self.conference = baker.make(Conference, approved_at=None, tags="tag1")
TestApproveConference.setUp · Database
1 ms

Fixtures

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

Database

25 queries · 9 ms
No repeated queries.

Biggest pieces of work

call setUp
confs/tests.py:1372
723 ms
call test body
confs/tests.py:1401
31 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 755 ms d923a46 main Profile
7 hours ago CI github-actions:test passed 1.51 s 82997f8 main Profile
7 hours ago CI github-actions:test passed 1.90 s 623aa3e main Profile
12 hours ago CI github-actions:test passed 2.14 s ab6465a main Profile
12 hours ago CI github-actions:test passed 954 ms 0c23747 main Run