Tests / apps/api/tests.py
TestInvalidIngest::test_ingest_no_token
First seen 2 years, 9 months ago in 9ff0a7e
CI
github-actions:test
5 runs
Average
66 ms
median 49 ms
max 156 ms
max 156 ms
Phases
Setup 0.74 ms
Call 64 ms
Teardown 0.95 ms
Categories
Database 4 ms
Other (Libraries, Unsampled, pytest) 62 ms
6 database queries per run
Needs 6 KB of memory (max 20 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, an hour ago ·
open run
call49 ms96.2%
TestInvalidIngest.test_ingest_no_tokenapps/api/tests.py:49 response = self.client.post("/api/v1/ingest/start", content_type="application/json")44 ms87.4%
Client.postdjango/test/client.py:115344 ms87.4%
RequestFactory.postdjango/test/client.py:49944 ms87.4%
RequestFactory.genericdjango/test/client.py:67144 ms87.4%
Client.requestdjango/test/client.py:108244 ms87.4%
ClientHandler.__call__django/test/client.py:17329 ms56.8%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6229 ms56.8%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10427 ms52.5%
WhiteNoise.add_fileswhitenoise/base.py:10827 ms52.5%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12020 ms39.3%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13120 ms39.3%
WhiteNoise.get_static_filewhitenoise/base.py:20813 ms26.2%
StaticFile.__init__whitenoise/responders.py:737 ms13.1%
StaticFile.get_headerswhitenoise/responders.py:1767 ms13.1%
formatdate<stdlib>/email/utils.py:2667 ms13.1%
StaticFile.__init__whitenoise/responders.py:744 ms8.7%
parsedate<stdlib>/email/_parseaddr.py:1854 ms8.7%
StaticFile.__init__whitenoise/responders.py:762 ms4.4%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1892 ms4.4%
WhiteNoise.get_static_filewhitenoise/base.py:2034 ms8.7%
WhiteNoise.add_cache_headerswhitenoise/base.py:2244 ms8.7%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1764 ms8.7%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1974 ms8.7%
URLMixin.urldebug_toolbar/panels/staticfiles.py:202 ms4.4%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:2052 ms4.4%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:1862 ms4.4%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1157 ms13.1%
scantreewhitenoise/base.py:2627 ms13.1%
scantreewhitenoise/base.py:2624 ms8.7%
scantreewhitenoise/base.py:2622 ms4.4%
scantreewhitenoise/base.py:2622 ms4.4%
scantreewhitenoise/base.py:2622 ms4.4%
scantreewhitenoise/base.py:2602 ms4.4%
scantreewhitenoise/base.py:2642 ms4.4%
scantreewhitenoise/base.py:2602 ms4.4%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:1112 ms4.4%
WhiteNoise.add_fileswhitenoise/base.py:1082 ms4.4%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1202 ms4.4%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:1312 ms4.4%
WhiteNoise.get_static_filewhitenoise/base.py:2082 ms4.4%
StaticFile.__init__whitenoise/responders.py:722 ms4.4%
StaticFile.get_file_statswhitenoise/responders.py:1612 ms4.4%
ClientHandler.__call__django/test/client.py:18615 ms30.6%
BaseHandler.get_responsedjango/core/handlers/base.py:14115 ms30.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5515 ms30.6%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:13015 ms30.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5515 ms30.6%
MiddlewareMixin.__call__django/utils/deprecation.py:30915 ms30.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5515 ms30.6%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:12315 ms30.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5515 ms30.6%
MiddlewareMixin.__call__django/utils/deprecation.py:30915 ms30.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5515 ms30.6%
MiddlewareMixin.__call__django/utils/deprecation.py:30915 ms30.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5515 ms30.6%
MiddlewareMixin.__call__django/utils/deprecation.py:30915 ms30.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5515 ms30.6%
MiddlewareMixin.__call__django/utils/deprecation.py:30915 ms30.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5515 ms30.6%
MiddlewareMixin.__call__django/utils/deprecation.py:30915 ms30.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5515 ms30.6%
MiddlewareMixin.__call__django/utils/deprecation.py:30915 ms30.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:5515 ms30.6%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:3515 ms30.6%
_should_redirect_accountsallauth/account/middleware.py:6715 ms30.6%
reversedjango/urls/base.py:9815 ms30.6%
URLResolver._reverse_with_prefixdjango/urls/resolvers.py:76015 ms30.6%
URLResolver._populatedjango/urls/resolvers.py:58413 ms26.2%
URLResolver._populatedjango/urls/resolvers.py:5989 ms17.5%
normalizedjango/utils/regex_helper.py:1934 ms8.7%
flatten_resultdjango/utils/regex_helper.py:3062 ms4.4%
<GC>~2 ms4.4%
normalizedjango/utils/regex_helper.py:1492 ms4.4%
URLResolver._populatedjango/urls/resolvers.py:5972 ms4.4%
URLResolver.reverse_dictdjango/urls/resolvers.py:6312 ms4.4%
URLResolver._populatedjango/urls/resolvers.py:5842 ms4.4%
URLResolver._populatedjango/urls/resolvers.py:5592 ms4.4%
LocaleRegexRouteDescriptor.__get__django/urls/resolvers.py:3042 ms4.4%
URLResolver._populatedjango/urls/resolvers.py:5982 ms4.4%
normalizedjango/utils/regex_helper.py:1932 ms4.4%
flatten_resultdjango/utils/regex_helper.py:3062 ms4.4%
<GC>~2 ms4.4%
TransactionTestCase._pre_setupdjango/test/testcases.py:1164 cls._fixture_setup()2 ms4.4%
TestCase._fixture_setupdjango/test/testcases.py:14782 ms4.4%
TestCase._enter_atomicsdjango/test/testcases.py:13962 ms4.4%
Atomic.__enter__django/db/transaction.py:2112 ms4.4%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms4.4%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4002 ms4.4%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3672 ms4.4%
CursorWrapper.executedjango/db/backends/utils.py:792 ms4.4%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms4.4%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms4.4%
Cursor.executepsycopg/cursor.py:1132 ms4.4%
Connection.waitpsycopg/connection.py:4952 ms4.4%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()2 ms4.4%
TestCase._fixture_teardowndjango/test/testcases.py:14972 ms4.4%
TestCase._rollback_atomicsdjango/test/testcases.py:14052 ms4.4%
Atomic.__exit__django/db/transaction.py:2862 ms4.4%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms4.4%
BaseDatabaseWrapper.savepoint_commitdjango/db/backends/base/base.py:4312 ms4.4%
BaseDatabaseWrapper._savepoint_commitdjango/db/backends/base/base.py:3742 ms4.4%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms4.4%
Estimated from 22 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
apps/api/tests.py:49
response = self.client.post("/api/v1/ingest/start", content_type="application/json")
TestInvalidIngest.test_ingest_no_token
· Libraries
|
44 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.04 ms |
| _django_set_urlconf function | 0.03 ms |
| _live_server_helper function | 0.03 ms |
| _django_clear_site_cache function | 0.03 ms |
| monkeypatch function | 0.02 ms |
Database
6 queries · 2 msNo repeated queries.
Biggest pieces of work
|
call test body
apps/api/tests.py:49
|
44 ms |
|
call _pre_setup
django/test/testcases.py:1164
|
2 ms |
|
call _post_teardown
django/test/testcases.py:1240
|
2 ms |
Reliability
5 results · 0 CI failures · 0 local failuresThis test hasn't failed recently.
History
Latest 50 results, oldest first in the strip| When | Environment | Outcome | Duration | |
|---|---|---|---|---|
| an hour ago | CI github-actions:test | passed | 51 ms | Profile |
| an hour ago | CI github-actions:test | passed | 49 ms | Profile |
| 8 hours ago | CI github-actions:test | passed | 156 ms | Profile |
| 8 hours ago | CI github-actions:test | passed | 26 ms | Profile |
| 8 hours ago | CI github-actions:test | passed | 49 ms | Profile |
| 2 years ago | CI github-actions | passed | 179 ms | Run |
| 2 years, 2 months ago | CI github-actions | passed | 196 ms | Run |
| 2 years, 3 months ago | CI github-actions | passed | 205 ms | Run |
| 2 years, 4 months ago | CI github-actions | passed | 196 ms | Run |
| 2 years, 4 months ago | CI github-actions | passed | 218 ms | Run |
| 2 years, 4 months ago | CI github-actions | passed | 319 ms | Run |
| 2 years, 4 months ago | CI github-actions | passed | 175 ms | Run |
| 2 years, 5 months ago | CI github-actions | passed | 80 ms | Run |
| 2 years, 5 months ago | CI github-actions | passed | 79 ms | Run |
| 2 years, 5 months ago | CI github-actions | passed | 82 ms | Run |
| 2 years, 5 months ago | CI github-actions | passed | 80 ms | Run |
| 2 years, 5 months ago | CI github-actions | passed | 81 ms | Run |
| 2 years, 6 months ago | CI github-actions | passed | 81 ms | Run |
| 2 years, 6 months ago | CI github-actions | passed | 79 ms | Run |
| 2 years, 6 months ago | CI github-actions | passed | 79 ms | Run |