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

TestApproveConference::test_staff_approves

First seen 12 hours ago in 0c23747
CI github-actions:test 4 runs
Average
1.55 s
median 1.63 s
max 2.19 s
Phases
Setup 5 ms Call 1.55 s Teardown 0.30 ms
Categories
Password hashing 1.38 s Database 31 ms Other (Libraries, pytest, Unsampled) 136 ms

28 database queries per run

Needs 139 KB of memory (max 368 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 7 hours ago · open run
Show pytest frames
setup0.87 ms0.1%
call771 ms99.9%
TestApproveConference.setUpconfs/tests.py:1371 self.staff = User.objects.create_user("staff", password="pw", is_staff=True)421 ms54.5%
UserManager.create_userdjango/contrib/auth/models.py:180421 ms54.5%
UserManager._create_userdjango/contrib/auth/models.py:167420 ms54.4%
UserManager._create_user_objectdjango/contrib/auth/models.py:160420 ms54.4%
make_passworddjango/contrib/auth/hashers.py:118420 ms54.4%
PBKDF2PasswordHasher.encodedjango/contrib/auth/hashers.py:333420 ms54.4%
pbkdf2django/utils/crypto.py:93420 ms54.4%
1 smaller frames hidden
TestApproveConference.setUpconfs/tests.py:1372 self.normal = User.objects.create_user("bob", password="pw")333 ms43.2%
UserManager.create_userdjango/contrib/auth/models.py:180333 ms43.2%
UserManager._create_userdjango/contrib/auth/models.py:167332 ms43.0%
UserManager._create_user_objectdjango/contrib/auth/models.py:160332 ms43.0%
make_passworddjango/contrib/auth/hashers.py:118332 ms43.0%
PBKDF2PasswordHasher.encodedjango/contrib/auth/hashers.py:333332 ms43.0%
pbkdf2django/utils/crypto.py:93332 ms43.0%
1 smaller frames hidden
TestApproveConference.test_staff_approvesconfs/tests.py:1390 response = self.client.post(self.url)9 ms1.2%
Client.postdjango/test/client.py:11629 ms1.2%
RequestFactory.postdjango/test/client.py:4999 ms1.2%
RequestFactory.genericdjango/test/client.py:6719 ms1.2%
Client.requestdjango/test/client.py:10919 ms1.2%
ClientHandler.__call__django/test/client.py:1736 ms0.8%
BaseHandler.load_middlewaredjango/core/handlers/base.py:636 ms0.8%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:1046 ms0.8%
WhiteNoise.add_fileswhitenoise/base.py:1086 ms0.8%
1 smaller frames hidden
TestApproveConference.test_staff_approvesconfs/tests.py:1389 self.client.force_login(self.staff)4 ms0.5%
ClientMixin.force_logindjango/test/client.py:8584 ms0.5%
2 smaller frames hidden
Estimated from 748 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
421 ms
confs/tests.py:1372
self.normal = User.objects.create_user("bob", password="pw")
TestApproveConference.setUp · Password hashing
333 ms
confs/tests.py:1390
response = self.client.post(self.url)
TestApproveConference.test_staff_approves · Libraries
7 ms
confs/tests.py:1389
self.client.force_login(self.staff)
TestApproveConference.test_staff_approves · Database
4 ms
confs/tests.py:1370
self.conference = baker.make(Conference, approved_at=None, tags="tag1")
TestApproveConference.setUp · Database
2 ms
confs/views.py:572
conference = get_object_or_404(Conference, slug=conference_slug)
approve_conference · Database
1 ms
confs/views.py:575
conference.save(update_fields=["approved_at"])
approve_conference · Database
1 ms
confs/tests.py:1391
self.conference.refresh_from_db()
TestApproveConference.test_staff_approves · Database
1 ms

Fixtures

Exact setup time
_django_db_marker function 0.11 ms
_dj_autoclear_mailbox function 0.05 ms
_template_string_if_invalid_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
_django_clear_site_cache function 0.02 ms
monkeypatch function 0.02 ms

Database

28 queries · 8 ms
No repeated queries.

Biggest pieces of work

call setUp
confs/tests.py:1371
757 ms
call test body
confs/tests.py:1389
14 ms
setup pytest internals 0.87 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 772 ms d923a46 main Profile
7 hours ago CI github-actions:test passed 2.19 s 82997f8 main Profile
7 hours ago CI github-actions:test passed 1.74 s 623aa3e main Profile
12 hours ago CI github-actions:test passed 1.52 s ab6465a main Profile
12 hours ago CI github-actions:test passed 914 ms 0c23747 main Run