Tests / posts/tests.py
TestSubscribePages::test_subscribe_success_uses_tailwind_layout
First seen 3 weeks ago in 0c23747
CI
github-actions:test
11 runs
Average
132 ms
median 106 ms
max 263 ms
max 263 ms
Phases
Setup 17 ms
Call 115 ms
Teardown 0.30 ms
Categories
Database 25 ms
App code 0.23 ms
Other (Libraries, Templates, Unsampled, pytest, ...) 107 ms
6 database queries per run
Needs 625 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
setup20 ms18.3%
TestCase.setUpClassdjango/test/testcases.py:1426 cls.cls_atomics = cls._enter_atomics()20 ms18.3%
TestCase._enter_atomicsdjango/test/testcases.py:139920 ms18.3%
Atomic.__enter__django/db/transaction.py:21020 ms18.3%
BaseDatabaseWrapper.get_autocommitdjango/db/backends/base/base.py:45420 ms18.3%
SimpleTestCase.ensure_connection_patch_method.<locals>.patched_ensure_connectiondjango/test/testcases.py:30420 ms18.3%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2620 ms18.3%
BaseDatabaseWrapper.ensure_connectiondjango/db/backends/base/base.py:27920 ms18.3%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2620 ms18.3%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:25620 ms18.3%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2620 ms18.3%
DatabaseWrapper.get_new_connectiondjango/db/backends/postgresql/base.py:34520 ms18.3%
Connection.connectpsycopg/connection.py:10920 ms18.3%
wait_connpsycopg/waiting.py:14519 ms17.8%
BaseConnection._connect_genpsycopg/_connection_base.py:43919 ms17.8%
wait_connpsycopg/waiting.py:1410.57 ms0.5%
call87 ms81.3%
TestSubscribePages.test_subscribe_success_uses_tailwind_layoutposts/tests.py:16 response = self.client.get(reverse("posts_subscribe_success"))73 ms67.8%
Client.getdjango/test/client.py:113373 ms67.8%
RequestFactory.getdjango/test/client.py:47573 ms67.8%
RequestFactory.genericdjango/test/client.py:67173 ms67.8%
Client.requestdjango/test/client.py:109173 ms67.8%
ClientHandler.__call__django/test/client.py:17373 ms67.8%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6373 ms67.8%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10473 ms67.8%
WhiteNoise.add_fileswhitenoise/base.py:10873 ms67.8%
WhiteNoise.update_files_dictionarywhitenoise/base.py:11548 ms45.2%
scantreewhitenoise/base.py:27148 ms45.2%
scantreewhitenoise/base.py:27148 ms45.2%
scantreewhitenoise/base.py:27124 ms22.6%
scantreewhitenoise/base.py:27124 ms22.6%
scantreewhitenoise/base.py:27124 ms22.6%
scantreewhitenoise/base.py:27324 ms22.6%
scantreewhitenoise/base.py:27324 ms22.6%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12024 ms22.6%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13124 ms22.6%
WhiteNoise.get_static_filewhitenoise/base.py:21724 ms22.6%
StaticFile.__init__whitenoise/responders.py:7410 ms9.0%
parsedate<stdlib>/email/_parseaddr.py:18510 ms9.0%
StaticFile.__init__whitenoise/responders.py:7610 ms9.0%
StaticFile.get_not_modified_responsewhitenoise/responders.py:18810 ms9.0%
Headers.__contains__<stdlib>/wsgiref/headers.py:875 ms4.5%
Headers.get<stdlib>/wsgiref/headers.py:1045 ms4.5%
StaticFile.__init__whitenoise/responders.py:725 ms4.5%
TransactionTestCase._pre_setupdjango/test/testcases.py:1167 cls._fixture_setup()15 ms13.6%
TestCase._fixture_setupdjango/test/testcases.py:148115 ms13.6%
TestCase._enter_atomicsdjango/test/testcases.py:139915 ms13.6%
Atomic.__enter__django/db/transaction.py:22315 ms13.6%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2615 ms13.6%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:40015 ms13.6%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:36715 ms13.6%
CursorWrapper.executedjango/db/backends/utils.py:7915 ms13.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9215 ms13.6%
CursorWrapper._executedjango/db/backends/utils.py:10315 ms13.6%
Cursor.executepsycopg/cursor.py:11315 ms13.6%
Connection.waitpsycopg/connection.py:49515 ms13.6%
Estimated from 157 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
posts/tests.py:16
response = self.client.get(reverse("posts_subscribe_success"))
TestSubscribePages.test_subscribe_success_uses_tailwind_layout
· Libraries
|
73 ms |
Fixtures
Exact setup time| _unittest_setUpClass_fixture_TestSubscribePages class | 17 ms |
| _django_setup_unittest class | 1 ms |
| _template_string_if_invalid_marker function | 0.09 ms |
| _django_db_marker function | 0.06 ms |
| _django_isolate_apps function | 0.05 ms |
| _live_server_helper function | 0.05 ms |
| _dj_autoclear_mailbox function | 0.05 ms |
| _django_set_urlconf function | 0.05 ms |
| _django_clear_site_cache function | 0.03 ms |
| monkeypatch function | 0.03 ms |
Database
6 queries · 7 msNo repeated queries.
Biggest pieces of work
|
call test body
posts/tests.py:16
|
73 ms |
|
setup setUpClass
django/test/testcases.py:1426
|
20 ms |
|
call _pre_setup
django/test/testcases.py:1167
|
15 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 | 107 ms | Profile |
| 16 hours ago | CI github-actions:test | passed | 53 ms | Profile |
| 22 hours ago | CI github-actions:test | passed | 92 ms | Profile |
| 1 week, 5 days ago | CI github-actions:test | passed | 106 ms | Profile |
| 2 weeks, 2 days ago | CI github-actions:test | passed | 86 ms | Profile |
| 2 weeks, 2 days ago | CI github-actions:test | passed | 118 ms | Profile |
| 2 weeks, 4 days ago | CI github-actions:test | passed | 89 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 65 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 263 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 211 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 259 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 80 ms | Run |