Tests / confs/tests.py
TestUnapproveConference::test_staff_unapproves
First seen 1 month, 1 week ago in 0c23747
CI
github-actions:test
13 runs
Average
640 ms
median 645 ms
max 959 ms
max 959 ms
Phases
Setup 0.83 ms
Call 638 ms
Teardown 1 ms
Categories
Password hashing 605 ms
Database 12 ms
Factories 0.53 ms
Other (Libraries, Unsampled, pytest) 22 ms
28 database queries per run
Needs 606 KB of memory (max 1 MB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 2 weeks ago ·
open run
setup0.58 ms0.1%
call504 ms99.7%
TestUnapproveConference.setUpconfs/tests.py:1296 self.normal = User.objects.create_user("bob", password="pw")246 ms48.7%
UserManager.create_userdjango/contrib/auth/models.py:180246 ms48.7%
UserManager._create_userdjango/contrib/auth/models.py:167245 ms48.5%
UserManager._create_user_objectdjango/contrib/auth/models.py:160245 ms48.5%
make_passworddjango/contrib/auth/hashers.py:118245 ms48.5%
PBKDF2PasswordHasher.encodedjango/contrib/auth/hashers.py:333245 ms48.5%
pbkdf2django/utils/crypto.py:93245 ms48.5%
1 smaller frames hidden
TestUnapproveConference.setUpconfs/tests.py:1295 self.staff = User.objects.create_user("staff", password="pw", is_staff=True)244 ms48.3%
UserManager.create_userdjango/contrib/auth/models.py:180244 ms48.3%
UserManager._create_userdjango/contrib/auth/models.py:167244 ms48.3%
UserManager._create_user_objectdjango/contrib/auth/models.py:160244 ms48.3%
make_passworddjango/contrib/auth/hashers.py:118244 ms48.3%
PBKDF2PasswordHasher.encodedjango/contrib/auth/hashers.py:333244 ms48.3%
pbkdf2django/utils/crypto.py:93244 ms48.3%
TestUnapproveConference.test_staff_unapprovesconfs/tests.py:1301 self.client.post(self.url)8 ms1.7%
Client.postdjango/test/client.py:11628 ms1.7%
RequestFactory.postdjango/test/client.py:4998 ms1.7%
RequestFactory.genericdjango/test/client.py:6718 ms1.7%
Client.requestdjango/test/client.py:10918 ms1.7%
ClientHandler.__call__django/test/client.py:1735 ms1.0%
BaseHandler.load_middlewaredjango/core/handlers/base.py:635 ms1.0%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:1045 ms1.0%
WhiteNoise.add_fileswhitenoise/base.py:1085 ms1.0%
ClientHandler.__call__django/test/client.py:1863 ms0.6%
BaseHandler.get_responsedjango/core/handlers/base.py:1423 ms0.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:563 ms0.6%
MiddlewareMixin.__call__django/utils/deprecation.py:3803 ms0.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:563 ms0.6%
MiddlewareMixin.__call__django/utils/deprecation.py:3803 ms0.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:563 ms0.6%
MiddlewareMixin.__call__django/utils/deprecation.py:3803 ms0.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:563 ms0.6%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:1233 ms0.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:563 ms0.6%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1453 ms0.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:563 ms0.6%
MiddlewareMixin.__call__django/utils/deprecation.py:3803 ms0.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:563 ms0.6%
MiddlewareMixin.__call__django/utils/deprecation.py:3803 ms0.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:563 ms0.6%
MiddlewareMixin.__call__django/utils/deprecation.py:3803 ms0.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:563 ms0.6%
MiddlewareMixin.__call__django/utils/deprecation.py:3803 ms0.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:563 ms0.6%
MiddlewareMixin.__call__django/utils/deprecation.py:3803 ms0.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:563 ms0.6%
MiddlewareMixin.__call__django/utils/deprecation.py:3803 ms0.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:563 ms0.6%
MiddlewareMixin.__call__django/utils/deprecation.py:3803 ms0.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:563 ms0.6%
BaseHandler._get_responsedjango/core/handlers/base.py:1993 ms0.6%
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%
2 smaller frames hidden
Estimated from 480 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
confs/tests.py:1296
self.normal = User.objects.create_user("bob", password="pw")
TestUnapproveConference.setUp
· Password hashing
|
246 ms |
|
confs/tests.py:1295
self.staff = User.objects.create_user("staff", password="pw", is_staff=True)
TestUnapproveConference.setUp
· Password hashing
|
244 ms |
|
confs/tests.py:1301
self.client.post(self.url)
TestUnapproveConference.test_staff_unapproves
· Libraries
|
6 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
· Database
|
1 ms |
|
confs/views.py:584
conference = get_object_or_404(Conference, slug=conference_slug)
unapprove_conference
· Database
|
1 ms |
|
confs/views.py:588
return redirect("conference", conference_slug=conference.slug)
unapprove_conference
· Libraries
|
1 ms |
|
confs/tests.py:1302
self.conference.refresh_from_db()
TestUnapproveConference.test_staff_unapproves
· Database
|
1 ms |
Fixtures
Exact setup time| _dj_autoclear_mailbox function | 0.04 ms |
| _live_server_helper function | 0.03 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 |
| _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:1296
|
491 ms |
|
call test body
confs/tests.py:1300
|
13 ms |
| setup pytest internals | 0.39 ms |
|
setup __init__
__init__:-1
|
0.19 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 | 505 ms | Profile |
| 2 weeks, 5 days ago | CI github-actions:test | passed | 649 ms | Profile |
| 2 weeks, 6 days ago | CI github-actions:test | passed | 627 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 432 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 641 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 647 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 757 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 637 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 645 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 504 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 648 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 671 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 959 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 620 ms | Run |