Tests / posts/tests.py
TestDjangoConUSLegacyRedirect::test_djangoconus_redirects_to_conference_page
First seen 13 hours ago in 0c23747
CI
github-actions:test
4 runs
Average
135 ms
median 154 ms
max 180 ms
max 180 ms
Phases
Setup 2 ms
Call 130 ms
Teardown 4 ms
Categories
Database 7 ms
Other (Libraries, Unsampled, pytest) 128 ms
5 database queries per run
Needs 430 KB of memory (max 1 MB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 8 hours ago ·
open run
call50 ms94.8%
TestDjangoConUSLegacyRedirect.test_djangoconus_redirects_to_conference_pageposts/tests.py:25 response = self.client.get(reverse("djangoconus"))43 ms81.9%
Client.getdjango/test/client.py:113343 ms81.9%
RequestFactory.getdjango/test/client.py:47543 ms81.9%
RequestFactory.genericdjango/test/client.py:67143 ms81.9%
Client.requestdjango/test/client.py:109143 ms81.9%
ClientHandler.__call__django/test/client.py:17343 ms81.9%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6341 ms77.6%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10441 ms77.6%
WhiteNoise.add_fileswhitenoise/base.py:10841 ms77.6%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12027 ms51.7%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13127 ms51.7%
WhiteNoise.get_static_filewhitenoise/base.py:21716 ms30.2%
StaticFile.__init__whitenoise/responders.py:775 ms8.6%
StaticFile.get_alternativeswhitenoise/responders.py:1982 ms4.3%
<GC>~2 ms4.3%
StaticFile.get_alternativeswhitenoise/responders.py:2032 ms4.3%
StaticFile.__init__whitenoise/responders.py:765 ms8.6%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1902 ms4.3%
Response.__init__whitenoise/responders.py:182 ms4.3%
<GC>~2 ms4.3%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1882 ms4.3%
Headers.__contains__<stdlib>/wsgiref/headers.py:872 ms4.3%
Headers.get<stdlib>/wsgiref/headers.py:1042 ms4.3%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:502 ms4.3%
StaticFile.__init__whitenoise/responders.py:732 ms4.3%
StaticFile.get_headerswhitenoise/responders.py:1762 ms4.3%
formatdate<stdlib>/email/utils.py:2662 ms4.3%
WhiteNoise.get_static_filewhitenoise/base.py:2129 ms17.2%
WhiteNoise.add_cache_headerswhitenoise/base.py:2337 ms12.9%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1767 ms12.9%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1977 ms12.9%
new_method_proxy.<locals>.innerdjango/utils/functional.py:2492 ms4.3%
URLMixin.urldebug_toolbar/panels/staticfiles.py:202 ms4.3%
WhiteNoise.get_static_filewhitenoise/base.py:2152 ms4.3%
WhiteNoise.update_files_dictionarywhitenoise/base.py:11511 ms21.5%
scantreewhitenoise/base.py:27111 ms21.5%
scantreewhitenoise/base.py:2719 ms17.2%
scantreewhitenoise/base.py:2715 ms8.6%
scantreewhitenoise/base.py:2715 ms8.6%
scantreewhitenoise/base.py:2715 ms8.6%
scantreewhitenoise/base.py:2735 ms8.6%
scantreewhitenoise/base.py:2702 ms4.3%
scantreewhitenoise/base.py:2692 ms4.3%
scantreewhitenoise/base.py:2732 ms4.3%
BaseHandler.load_middlewaredjango/core/handlers/base.py:972 ms4.3%
convert_exception_to_responsedjango/core/handlers/exception.py:532 ms4.3%
update_wrapper<stdlib>/functools.py:522 ms4.3%
TransactionTestCase._pre_setupdjango/test/testcases.py:1167 cls._fixture_setup()2 ms4.3%
TestCase._fixture_setupdjango/test/testcases.py:14812 ms4.3%
TestCase._enter_atomicsdjango/test/testcases.py:13992 ms4.3%
Atomic.__enter__django/db/transaction.py:2232 ms4.3%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms4.3%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4002 ms4.3%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3672 ms4.3%
CursorWrapper.executedjango/db/backends/utils.py:792 ms4.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms4.3%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms4.3%
Cursor.executepsycopg/cursor.py:1132 ms4.3%
Connection.waitpsycopg/connection.py:4952 ms4.3%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms4.3%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms4.3%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms4.3%
TransactionTestCase._post_teardowndjango/test/testcases.py:1243 self._fixture_teardown()2 ms4.3%
TestCase._fixture_teardowndjango/test/testcases.py:14972 ms4.3%
TestCase._should_check_constraintsdjango/test/testcases.py:15062 ms4.3%
DatabaseWrapper.is_usabledjango/db/backends/postgresql/base.py:5042 ms4.3%
Cursor.executepsycopg/cursor.py:1132 ms4.3%
Connection.waitpsycopg/connection.py:4952 ms4.3%
BaseCursor._execute_genpsycopg/_cursor_base.py:2062 ms4.3%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2862 ms4.3%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:782 ms4.3%
teardown2 ms3.5%
TestCase.tearDownClassdjango/test/testcases.py:1458 conn.close()2 ms3.5%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms3.5%
BaseDatabaseWrapper.closedjango/db/backends/base/base.py:3552 ms3.5%
DatabaseWrapper._closedjango/db/backends/postgresql/base.py:4082 ms3.5%
Connection.closepsycopg/connection.py:2012 ms3.5%
Estimated from 24 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
posts/tests.py:25
response = self.client.get(reverse("djangoconus"))
TestDjangoConUSLegacyRedirect.test_djangoconus_redirects_to_conference_page
· Libraries
|
43 ms |
Fixtures
Exact setup time| _template_string_if_invalid_marker function | 0.13 ms |
| _dj_autoclear_mailbox function | 0.05 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.03 ms |
| monkeypatch function | 0.02 ms |
Database
5 queries · 0.70 msNo repeated queries.
Biggest pieces of work
|
call test body
posts/tests.py:25
|
43 ms |
|
call _pre_setup
django/test/testcases.py:1167
|
2 ms |
|
call _post_teardown
django/test/testcases.py:1243
|
2 ms |
| call pytest internals | 2 ms |
|
teardown tearDownClass
django/test/testcases.py:1458
|
2 ms |
Reliability
5 results · 0 CI failures · 0 local failuresThis test hasn't failed recently.
History
Latest 5 results, oldest first in the strip| When | Environment | Outcome | Duration | |
|---|---|---|---|---|
| 8 hours ago | CI github-actions:test | passed | 53 ms | Profile |
| 8 hours ago | CI github-actions:test | passed | 165 ms | Profile |
| 8 hours ago | CI github-actions:test | passed | 180 ms | Profile |
| 13 hours ago | CI github-actions:test | passed | 144 ms | Profile |
| 13 hours ago | CI github-actions:test | passed | 76 ms | Run |