Tests / starter_packs/tests.py
TestStarterPacks::test_index_page_unknown_language_ignored
First seen 1 month, 1 week ago in 0c23747
CI
github-actions:test
13 runs
Average
145 ms
median 120 ms
max 302 ms
max 302 ms
Phases
Setup 5 ms
Call 140 ms
Teardown 0.48 ms
Categories
Database 34 ms
Factories 1 ms
App code 0.12 ms
Other (Libraries, Templates, pytest, Unsampled, ...) 110 ms
16 database queries per run
Needs 112 KB of memory (max 612 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 2 weeks ago ·
open run
setup0.72 ms0.8%
call89 ms98.9%
TestStarterPacks.test_index_page_unknown_language_ignoredstarter_packs/tests.py:79 response = self.client.get(reverse("starter_packs"), {"language": "not-a-language"})53 ms59.4%
Client.getdjango/test/client.py:113353 ms59.4%
RequestFactory.getdjango/test/client.py:47549 ms54.4%
RequestFactory.genericdjango/test/client.py:67149 ms54.4%
Client.requestdjango/test/client.py:109149 ms54.4%
ClientHandler.__call__django/test/client.py:17349 ms54.4%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6349 ms54.4%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10449 ms54.4%
WhiteNoise.add_fileswhitenoise/base.py:10849 ms54.4%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12031 ms34.6%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13131 ms34.6%
WhiteNoise.get_static_filewhitenoise/base.py:21718 ms19.8%
StaticFile.__init__whitenoise/responders.py:739 ms9.9%
StaticFile.get_headerswhitenoise/responders.py:1784 ms4.9%
parsedate<stdlib>/email/_parseaddr.py:1854 ms4.9%
StaticFile.get_headerswhitenoise/responders.py:1764 ms4.9%
StaticFile.__init__whitenoise/responders.py:754 ms4.9%
Headers.__getitem__<stdlib>/wsgiref/headers.py:834 ms4.9%
WhiteNoise.get_static_filewhitenoise/base.py:2129 ms9.9%
WhiteNoise.add_cache_headerswhitenoise/base.py:2339 ms9.9%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1769 ms9.9%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1979 ms9.9%
URLMixin.urldebug_toolbar/panels/staticfiles.py:209 ms9.9%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:2354 ms4.9%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:2164 ms4.9%
FileSystemStorage.urldjango/core/files/storage/filesystem.py:2014 ms4.9%
WhiteNoise.get_static_filewhitenoise/base.py:2114 ms4.9%
WhiteNoise.add_mime_headerswhitenoise/base.py:2254 ms4.9%
WhiteNoise.update_files_dictionarywhitenoise/base.py:11518 ms19.8%
scantreewhitenoise/base.py:27118 ms19.8%
scantreewhitenoise/base.py:27118 ms19.8%
scantreewhitenoise/base.py:2699 ms9.9%
scantreewhitenoise/base.py:2719 ms9.9%
scantreewhitenoise/base.py:2719 ms9.9%
scantreewhitenoise/base.py:2694 ms4.9%
scantreewhitenoise/base.py:2714 ms4.9%
scantreewhitenoise/base.py:2734 ms4.9%
TransactionTestCase._post_teardowndjango/test/testcases.py:1243 self._fixture_teardown()31 ms34.6%
TestCase._fixture_teardowndjango/test/testcases.py:150018 ms19.8%
TestCase._rollback_atomicsdjango/test/testcases.py:140818 ms19.8%
Atomic.__exit__django/db/transaction.py:2959 ms9.9%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:269 ms9.9%
BaseDatabaseWrapper.savepoint_rollbackdjango/db/backends/base/base.py:4139 ms9.9%
BaseDatabaseWrapper._savepoint_rollbackdjango/db/backends/base/base.py:3719 ms9.9%
CursorWrapper.executedjango/db/backends/utils.py:799 ms9.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:929 ms9.9%
CursorWrapper._executedjango/db/backends/utils.py:1039 ms9.9%
Cursor.executepsycopg/cursor.py:1139 ms9.9%
Connection.waitpsycopg/connection.py:4959 ms9.9%
BaseCursor._execute_genpsycopg/_cursor_base.py:2069 ms9.9%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2869 ms9.9%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:789 ms9.9%
Atomic.__exit__django/db/transaction.py:2989 ms9.9%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:269 ms9.9%
BaseDatabaseWrapper.savepoint_commitdjango/db/backends/base/base.py:4319 ms9.9%
BaseDatabaseWrapper._savepoint_commitdjango/db/backends/base/base.py:3759 ms9.9%
CursorWrapper.executedjango/db/backends/utils.py:799 ms9.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:929 ms9.9%
CursorWrapper._executedjango/db/backends/utils.py:1039 ms9.9%
Cursor.executepsycopg/cursor.py:1139 ms9.9%
Connection.waitpsycopg/connection.py:4959 ms9.9%
BaseCursor._execute_genpsycopg/_cursor_base.py:2069 ms9.9%
BaseCursor._convert_querypsycopg/_cursor_base.py:4654 ms4.9%
PostgresClientQuery.convertpsycopg/_queries.py:2734 ms4.9%
PostgresQuery._ensure_bytespsycopg/_queries.py:1674 ms4.9%
conn_encodingpsycopg/_encodings.py:874 ms4.9%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2864 ms4.9%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:784 ms4.9%
TestCase._fixture_teardowndjango/test/testcases.py:149813 ms14.8%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:49613 ms14.8%
CursorWrapper.executedjango/db/backends/utils.py:7913 ms14.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9213 ms14.8%
CursorWrapper._executedjango/db/backends/utils.py:10313 ms14.8%
Cursor.executepsycopg/cursor.py:11313 ms14.8%
Connection.waitpsycopg/connection.py:49513 ms14.8%
BaseCursor._execute_genpsycopg/_cursor_base.py:2069 ms9.9%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2869 ms9.9%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:789 ms9.9%
teardown0.23 ms0.3%
Estimated from 25 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
starter_packs/tests.py:79
response = self.client.get(reverse("starter_packs"), {"language": "not-a-language"})
TestStarterPacks.test_index_page_unknown_language_ignored
· Libraries
|
53 ms |
Fixtures
Exact setup time| _dj_autoclear_mailbox function | 0.04 ms |
| _template_string_if_invalid_marker function | 0.04 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.02 ms |
| monkeypatch function | 0.02 ms |
Database
15 queries · 9 msNo repeated queries.
Biggest pieces of work
|
call test body
starter_packs/tests.py:79
|
53 ms |
|
call _post_teardown
django/test/testcases.py:1243
|
31 ms |
| call pytest internals | 4 ms |
| setup pytest internals | 0.72 ms |
| teardown pytest internals | 0.23 ms |
Reliability
14 results · 0 CI failures · 0 local failuresThis test hasn't failed recently.
History
Latest 14 results, oldest first in the strip| When | Environment | Outcome | Duration | |
|---|---|---|---|---|
| 2 weeks ago | CI github-actions:test | passed | 89 ms | Profile |
| 2 weeks, 5 days ago | CI github-actions:test | passed | 120 ms | Profile |
| 2 weeks, 6 days ago | CI github-actions:test | passed | 103 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 62 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 236 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 93 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 151 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 123 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 88 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 71 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 247 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 302 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 198 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 97 ms | Run |