Tests / confs/tests.py
TestApproveConference::test_non_staff_forbidden
First seen 1 month, 1 week ago in 0c23747
CI
github-actions:test
13 runs
Average
1.26 s
median 1.18 s
max 2.23 s
max 2.23 s
Phases
Setup 2 ms
Call 1.25 s
Teardown 0.41 ms
Categories
Password hashing 1.15 s
Database 25 ms
Factories 2 ms
App code 0.08 ms
Other (Libraries, pytest, Unsampled, Logging) 84 ms
26 database queries per run
Needs 70 KB of memory (max 724 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 2 weeks ago ·
open run
call786 ms99.9%
TestApproveConference.setUpconfs/tests.py:1371 self.staff = User.objects.create_user("staff", password="pw", is_staff=True)409 ms52.0%
UserManager.create_userdjango/contrib/auth/models.py:180409 ms52.0%
UserManager._create_userdjango/contrib/auth/models.py:167409 ms51.9%
UserManager._create_user_objectdjango/contrib/auth/models.py:160409 ms51.9%
make_passworddjango/contrib/auth/hashers.py:118409 ms51.9%
PBKDF2PasswordHasher.encodedjango/contrib/auth/hashers.py:333409 ms51.9%
pbkdf2django/utils/crypto.py:93409 ms51.9%
1 smaller frames hidden
TestApproveConference.setUpconfs/tests.py:1372 self.normal = User.objects.create_user("bob", password="pw")347 ms44.1%
UserManager.create_userdjango/contrib/auth/models.py:180347 ms44.1%
UserManager._create_userdjango/contrib/auth/models.py:167346 ms44.0%
UserManager._create_user_objectdjango/contrib/auth/models.py:160346 ms44.0%
make_passworddjango/contrib/auth/hashers.py:118346 ms44.0%
PBKDF2PasswordHasher.encodedjango/contrib/auth/hashers.py:333346 ms44.0%
pbkdf2django/utils/crypto.py:93346 ms44.0%
1 smaller frames hidden
TestApproveConference.test_non_staff_forbiddenconfs/tests.py:1377 response = self.client.post(self.url)23 ms2.9%
Client.postdjango/test/client.py:116223 ms2.9%
RequestFactory.postdjango/test/client.py:49923 ms2.9%
RequestFactory.genericdjango/test/client.py:67123 ms2.9%
Client.requestdjango/test/client.py:109123 ms2.9%
ClientHandler.__call__django/test/client.py:17321 ms2.6%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6319 ms2.4%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10418 ms2.3%
WhiteNoise.add_fileswhitenoise/base.py:10818 ms2.3%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12016 ms2.0%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13115 ms1.9%
WhiteNoise.get_static_filewhitenoise/base.py:21711 ms1.4%
StaticFile.__init__whitenoise/responders.py:776 ms0.8%
StaticFile.get_alternativeswhitenoise/responders.py:2014 ms0.5%
2 smaller frames hidden
3 smaller frames hidden
WhiteNoise.get_static_filewhitenoise/base.py:2124 ms0.5%
WhiteNoise.add_cache_headerswhitenoise/base.py:2334 ms0.5%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1764 ms0.5%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1974 ms0.5%
1 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
TestApproveConference.test_non_staff_forbiddenconfs/tests.py:1376 self.client.force_login(self.normal)4 ms0.5%
ClientMixin.force_logindjango/test/client.py:8584 ms0.5%
2 smaller frames hidden
Estimated from 793 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
|
409 ms |
|
confs/tests.py:1372
self.normal = User.objects.create_user("bob", password="pw")
TestApproveConference.setUp
· Password hashing
|
347 ms |
|
confs/tests.py:1377
response = self.client.post(self.url)
TestApproveConference.test_non_staff_forbidden
· Libraries
|
23 ms |
|
confs/tests.py:1376
self.client.force_login(self.normal)
TestApproveConference.test_non_staff_forbidden
· Database
|
4 ms |
|
confs/tests.py:1379
self.conference.refresh_from_db()
TestApproveConference.test_non_staff_forbidden
· Database
|
2 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.03 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
26 queries · 10 msNo repeated queries.
Biggest pieces of work
|
call setUp
confs/tests.py:1371
|
757 ms |
|
call test body
confs/tests.py:1377
|
29 ms |
|
call _post_teardown
django/test/testcases.py:1243
|
0.99 ms |
Reliability
14 results · 0 CI failures · 0 local failuresThis test hasn't failed recently.
History
Latest 14 results, oldest first in the strip| When | Environment | Outcome | Duration | |
|---|---|---|---|---|
| 2 weeks ago | CI github-actions:test | passed | 787 ms | Profile |
| 2 weeks, 5 days ago | CI github-actions:test | passed | 1.18 s | Profile |
| 2 weeks, 6 days ago | CI github-actions:test | passed | 1.30 s | Profile |
| 3 weeks ago | CI github-actions:test | passed | 690 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 1.34 s | Profile |
| 1 month ago | CI github-actions:test | passed | 1.38 s | Profile |
| 1 month ago | CI github-actions:test | passed | 856 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 1.06 s | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 969 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 790 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 1.73 s | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 2.02 s | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 2.23 s | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 968 ms | Run |