Tests / confs/tests.py
TestEditConference::test_requires_login
First seen 1 month, 1 week ago in 0c23747
CI
github-actions:test
13 runs
Average
1.14 s
median 917 ms
max 2.59 s
max 2.59 s
Phases
Setup 1 ms
Call 1.14 s
Teardown 0.29 ms
Categories
Password hashing 1.11 s
Database 8 ms
Factories 0.26 ms
Other (Libraries, pytest, Unsampled) 26 ms
9 database queries per run
Needs 63 KB of memory (max 672 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 2 weeks ago ·
open run
call728 ms99.9%
TestEditConference.setUpconfs/tests.py:1175 self.owner = User.objects.create_user("owner", password="pw")240 ms33.0%
UserManager.create_userdjango/contrib/auth/models.py:180240 ms33.0%
UserManager._create_userdjango/contrib/auth/models.py:167239 ms32.8%
UserManager._create_user_objectdjango/contrib/auth/models.py:160239 ms32.8%
make_passworddjango/contrib/auth/hashers.py:118239 ms32.8%
PBKDF2PasswordHasher.encodedjango/contrib/auth/hashers.py:333239 ms32.8%
pbkdf2django/utils/crypto.py:93239 ms32.8%
1 smaller frames hidden
TestEditConference.setUpconfs/tests.py:1176 self.other = User.objects.create_user("other", password="pw")240 ms33.0%
UserManager.create_userdjango/contrib/auth/models.py:180240 ms33.0%
UserManager._create_userdjango/contrib/auth/models.py:167239 ms32.8%
UserManager._create_user_objectdjango/contrib/auth/models.py:160239 ms32.8%
make_passworddjango/contrib/auth/hashers.py:118239 ms32.8%
PBKDF2PasswordHasher.encodedjango/contrib/auth/hashers.py:333239 ms32.8%
pbkdf2django/utils/crypto.py:93239 ms32.8%
1 smaller frames hidden
TestEditConference.setUpconfs/tests.py:1177 self.staff = User.objects.create_user("staff", password="pw", is_staff=True)239 ms32.8%
UserManager.create_userdjango/contrib/auth/models.py:180239 ms32.8%
UserManager._create_userdjango/contrib/auth/models.py:167238 ms32.7%
UserManager._create_user_objectdjango/contrib/auth/models.py:160238 ms32.7%
make_passworddjango/contrib/auth/hashers.py:118238 ms32.7%
PBKDF2PasswordHasher.encodedjango/contrib/auth/hashers.py:333238 ms32.7%
pbkdf2django/utils/crypto.py:93238 ms32.7%
1 smaller frames hidden
TestEditConference.test_requires_loginconfs/tests.py:1207 response = self.client.get(self.url)7 ms1.0%
Client.getdjango/test/client.py:11337 ms1.0%
RequestFactory.getdjango/test/client.py:4757 ms1.0%
RequestFactory.genericdjango/test/client.py:6717 ms1.0%
Client.requestdjango/test/client.py:10917 ms1.0%
ClientHandler.__call__django/test/client.py:1737 ms1.0%
BaseHandler.load_middlewaredjango/core/handlers/base.py:637 ms1.0%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:1047 ms1.0%
WhiteNoise.add_fileswhitenoise/base.py:1087 ms1.0%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1204 ms0.6%
1 smaller frames hidden
1 smaller frames hidden
Estimated from 706 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
confs/tests.py:1175
self.owner = User.objects.create_user("owner", password="pw")
TestEditConference.setUp
· Password hashing
|
240 ms |
|
confs/tests.py:1176
self.other = User.objects.create_user("other", password="pw")
TestEditConference.setUp
· Password hashing
|
240 ms |
|
confs/tests.py:1177
self.staff = User.objects.create_user("staff", password="pw", is_staff=True)
TestEditConference.setUp
· Password hashing
|
239 ms |
|
confs/tests.py:1207
response = self.client.get(self.url)
TestEditConference.test_requires_login
· Libraries
|
7 ms |
|
confs/tests.py:1178
self.conference = baker.make(
TestEditConference.setUp
· Factories
|
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
9 queries · 3 ms
Repeated queries are usually N+1 lookups: fetch them once with select_related / prefetch_related (or selectinload).
3×
INSERT INTO "auth_user" ("password", "last_login", "is_superuser", "username", "first_name", "last_name", "email", "is_staff", "is_active", "date_joined") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "auth_user"."id"
Biggest pieces of work
|
call setUp
confs/tests.py:1175
|
720 ms |
|
call test body
confs/tests.py:1207
|
7 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 | 728 ms | Profile |
| 2 weeks, 5 days ago | CI github-actions:test | passed | 954 ms | Profile |
| 2 weeks, 6 days ago | CI github-actions:test | passed | 909 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 609 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 921 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 903 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 1.33 s | Profile |
| 1 month ago | CI github-actions:test | passed | 912 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 1.19 s | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 739 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 2.12 s | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 917 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 2.59 s | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 1.12 s | Run |