Tests / confs/tests.py
TestApproveConference::test_get_not_allowed
First seen 3 weeks ago in 0c23747
CI
github-actions:test
11 runs
Average
1.25 s
median 1.20 s
max 2.14 s
max 2.14 s
Phases
Setup 9 ms
Call 1.24 s
Teardown 0.33 ms
Categories
Password hashing 1.12 s
Database 40 ms
Factories 0.67 ms
Other (Libraries, pytest, Unsampled, Imports, ...) 95 ms
25 database queries per run
Needs 28 KB of memory (max 144 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 7 hours ago ·
open run
setup19 ms1.5%
TestCase.setUpClassdjango/test/testcases.py:1426 cls.cls_atomics = cls._enter_atomics()18 ms1.4%
TestCase._enter_atomicsdjango/test/testcases.py:139918 ms1.4%
Atomic.__enter__django/db/transaction.py:21018 ms1.4%
BaseDatabaseWrapper.get_autocommitdjango/db/backends/base/base.py:45418 ms1.4%
SimpleTestCase.ensure_connection_patch_method.<locals>.patched_ensure_connectiondjango/test/testcases.py:30418 ms1.4%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2618 ms1.4%
BaseDatabaseWrapper.ensure_connectiondjango/db/backends/base/base.py:27918 ms1.4%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2618 ms1.4%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:25618 ms1.4%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2618 ms1.4%
DatabaseWrapper.get_new_connectiondjango/db/backends/postgresql/base.py:34518 ms1.4%
Connection.connectpsycopg/connection.py:10918 ms1.4%
wait_connpsycopg/waiting.py:1419 ms0.7%
EpollSelector.select<stdlib>/selectors.py:4529 ms0.7%
wait_connpsycopg/waiting.py:1459 ms0.7%
BaseConnection._connect_genpsycopg/_connection_base.py:4399 ms0.7%
1 smaller frames hidden
call1.30 s98.5%
TestApproveConference.setUpconfs/tests.py:1372 self.normal = User.objects.create_user("bob", password="pw")579 ms44.0%
UserManager.create_userdjango/contrib/auth/models.py:180579 ms44.0%
UserManager._create_userdjango/contrib/auth/models.py:167578 ms43.9%
UserManager._create_user_objectdjango/contrib/auth/models.py:160578 ms43.9%
make_passworddjango/contrib/auth/hashers.py:118578 ms43.9%
PBKDF2PasswordHasher.encodedjango/contrib/auth/hashers.py:333578 ms43.9%
pbkdf2django/utils/crypto.py:93578 ms43.9%
1 smaller frames hidden
TestApproveConference.setUpconfs/tests.py:1371 self.staff = User.objects.create_user("staff", password="pw", is_staff=True)559 ms42.5%
UserManager.create_userdjango/contrib/auth/models.py:180559 ms42.5%
UserManager._create_userdjango/contrib/auth/models.py:167556 ms42.3%
UserManager._create_user_objectdjango/contrib/auth/models.py:160556 ms42.3%
make_passworddjango/contrib/auth/hashers.py:118556 ms42.3%
PBKDF2PasswordHasher.encodedjango/contrib/auth/hashers.py:333556 ms42.3%
pbkdf2django/utils/crypto.py:93556 ms42.3%
1 smaller frames hidden
TestApproveConference.test_get_not_allowedconfs/tests.py:1401 response = self.client.get(self.url)126 ms9.6%
Client.getdjango/test/client.py:1133126 ms9.6%
RequestFactory.getdjango/test/client.py:475126 ms9.6%
RequestFactory.genericdjango/test/client.py:671126 ms9.6%
Client.requestdjango/test/client.py:1091126 ms9.6%
ClientHandler.__call__django/test/client.py:173126 ms9.6%
BaseHandler.load_middlewaredjango/core/handlers/base.py:63126 ms9.6%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:104125 ms9.5%
WhiteNoise.add_fileswhitenoise/base.py:108125 ms9.5%
WhiteNoise.update_files_dictionarywhitenoise/base.py:120114 ms8.6%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:131111 ms8.5%
WhiteNoise.get_static_filewhitenoise/base.py:21797 ms7.4%
StaticFile.__init__whitenoise/responders.py:7343 ms3.3%
StaticFile.get_headerswhitenoise/responders.py:17613 ms1.0%
formatdate<stdlib>/email/utils.py:26611 ms0.9%
format_datetime<stdlib>/email/utils.py:2849 ms0.7%
_format_timetuple_and_zone<stdlib>/email/utils.py:2319 ms0.7%
1 smaller frames hidden
1 smaller frames hidden
StaticFile.get_headerswhitenoise/responders.py:16713 ms1.0%
__init____init__:-113 ms1.0%
Headers.__init__<stdlib>/wsgiref/headers.py:447 ms0.5%
1 smaller frames hidden
StaticFile.get_headerswhitenoise/responders.py:17812 ms0.9%
parsedate<stdlib>/email/_parseaddr.py:18510 ms0.8%
parsedate_tz<stdlib>/email/_parseaddr.py:5010 ms0.8%
1 smaller frames hidden
2 smaller frames hidden
StaticFile.__init__whitenoise/responders.py:7726 ms1.9%
StaticFile.get_alternativeswhitenoise/responders.py:20014 ms1.1%
__init____init__:-114 ms1.1%
Headers.__init__<stdlib>/wsgiref/headers.py:367 ms0.5%
<GC>~7 ms0.5%
Headers.__init__<stdlib>/wsgiref/headers.py:447 ms0.5%
2 smaller frames hidden
StaticFile.__init__whitenoise/responders.py:7615 ms1.2%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1899 ms0.7%
Headers.__getitem__<stdlib>/wsgiref/headers.py:839 ms0.7%
Headers.get<stdlib>/wsgiref/headers.py:1067 ms0.5%
2 smaller frames hidden
3 smaller frames hidden
WhiteNoise.get_static_filewhitenoise/base.py:21211 ms0.9%
WhiteNoise.add_cache_headerswhitenoise/base.py:23311 ms0.9%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1769 ms0.7%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1979 ms0.7%
1 smaller frames hidden
2 smaller frames hidden
1 smaller frames hidden
WhiteNoise.update_files_dictionarywhitenoise/base.py:11511 ms0.9%
1 smaller frames hidden
TestApproveConference.test_get_not_allowedconfs/tests.py:1400 self.client.force_login(self.staff)24 ms1.8%
ClientMixin.force_logindjango/test/client.py:85824 ms1.8%
ClientMixin._logindjango/test/client.py:88411 ms0.9%
ClientMixin.sessiondjango/test/client.py:81510 ms0.8%
SessionStore.savedjango/contrib/sessions/backends/db.py:12110 ms0.8%
1 smaller frames hidden
ClientMixin._logindjango/test/client.py:88910 ms0.8%
1 smaller frames hidden
2 smaller frames hidden
Estimated from 1,285 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
|
579 ms |
|
confs/tests.py:1371
self.staff = User.objects.create_user("staff", password="pw", is_staff=True)
TestApproveConference.setUp
· Password hashing
|
559 ms |
|
confs/tests.py:1401
response = self.client.get(self.url)
TestApproveConference.test_get_not_allowed
· Libraries
|
126 ms |
|
confs/tests.py:1400
self.client.force_login(self.staff)
TestApproveConference.test_get_not_allowed
· Database
|
24 ms |
|
confs/tests.py:1370
self.conference = baker.make(Conference, approved_at=None, tags="tag1")
TestApproveConference.setUp
· Database
|
6 ms |
Fixtures
Exact setup time| _unittest_setUpClass_fixture_TestApproveConference class | 18 ms |
| _django_setup_unittest class | 0.39 ms |
| _live_server_helper function | 0.07 ms |
| _django_db_marker function | 0.06 ms |
| _template_string_if_invalid_marker function | 0.06 ms |
| _dj_autoclear_mailbox function | 0.05 ms |
| _django_isolate_apps function | 0.04 ms |
| _django_set_urlconf function | 0.04 ms |
| _django_clear_site_cache function | 0.04 ms |
| monkeypatch function | 0.02 ms |
Database
25 queries · 37 msNo repeated queries.
Biggest pieces of work
|
call setUp
confs/tests.py:1372
|
1.14 s |
|
call test body
confs/tests.py:1401
|
149 ms |
|
setup setUpClass
django/test/testcases.py:1426
|
19 ms |
|
call _pre_setup
django/test/testcases.py:1167
|
3 ms |
Reliability
12 results · 0 CI failures · 0 local failuresThis test hasn't failed recently.
History
Latest 12 results, oldest first in the strip| When | Environment | Outcome | Duration | |
|---|---|---|---|---|
| 7 hours ago | CI github-actions:test | passed | 1.32 s | Profile |
| 16 hours ago | CI github-actions:test | passed | 681 ms | Profile |
| 22 hours ago | CI github-actions:test | passed | 1.22 s | Profile |
| 1 week, 5 days ago | CI github-actions:test | passed | 1.20 s | Profile |
| 2 weeks, 2 days ago | CI github-actions:test | passed | 953 ms | Profile |
| 2 weeks, 2 days ago | CI github-actions:test | passed | 1.14 s | Profile |
| 2 weeks, 4 days ago | CI github-actions:test | passed | 946 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 755 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 1.51 s | Profile |
| 3 weeks ago | CI github-actions:test | passed | 1.90 s | Profile |
| 3 weeks ago | CI github-actions:test | passed | 2.14 s | Profile |
| 3 weeks ago | CI github-actions:test | passed | 954 ms | Run |