flakytest.dev anze3db fedidevs
Tests / confs/tests.py

TestUnapproveConference::test_staff_unapproves

First seen 3 weeks ago in 0c23747
CI github-actions:test 11 runs
Average
652 ms
median 645 ms
max 959 ms
Phases
Setup 0.86 ms Call 649 ms Teardown 1 ms
Categories
Password hashing 614 ms Database 13 ms Factories 0.63 ms Other (Libraries, Unsampled, pytest) 24 ms

28 database queries per run

Needs 582 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
Show pytest frames
call625 ms99.7%
TestUnapproveConference.setUpconfs/tests.py:1295 self.staff = User.objects.create_user("staff", password="pw", is_staff=True)307 ms49.0%
UserManager.create_userdjango/contrib/auth/models.py:180307 ms49.0%
UserManager._create_userdjango/contrib/auth/models.py:167306 ms48.8%
UserManager._create_user_objectdjango/contrib/auth/models.py:160306 ms48.8%
make_passworddjango/contrib/auth/hashers.py:117306 ms48.8%
PBKDF2PasswordHasher.encodedjango/contrib/auth/hashers.py:333305 ms48.7%
pbkdf2django/utils/crypto.py:93305 ms48.7%
1 smaller frames hidden
1 smaller frames hidden
TestUnapproveConference.setUpconfs/tests.py:1296 self.normal = User.objects.create_user("bob", password="pw")286 ms45.6%
UserManager.create_userdjango/contrib/auth/models.py:180286 ms45.6%
UserManager._create_userdjango/contrib/auth/models.py:167285 ms45.4%
UserManager._create_user_objectdjango/contrib/auth/models.py:160285 ms45.4%
make_passworddjango/contrib/auth/hashers.py:118285 ms45.4%
PBKDF2PasswordHasher.encodedjango/contrib/auth/hashers.py:333285 ms45.4%
pbkdf2django/utils/crypto.py:93285 ms45.4%
1 smaller frames hidden
TestUnapproveConference.test_staff_unapprovesconfs/tests.py:1301 self.client.post(self.url)18 ms2.9%
Client.postdjango/test/client.py:116218 ms2.9%
RequestFactory.postdjango/test/client.py:49918 ms2.9%
RequestFactory.genericdjango/test/client.py:67118 ms2.9%
Client.requestdjango/test/client.py:109118 ms2.9%
ClientHandler.__call__django/test/client.py:17318 ms2.9%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6318 ms2.9%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10418 ms2.9%
WhiteNoise.add_fileswhitenoise/base.py:10818 ms2.9%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12015 ms2.4%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13114 ms2.3%
WhiteNoise.get_static_filewhitenoise/base.py:21710 ms1.6%
StaticFile.__init__whitenoise/responders.py:725 ms0.8%
3 smaller frames hidden
2 smaller frames hidden
1 smaller frames hidden
TestUnapproveConference.setUpconfs/tests.py:1294 self.conference = baker.make(Conference, approved_at=timezone.now(), tags="tag1")10 ms1.6%
makemodel_bakery/baker.py:17510 ms1.6%
Baker.makemodel_bakery/baker.py:4549 ms1.4%
Baker._makemodel_bakery/baker.py:5429 ms1.4%
Baker.instancemodel_bakery/baker.py:6599 ms1.4%
Model.savedjango/db/models/base.py:9049 ms1.4%
Model.save_basedjango/db/models/base.py:9969 ms1.4%
Model._save_tabledjango/db/models/base.py:11999 ms1.4%
Model._do_insertdjango/db/models/base.py:12519 ms1.4%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:879 ms1.4%
QuerySet._insertdjango/db/models/query.py:21419 ms1.4%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19369 ms1.4%
CursorWrapper.executedjango/db/backends/utils.py:799 ms1.4%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:929 ms1.4%
CursorWrapper._executedjango/db/backends/utils.py:1059 ms1.4%
Cursor.executepsycopg/cursor.py:1139 ms1.4%
Connection.waitpsycopg/connection.py:4959 ms1.4%
1 smaller frames hidden
TestUnapproveConference.test_staff_unapprovesconfs/tests.py:1300 self.client.force_login(self.staff)4 ms0.6%
ClientMixin.force_logindjango/test/client.py:8584 ms0.6%
Estimated from 619 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
307 ms
confs/tests.py:1296
self.normal = User.objects.create_user("bob", password="pw")
TestUnapproveConference.setUp · Password hashing
286 ms
confs/tests.py:1301
self.client.post(self.url)
TestUnapproveConference.test_staff_unapproves · Libraries
18 ms
confs/tests.py:1294
self.conference = baker.make(Conference, approved_at=timezone.now(), tags="tag1")
TestUnapproveConference.setUp · Database
10 ms
confs/tests.py:1300
self.client.force_login(self.staff)
TestUnapproveConference.test_staff_unapproves · Database
4 ms

Fixtures

Exact setup time
_template_string_if_invalid_marker function 0.08 ms
_dj_autoclear_mailbox function 0.04 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

28 queries · 9 ms
No repeated queries.

Biggest pieces of work

call setUp
confs/tests.py:1295
603 ms
call test body
confs/tests.py:1301
22 ms

Reliability

12 results · 0 CI failures · 0 local failures

This test hasn't failed recently.

History

Latest 12 results, oldest first in the strip
When Environment Outcome Duration Commit
7 hours ago CI github-actions:test passed 627 ms c28a326 main Profile
16 hours ago CI github-actions:test passed 432 ms 9b8826a main Profile
22 hours ago CI github-actions:test passed 641 ms 4f01055 main Profile
1 week, 5 days ago CI github-actions:test passed 647 ms 8ab642e main Profile
2 weeks, 2 days ago CI github-actions:test passed 757 ms 9b75244 main Profile
2 weeks, 2 days ago CI github-actions:test passed 637 ms 9603516 main Profile
2 weeks, 4 days ago CI github-actions:test passed 645 ms 615a272 main Profile
3 weeks ago CI github-actions:test passed 504 ms d923a46 main Profile
3 weeks ago CI github-actions:test passed 648 ms 82997f8 main Profile
3 weeks ago CI github-actions:test passed 671 ms 623aa3e main Profile
3 weeks ago CI github-actions:test passed 959 ms ab6465a main Profile
3 weeks ago CI github-actions:test passed 620 ms 0c23747 main Run