Tests / apps/mcp/tests.py
McpTest::test_batch_of_notifications
First seen 1 month, 1 week ago in 78a4357
CI
github-actions:test
15 runs
Average
35 ms
median 39 ms
max 57 ms
max 57 ms
Phases
Setup 0.67 ms
Call 35 ms
Teardown 0.16 ms
Categories
Database 9 ms
Other (Libraries, pytest, Unsampled) 26 ms
7 database queries per run
Needs 147 KB of memory (max 436 KB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 2 weeks ago ·
open run
call24 ms96.6%
McpTest.test_batch_of_notificationsapps/mcp/tests.py:163 response = self.post([{"jsonrpc": "2.0", "method": "notifications/initialized"}])19 ms77.3%
McpTest.postapps/mcp/tests.py:67 return self.client.post(19 ms77.3%
Client.postdjango/test/client.py:115319 ms77.3%
RequestFactory.postdjango/test/client.py:49919 ms77.3%
RequestFactory.genericdjango/test/client.py:67119 ms77.3%
Client.requestdjango/test/client.py:108219 ms77.3%
ClientHandler.__call__django/test/client.py:17314 ms58.0%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6214 ms58.0%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10414 ms58.0%
WhiteNoise.add_fileswhitenoise/base.py:10814 ms58.0%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12012 ms48.3%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13112 ms48.3%
WhiteNoise.get_static_filewhitenoise/base.py:2087 ms29.0%
StaticFile.__init__whitenoise/responders.py:735 ms19.3%
StaticFile.get_headerswhitenoise/responders.py:1672 ms9.7%
StaticFile.get_headerswhitenoise/responders.py:1782 ms9.7%
parsedate<stdlib>/email/_parseaddr.py:1852 ms9.7%
parsedate_tz<stdlib>/email/_parseaddr.py:502 ms9.7%
_parsedate_tz<stdlib>/email/_parseaddr.py:1802 ms9.7%
StaticFile.__init__whitenoise/responders.py:722 ms9.7%
StaticFile.get_file_statswhitenoise/responders.py:1612 ms9.7%
WhiteNoise.get_static_filewhitenoise/base.py:2022 ms9.7%
WhiteNoise.get_static_filewhitenoise/base.py:2032 ms9.7%
WhiteNoise.add_cache_headerswhitenoise/base.py:2242 ms9.7%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1762 ms9.7%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1972 ms9.7%
URLMixin.urldebug_toolbar/panels/staticfiles.py:202 ms9.7%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1152 ms9.7%
scantreewhitenoise/base.py:2622 ms9.7%
scantreewhitenoise/base.py:2622 ms9.7%
scantreewhitenoise/base.py:2642 ms9.7%
ClientHandler.__call__django/test/client.py:1865 ms19.3%
BaseHandler.get_responsedjango/core/handlers/base.py:1415 ms19.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms19.3%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1305 ms19.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms19.3%
MiddlewareMixin.__call__django/utils/deprecation.py:3095 ms19.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms19.3%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:1235 ms19.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms19.3%
MiddlewareMixin.__call__django/utils/deprecation.py:3095 ms19.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms19.3%
MiddlewareMixin.__call__django/utils/deprecation.py:3095 ms19.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms19.3%
MiddlewareMixin.__call__django/utils/deprecation.py:3095 ms19.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms19.3%
MiddlewareMixin.__call__django/utils/deprecation.py:3095 ms19.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms19.3%
MiddlewareMixin.__call__django/utils/deprecation.py:3095 ms19.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms19.3%
MiddlewareMixin.__call__django/utils/deprecation.py:3095 ms19.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms19.3%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:345 ms19.3%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms19.3%
BaseHandler._get_responsedjango/core/handlers/base.py:1985 ms19.3%
csrf_exempt.<locals>._view_wrapperdjango/views/decorators/csrf.py:655 ms19.3%
mcpapps/mcp/urls.py:1255 ms19.3%
authenticateapps/mcp/urls.py:55 project = Project.objects.filter(secrettokens__token=token).first()2 ms9.7%
QuerySet.firstdjango/db/models/query.py:11452 ms9.7%
QuerySet.__iter__django/db/models/query.py:3902 ms9.7%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms9.7%
ModelIterable.__iter__django/db/models/query.py:952 ms9.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms9.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms9.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms9.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms9.7%
Cursor.executepsycopg/cursor.py:1132 ms9.7%
Connection.waitpsycopg/connection.py:4952 ms9.7%
authenticateapps/mcp/urls.py:57 SecretTokens.objects.filter(token=token).update(date_last_used=timezone.now())2 ms9.7%
QuerySet.updatedjango/db/models/query.py:13002 ms9.7%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21112 ms9.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms9.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms9.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms9.7%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms9.7%
Cursor.executepsycopg/cursor.py:1132 ms9.7%
Connection.waitpsycopg/connection.py:4952 ms9.7%
TransactionTestCase._pre_setupdjango/test/testcases.py:1164 cls._fixture_setup()2 ms9.7%
TestCase._fixture_setupdjango/test/testcases.py:14782 ms9.7%
TestCase._enter_atomicsdjango/test/testcases.py:13962 ms9.7%
Atomic.__enter__django/db/transaction.py:2112 ms9.7%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:262 ms9.7%
BaseDatabaseWrapper.savepointdjango/db/backends/base/base.py:4002 ms9.7%
BaseDatabaseWrapper._savepointdjango/db/backends/base/base.py:3672 ms9.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms9.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms9.7%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms9.7%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()2 ms9.7%
TestCase._fixture_teardowndjango/test/testcases.py:14952 ms9.7%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4832 ms9.7%
CursorWrapper.executedjango/db/backends/utils.py:792 ms9.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms9.7%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms9.7%
Cursor.executepsycopg/cursor.py:1132 ms9.7%
Connection.waitpsycopg/connection.py:4952 ms9.7%
Estimated from 10 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
apps/mcp/tests.py:67
return self.client.post(
McpTest.post
· Libraries
|
14 ms |
|
apps/mcp/urls.py:55
project = Project.objects.filter(secrettokens__token=token).first()
authenticate
· Database
|
2 ms |
|
apps/mcp/urls.py:57
SecretTokens.objects.filter(token=token).update(date_last_used=timezone.now())
authenticate
· Database
|
2 ms |
Fixtures
Exact setup time| _dj_autoclear_mailbox function | 0.04 ms |
| _template_string_if_invalid_marker function | 0.03 ms |
| _django_db_marker function | 0.03 ms |
| _live_server_helper function | 0.02 ms |
| _django_set_urlconf function | 0.02 ms |
| _django_clear_site_cache function | 0.02 ms |
| monkeypatch function | 0.01 ms |
Database
7 queries · 2 msNo repeated queries.
Biggest pieces of work
|
call test body
apps/mcp/tests.py:163
|
19 ms |
|
call _pre_setup
django/test/testcases.py:1164
|
2 ms |
|
call _post_teardown
django/test/testcases.py:1240
|
2 ms |
Reliability
15 results · 0 CI failures · 0 local failuresThis test hasn't failed recently.
History
Latest 15 results, oldest first in the strip| When | Environment | Outcome | Duration | |
|---|---|---|---|---|
| 2 weeks ago | CI github-actions:test | passed | 25 ms | Profile |
| 2 weeks, 4 days ago | CI github-actions:test | passed | 39 ms | Profile |
| 2 weeks, 6 days ago | CI github-actions:test | passed | 20 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 47 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 20 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 43 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 35 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 57 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 24 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 42 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 41 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 40 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 43 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 18 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 38 ms | Profile |