Tests / confs/tests.py
TestUnapproveConference::test_staff_unapproves
First seen 12 hours ago in 0c23747
CI
github-actions:test
4 runs
Average
696 ms
median 659 ms
max 959 ms
max 959 ms
Phases
Setup 1 ms
Call 692 ms
Teardown 2 ms
Categories
Password hashing 652 ms
Database 12 ms
Factories 0.93 ms
Other (Libraries, pytest, Unsampled) 31 ms
28 database queries per run
Needs 707 KB of memory (max 1 MB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 7 hours ago ·
open run
call503 ms99.8%
TestUnapproveConference.setUpconfs/tests.py:1295 self.staff = User.objects.create_user("staff", password="pw", is_staff=True)243 ms48.1%
UserManager.create_userdjango/contrib/auth/models.py:180243 ms48.1%
UserManager._create_userdjango/contrib/auth/models.py:167242 ms47.9%
UserManager._create_user_objectdjango/contrib/auth/models.py:160242 ms47.9%
make_passworddjango/contrib/auth/hashers.py:118242 ms47.9%
PBKDF2PasswordHasher.encodedjango/contrib/auth/hashers.py:333242 ms47.9%
pbkdf2django/utils/crypto.py:93242 ms47.9%
1 smaller frames hidden
TestUnapproveConference.setUpconfs/tests.py:1296 self.normal = User.objects.create_user("bob", password="pw")242 ms47.9%
UserManager.create_userdjango/contrib/auth/models.py:180242 ms47.9%
UserManager._create_userdjango/contrib/auth/models.py:167241 ms47.7%
UserManager._create_user_objectdjango/contrib/auth/models.py:160241 ms47.7%
make_passworddjango/contrib/auth/hashers.py:118241 ms47.7%
PBKDF2PasswordHasher.encodedjango/contrib/auth/hashers.py:333241 ms47.7%
pbkdf2django/utils/crypto.py:93241 ms47.7%
1 smaller frames hidden
TestUnapproveConference.test_staff_unapprovesconfs/tests.py:1301 self.client.post(self.url)14 ms2.7%
Client.postdjango/test/client.py:116214 ms2.7%
RequestFactory.postdjango/test/client.py:49914 ms2.7%
RequestFactory.genericdjango/test/client.py:67114 ms2.7%
Client.requestdjango/test/client.py:109114 ms2.7%
ClientHandler.__call__django/test/client.py:17311 ms2.3%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6311 ms2.3%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10411 ms2.3%
WhiteNoise.add_fileswhitenoise/base.py:10811 ms2.3%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1208 ms1.7%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:1318 ms1.7%
WhiteNoise.get_static_filewhitenoise/base.py:2176 ms1.2%
2 smaller frames hidden
WhiteNoise.update_files_dictionarywhitenoise/base.py:1153 ms0.6%
2 smaller frames hidden
TestUnapproveConference.test_staff_unapprovesconfs/tests.py:1300 self.client.force_login(self.staff)3 ms0.6%
ClientMixin.force_logindjango/test/client.py:8583 ms0.6%
1 smaller frames hidden
Estimated from 483 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
confs/tests.py:1295
self.staff = User.objects.create_user("staff", password="pw", is_staff=True)
TestUnapproveConference.setUp
· Password hashing
|
243 ms |
|
confs/tests.py:1296
self.normal = User.objects.create_user("bob", password="pw")
TestUnapproveConference.setUp
· Password hashing
|
242 ms |
|
confs/tests.py:1301
self.client.post(self.url)
TestUnapproveConference.test_staff_unapproves
· Libraries
|
13 ms |
|
confs/tests.py:1300
self.client.force_login(self.staff)
TestUnapproveConference.test_staff_unapproves
· Database
|
3 ms |
|
confs/tests.py:1294
self.conference = baker.make(Conference, approved_at=timezone.now(), tags="tag1")
TestUnapproveConference.setUp
· Factories
|
2 ms |
|
confs/views.py:584
conference = get_object_or_404(Conference, slug=conference_slug)
unapprove_conference
· Database
|
1 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 |
| _django_set_urlconf function | 0.02 ms |
| _live_server_helper function | 0.02 ms |
| _django_clear_site_cache function | 0.02 ms |
| monkeypatch function | 0.01 ms |
Database
28 queries · 7 msNo repeated queries.
Biggest pieces of work
|
call setUp
confs/tests.py:1295
|
487 ms |
|
call test body
confs/tests.py:1300
|
17 ms |
Reliability
5 results · 0 CI failures · 0 local failuresThis test hasn't failed recently.
History
Latest 5 results, oldest first in the strip| When | Environment | Outcome | Duration | |
|---|---|---|---|---|
| 7 hours ago | CI github-actions:test | passed | 504 ms | Profile |
| 7 hours ago | CI github-actions:test | passed | 648 ms | Profile |
| 7 hours ago | CI github-actions:test | passed | 671 ms | Profile |
| 12 hours ago | CI github-actions:test | passed | 959 ms | Profile |
| 12 hours ago | CI github-actions:test | passed | 620 ms | Run |