Tests / confs/tests.py
TestCreateConference::test_requires_login
First seen 1 month, 1 week ago in 0c23747
CI
github-actions:test
13 runs
Average
645 ms
median 549 ms
max 1.17 s
max 1.17 s
Phases
Setup 2 ms
Call 643 ms
Teardown 0.33 ms
Categories
Password hashing 554 ms
Database 5 ms
Other (Libraries, pytest, Unsampled) 86 ms
6 database queries per run
Needs 1 KB of memory (max 8 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 2 weeks ago ·
open run
call436 ms99.6%
TestCreateConference.setUpconfs/tests.py:1044 self.user = User.objects.create_user("alice", password="pw")389 ms88.8%
UserManager.create_userdjango/contrib/auth/models.py:180389 ms88.8%
UserManager._create_userdjango/contrib/auth/models.py:167388 ms88.6%
UserManager._create_user_objectdjango/contrib/auth/models.py:160388 ms88.6%
make_passworddjango/contrib/auth/hashers.py:118388 ms88.6%
PBKDF2PasswordHasher.encodedjango/contrib/auth/hashers.py:333388 ms88.6%
pbkdf2django/utils/crypto.py:93388 ms88.6%
1 smaller frames hidden
TestCreateConference.test_requires_loginconfs/tests.py:1058 response = self.client.get(reverse("create_conference"))47 ms10.8%
Client.getdjango/test/client.py:113347 ms10.8%
RequestFactory.getdjango/test/client.py:47547 ms10.8%
RequestFactory.genericdjango/test/client.py:67147 ms10.8%
Client.requestdjango/test/client.py:109147 ms10.8%
ClientHandler.__call__django/test/client.py:17347 ms10.8%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6347 ms10.8%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10447 ms10.8%
WhiteNoise.add_fileswhitenoise/base.py:10847 ms10.8%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12040 ms9.1%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13140 ms9.1%
WhiteNoise.get_static_filewhitenoise/base.py:21726 ms6.0%
StaticFile.__init__whitenoise/responders.py:727 ms1.7%
StaticFile.get_file_statswhitenoise/responders.py:1616 ms1.4%
__init____init__:-16 ms1.4%
FileEntry.__init__whitenoise/responders.py:2606 ms1.4%
<GC>~6 ms1.4%
StaticFile.__init__whitenoise/responders.py:737 ms1.7%
StaticFile.get_headerswhitenoise/responders.py:1763 ms0.7%
3 smaller frames hidden
StaticFile.__init__whitenoise/responders.py:776 ms1.4%
StaticFile.get_alternativeswhitenoise/responders.py:2003 ms0.7%
__init____init__:-13 ms0.7%
1 smaller frames hidden
2 smaller frames hidden
WhiteNoise.get_static_filewhitenoise/base.py:2129 ms2.2%
WhiteNoise.add_cache_headerswhitenoise/base.py:2339 ms2.2%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1769 ms2.2%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1979 ms2.2%
URLMixin.urldebug_toolbar/panels/staticfiles.py:208 ms1.9%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:2357 ms1.7%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:2166 ms1.4%
FileSystemStorage.urldjango/core/files/storage/filesystem.py:2075 ms1.2%
urljoin<stdlib>/urllib/parse.py:7434 ms1.0%
1 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
WhiteNoise.get_static_filewhitenoise/base.py:2114 ms1.0%
WhiteNoise.add_mime_headerswhitenoise/base.py:2304 ms1.0%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1156 ms1.4%
scantreewhitenoise/base.py:2715 ms1.2%
scantreewhitenoise/base.py:2714 ms1.0%
1 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
Estimated from 414 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
confs/tests.py:1044
self.user = User.objects.create_user("alice", password="pw")
TestCreateConference.setUp
· Password hashing
|
389 ms |
|
confs/tests.py:1058
response = self.client.get(reverse("create_conference"))
TestCreateConference.test_requires_login
· Libraries
|
47 ms |
Fixtures
Exact setup time| _django_set_urlconf function | 0.34 ms |
| _dj_autoclear_mailbox function | 0.05 ms |
| _template_string_if_invalid_marker function | 0.03 ms |
| _live_server_helper function | 0.03 ms |
| _django_db_marker function | 0.03 ms |
| _django_isolate_apps function | 0.02 ms |
| _django_clear_site_cache function | 0.02 ms |
| monkeypatch function | 0.02 ms |
Database
6 queries · 2 msNo repeated queries.
Biggest pieces of work
|
call setUp
confs/tests.py:1044
|
389 ms |
|
call test body
confs/tests.py:1058
|
47 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 | 438 ms | Profile |
| 2 weeks, 5 days ago | CI github-actions:test | passed | 625 ms | Profile |
| 2 weeks, 6 days ago | CI github-actions:test | passed | 598 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 291 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 549 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 626 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 480 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 534 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 538 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 408 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 1.10 s | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 1.03 s | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 1.17 s | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 495 ms | Run |