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

TestApproveConference::test_anonymous_redirected_to_login

First seen 1 month, 1 week ago in 0c23747
CI github-actions:test 13 runs
Average
963 ms
median 657 ms
max 2.05 s
Phases
Setup 12 ms Call 951 ms Teardown 0.29 ms
Categories
Password hashing 897 ms Database 26 ms Factories 0.62 ms Test code 0.29 ms App code 0.08 ms Other (Libraries, pytest, Unsampled) 39 ms

9 database queries per run

Needs 301 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
Show pytest frames
setup7 ms1.3%
TestCase.setUpClassdjango/test/testcases.py:1426 cls.cls_atomics = cls._enter_atomics()6 ms1.1%
TestCase._enter_atomicsdjango/test/testcases.py:13996 ms1.1%
Atomic.__enter__django/db/transaction.py:2106 ms1.1%
BaseDatabaseWrapper.get_autocommitdjango/db/backends/base/base.py:4546 ms1.1%
SimpleTestCase.ensure_connection_patch_method.<locals>.patched_ensure_connectiondjango/test/testcases.py:3046 ms1.1%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:266 ms1.1%
BaseDatabaseWrapper.ensure_connectiondjango/db/backends/base/base.py:2796 ms1.1%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:266 ms1.1%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:2566 ms1.1%
DatabaseWrapper.get_new_connectionfedidevs/db/postgresql/base.py:39 return super().get_new_connection(conn_params)6 ms1.1%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:266 ms1.1%
DatabaseWrapper.get_new_connectiondjango/db/backends/postgresql/base.py:3456 ms1.1%
Connection.connectpsycopg/connection.py:1095 ms1.0%
wait_connpsycopg/waiting.py:1413 ms0.6%
EpollSelector.select<stdlib>/selectors.py:4523 ms0.6%
1 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
call508 ms98.6%
TestApproveConference.setUpconfs/tests.py:1372 self.normal = User.objects.create_user("bob", password="pw")251 ms48.7%
UserManager.create_userdjango/contrib/auth/models.py:180251 ms48.7%
UserManager._create_userdjango/contrib/auth/models.py:167251 ms48.7%
UserManager._create_user_objectdjango/contrib/auth/models.py:160251 ms48.7%
make_passworddjango/contrib/auth/hashers.py:118251 ms48.7%
PBKDF2PasswordHasher.encodedjango/contrib/auth/hashers.py:333251 ms48.7%
pbkdf2django/utils/crypto.py:93251 ms48.7%
TestApproveConference.setUpconfs/tests.py:1371 self.staff = User.objects.create_user("staff", password="pw", is_staff=True)249 ms48.3%
UserManager.create_userdjango/contrib/auth/models.py:180249 ms48.3%
UserManager._create_userdjango/contrib/auth/models.py:167247 ms48.1%
UserManager._create_user_objectdjango/contrib/auth/models.py:160247 ms48.1%
make_passworddjango/contrib/auth/hashers.py:118247 ms48.1%
PBKDF2PasswordHasher.encodedjango/contrib/auth/hashers.py:333247 ms48.1%
pbkdf2django/utils/crypto.py:93247 ms48.1%
1 smaller frames hidden
TestApproveConference.test_anonymous_redirected_to_loginconfs/tests.py:1383 response = self.client.post(self.url)6 ms1.2%
Client.postdjango/test/client.py:11626 ms1.2%
RequestFactory.postdjango/test/client.py:4996 ms1.2%
RequestFactory.genericdjango/test/client.py:6716 ms1.2%
Client.requestdjango/test/client.py:10916 ms1.2%
ClientHandler.__call__django/test/client.py:1736 ms1.2%
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%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1153 ms0.6%
scantreewhitenoise/base.py:2713 ms0.6%
1 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
Estimated from 489 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

confs/tests.py:1372
self.normal = User.objects.create_user("bob", password="pw")
TestApproveConference.setUp · Password hashing
251 ms
confs/tests.py:1371
self.staff = User.objects.create_user("staff", password="pw", is_staff=True)
TestApproveConference.setUp · Password hashing
249 ms
confs/tests.py:1383
response = self.client.post(self.url)
TestApproveConference.test_anonymous_redirected_to_login · Libraries
6 ms
fedidevs/db/postgresql/base.py:39
return super().get_new_connection(conn_params)
DatabaseWrapper.get_new_connection · Database
6 ms
confs/tests.py:1370
self.conference = baker.make(Conference, approved_at=None, tags="tag1")
TestApproveConference.setUp · Database
2 ms

Fixtures

Exact setup time
_unittest_setUpClass_fixture_TestApproveConference class 6 ms
_django_setup_unittest class 0.20 ms
_django_db_marker function 0.03 ms
_dj_autoclear_mailbox function 0.03 ms
_template_string_if_invalid_marker function 0.03 ms
_live_server_helper 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

9 queries · 6 ms
No repeated queries.

Biggest pieces of work

call setUp
confs/tests.py:1372
501 ms
call test body
confs/tests.py:1383
6 ms
setup setUpClass
django/test/testcases.py:1426
6 ms
setup __init__
__init__:-1
0.98 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 515 ms 28600ed main Profile
2 weeks, 5 days ago CI github-actions:test passed 657 ms 600b717 main Profile
2 weeks, 6 days ago CI github-actions:test passed 626 ms c28a326 main Profile
3 weeks ago CI github-actions:test passed 430 ms 9b8826a main Profile
3 weeks ago CI github-actions:test passed 642 ms 4f01055 main Profile
1 month ago CI github-actions:test passed 644 ms 8ab642e main Profile
1 month ago CI github-actions:test passed 537 ms 9b75244 main Profile
1 month ago CI github-actions:test passed 1.05 s 9603516 main Profile
1 month, 1 week ago CI github-actions:test passed 935 ms 615a272 main Profile
1 month, 1 week ago CI github-actions:test passed 775 ms d923a46 main Profile
1 month, 1 week ago CI github-actions:test passed 1.95 s 82997f8 main Profile
1 month, 1 week ago CI github-actions:test passed 2.05 s 623aa3e main Profile
1 month, 1 week ago CI github-actions:test passed 1.72 s ab6465a main Profile
1 month, 1 week ago CI github-actions:test passed 950 ms 0c23747 main Run