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

TestApproveConference::test_get_not_allowed

First seen 1 month, 1 week ago in 0c23747
CI github-actions:test 13 runs
Average
1.22 s
median 1.14 s
max 2.14 s
Phases
Setup 10 ms Call 1.21 s Teardown 0.32 ms
Categories
Password hashing 1.09 s Database 40 ms Factories 0.74 ms Other (Libraries, pytest, Unsampled, Imports, ...) 82 ms

25 database queries per run

Needs 34 KB of memory (max 144 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 2 weeks ago · open run
Show pytest frames
setup14 ms1.5%
TestCase.setUpClassdjango/test/testcases.py:1426 cls.cls_atomics = cls._enter_atomics()13 ms1.4%
TestCase._enter_atomicsdjango/test/testcases.py:139913 ms1.4%
Atomic.__enter__django/db/transaction.py:21013 ms1.4%
BaseDatabaseWrapper.get_autocommitdjango/db/backends/base/base.py:45413 ms1.4%
SimpleTestCase.ensure_connection_patch_method.<locals>.patched_ensure_connectiondjango/test/testcases.py:30413 ms1.4%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2613 ms1.4%
BaseDatabaseWrapper.ensure_connectiondjango/db/backends/base/base.py:27913 ms1.4%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2613 ms1.4%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:25613 ms1.4%
DatabaseWrapper.get_new_connectionfedidevs/db/postgresql/base.py:39 return super().get_new_connection(conn_params)13 ms1.4%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2613 ms1.4%
DatabaseWrapper.get_new_connectiondjango/db/backends/postgresql/base.py:34513 ms1.4%
Connection.connectpsycopg/connection.py:10913 ms1.4%
wait_connpsycopg/waiting.py:1419 ms0.9%
EpollSelector.select<stdlib>/selectors.py:4529 ms0.9%
1 smaller frames hidden
call930 ms98.5%
TestApproveConference.setUpconfs/tests.py:1371 self.staff = User.objects.create_user("staff", password="pw", is_staff=True)484 ms51.2%
UserManager.create_userdjango/contrib/auth/models.py:180484 ms51.2%
UserManager._create_userdjango/contrib/auth/models.py:167480 ms50.9%
UserManager._create_user_objectdjango/contrib/auth/models.py:160480 ms50.9%
make_passworddjango/contrib/auth/hashers.py:118480 ms50.9%
PBKDF2PasswordHasher.encodedjango/contrib/auth/hashers.py:333480 ms50.9%
pbkdf2django/utils/crypto.py:93480 ms50.9%
1 smaller frames hidden
TestApproveConference.setUpconfs/tests.py:1372 self.normal = User.objects.create_user("bob", password="pw")420 ms44.5%
UserManager.create_userdjango/contrib/auth/models.py:180420 ms44.5%
UserManager._create_userdjango/contrib/auth/models.py:167418 ms44.3%
UserManager._create_user_objectdjango/contrib/auth/models.py:160418 ms44.3%
make_passworddjango/contrib/auth/hashers.py:118418 ms44.3%
PBKDF2PasswordHasher.encodedjango/contrib/auth/hashers.py:333418 ms44.3%
pbkdf2django/utils/crypto.py:93418 ms44.3%
1 smaller frames hidden
TestApproveConference.test_get_not_allowedconfs/tests.py:1400 self.client.force_login(self.staff)15 ms1.6%
ClientMixin.force_logindjango/test/client.py:85815 ms1.6%
ClientMixin._logindjango/test/client.py:8848 ms0.9%
ClientMixin.sessiondjango/test/client.py:8158 ms0.9%
SessionStore.savedjango/contrib/sessions/backends/db.py:1218 ms0.9%
SessionStore.createdjango/contrib/sessions/backends/db.py:705 ms0.6%
SessionBase._get_new_session_keydjango/contrib/sessions/backends/base.py:2015 ms0.6%
SessionStore.existsdjango/contrib/sessions/backends/db.py:635 ms0.6%
QuerySet.existsdjango/db/models/query.py:14585 ms0.6%
1 smaller frames hidden
ClientMixin._logindjango/test/client.py:8895 ms0.6%
1 smaller frames hidden
TestApproveConference.test_get_not_allowedconfs/tests.py:1401 response = self.client.get(self.url)6 ms0.7%
Client.getdjango/test/client.py:11336 ms0.7%
RequestFactory.getdjango/test/client.py:4756 ms0.7%
RequestFactory.genericdjango/test/client.py:6716 ms0.7%
Client.requestdjango/test/client.py:10916 ms0.7%
ClientHandler.__call__django/test/client.py:1736 ms0.7%
BaseHandler.load_middlewaredjango/core/handlers/base.py:636 ms0.7%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:1046 ms0.7%
WhiteNoise.add_fileswhitenoise/base.py:1086 ms0.7%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1155 ms0.6%
1 smaller frames hidden
2 smaller frames hidden
Estimated from 894 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
484 ms
confs/tests.py:1372
self.normal = User.objects.create_user("bob", password="pw")
TestApproveConference.setUp · Password hashing
420 ms
confs/tests.py:1400
self.client.force_login(self.staff)
TestApproveConference.test_get_not_allowed · Database
15 ms
fedidevs/db/postgresql/base.py:39
return super().get_new_connection(conn_params)
DatabaseWrapper.get_new_connection · Database
13 ms
confs/tests.py:1401
response = self.client.get(self.url)
TestApproveConference.test_get_not_allowed · Libraries
6 ms
confs/tests.py:1370
self.conference = baker.make(Conference, approved_at=None, tags="tag1")
TestApproveConference.setUp · Database
4 ms

Fixtures

Exact setup time
_unittest_setUpClass_fixture_TestApproveConference class 12 ms
_django_setup_unittest class 0.27 ms
_template_string_if_invalid_marker function 0.04 ms
_dj_autoclear_mailbox function 0.04 ms
_django_db_marker function 0.04 ms
_django_set_urlconf function 0.04 ms
_django_isolate_apps function 0.03 ms
_live_server_helper function 0.03 ms
_django_clear_site_cache function 0.02 ms
monkeypatch function 0.02 ms

Database

25 queries · 20 ms
No repeated queries.

Biggest pieces of work

call setUp
confs/tests.py:1371
908 ms
call test body
confs/tests.py:1400
21 ms
setup setUpClass
django/test/testcases.py:1426
13 ms
setup pytest internals 1 ms
call _pre_setup
django/test/testcases.py:1154
1 ms

Reliability

14 results · 0 CI failures · 0 local failures

This test hasn't failed recently.

History

Latest 14 results, oldest first in the strip
When Environment Outcome Duration Commit
2 weeks ago CI github-actions:test passed 944 ms 28600ed main Profile
2 weeks, 5 days ago CI github-actions:test passed 1.11 s 600b717 main Profile
2 weeks, 6 days ago CI github-actions:test passed 1.32 s c28a326 main Profile
3 weeks ago CI github-actions:test passed 681 ms 9b8826a main Profile
3 weeks ago CI github-actions:test passed 1.22 s 4f01055 main Profile
1 month ago CI github-actions:test passed 1.20 s 8ab642e main Profile
1 month ago CI github-actions:test passed 953 ms 9b75244 main Profile
1 month ago CI github-actions:test passed 1.14 s 9603516 main Profile
1 month, 1 week ago CI github-actions:test passed 946 ms 615a272 main Profile
1 month, 1 week ago CI github-actions:test passed 755 ms d923a46 main Profile
1 month, 1 week ago CI github-actions:test passed 1.51 s 82997f8 main Profile
1 month, 1 week ago CI github-actions:test passed 1.90 s 623aa3e main Profile
1 month, 1 week ago CI github-actions:test passed 2.14 s ab6465a main Profile
1 month, 1 week ago CI github-actions:test passed 954 ms 0c23747 main Run