flakytest.dev anze3db flakytest
Tests / apps/mcp/tests.py

McpTest::test_initialized_notification

First seen 1 month, 1 week ago in 78a4357
CI github-actions:test 15 runs
Average
34 ms
median 36 ms
max 56 ms
Phases
Setup 0.64 ms Call 33 ms Teardown 0.15 ms
Categories
Database 11 ms App code 0.13 ms Other (Libraries, pytest, Unsampled, Serialization, ...) 23 ms

7 database queries per run

Needs 103 KB of memory (max 544 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 2 weeks ago · open run
Show pytest frames
call27 ms97.5%
McpTest.test_initialized_notificationapps/mcp/tests.py:105 response = self.post({"jsonrpc": "2.0", "method": "notifications/initialized"})25 ms87.7%
McpTest.postapps/mcp/tests.py:67 return self.client.post(25 ms87.7%
Client.postdjango/test/client.py:115325 ms87.7%
RequestFactory.postdjango/test/client.py:49925 ms87.7%
RequestFactory.genericdjango/test/client.py:67125 ms87.7%
Client.requestdjango/test/client.py:108225 ms87.7%
ClientHandler.__call__django/test/client.py:17319 ms68.2%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6219 ms68.2%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10419 ms68.2%
WhiteNoise.add_fileswhitenoise/base.py:10819 ms68.2%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12016 ms58.5%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13116 ms58.5%
WhiteNoise.get_static_filewhitenoise/base.py:20814 ms48.7%
StaticFile.__init__whitenoise/responders.py:7711 ms39.0%
StaticFile.get_alternativeswhitenoise/responders.py:2038 ms29.2%
Headers.__setitem__<stdlib>/wsgiref/headers.py:608 ms29.2%
<GC>~8 ms29.2%
StaticFile.get_alternativeswhitenoise/responders.py:2003 ms9.7%
StaticFile.__init__whitenoise/responders.py:723 ms9.7%
WhiteNoise.get_static_filewhitenoise/base.py:2033 ms9.7%
WhiteNoise.add_cache_headerswhitenoise/base.py:2243 ms9.7%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1763 ms9.7%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1973 ms9.7%
URLMixin.urldebug_toolbar/panels/staticfiles.py:203 ms9.7%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:2053 ms9.7%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:1783 ms9.7%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1153 ms9.7%
scantreewhitenoise/base.py:2623 ms9.7%
scantreewhitenoise/base.py:2603 ms9.7%
scantreewhitenoise/base.py:2603 ms9.7%
ClientHandler.__call__django/test/client.py:1865 ms19.5%
BaseHandler.get_responsedjango/core/handlers/base.py:1415 ms19.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms19.5%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1305 ms19.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms19.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3095 ms19.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms19.5%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:1235 ms19.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms19.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3095 ms19.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms19.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3095 ms19.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms19.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3095 ms19.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms19.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3095 ms19.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms19.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3095 ms19.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms19.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3095 ms19.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms19.5%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:345 ms19.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:555 ms19.5%
BaseHandler._get_responsedjango/core/handlers/base.py:1985 ms19.5%
csrf_exempt.<locals>._view_wrapperdjango/views/decorators/csrf.py:655 ms19.5%
mcpapps/mcp/urls.py:1253 ms9.7%
authenticateapps/mcp/urls.py:55 project = Project.objects.filter(secrettokens__token=token).first()3 ms9.7%
QuerySet.firstdjango/db/models/query.py:11453 ms9.7%
QuerySet.__iter__django/db/models/query.py:3903 ms9.7%
QuerySet._fetch_alldjango/db/models/query.py:20003 ms9.7%
ModelIterable.__iter__django/db/models/query.py:953 ms9.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16243 ms9.7%
CursorWrapper.executedjango/db/backends/utils.py:793 ms9.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms9.7%
CursorWrapper._executedjango/db/backends/utils.py:1053 ms9.7%
Cursor.executepsycopg/cursor.py:1133 ms9.7%
Connection.waitpsycopg/connection.py:4953 ms9.7%
mcpapps/mcp/urls.py:134 payload = json.loads(request.body)3 ms9.7%
loads<stdlib>/json/__init__.py:3653 ms9.7%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()3 ms9.7%
TestCase._fixture_teardowndjango/test/testcases.py:14953 ms9.7%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4833 ms9.7%
CursorWrapper.executedjango/db/backends/utils.py:793 ms9.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:923 ms9.7%
CursorWrapper._executedjango/db/backends/utils.py:1033 ms9.7%
Cursor.executepsycopg/cursor.py:1133 ms9.7%
Connection.waitpsycopg/connection.py:4953 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
19 ms
apps/mcp/urls.py:55
project = Project.objects.filter(secrettokens__token=token).first()
authenticate · Database
3 ms
apps/mcp/urls.py:134
payload = json.loads(request.body)
mcp · Serialization
3 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_set_urlconf function 0.03 ms
_live_server_helper function 0.03 ms
_django_clear_site_cache function 0.02 ms
monkeypatch function 0.02 ms

Database

7 queries · 2 ms
No repeated queries.

Biggest pieces of work

call test body
apps/mcp/tests.py:105
25 ms
call _post_teardown
django/test/testcases.py:1240
3 ms

Reliability

15 results · 0 CI failures · 0 local failures

This test hasn't failed recently.

History

Latest 15 results, oldest first in the strip
When Environment Outcome Duration Commit
2 weeks ago CI github-actions:test passed 28 ms cb18ed3 main Profile
2 weeks, 4 days ago CI github-actions:test passed 38 ms 9bd5864 main Profile
2 weeks, 6 days ago CI github-actions:test passed 22 ms 19dac9b main Profile
3 weeks ago CI github-actions:test passed 36 ms e141198 main Profile
1 month ago CI github-actions:test passed 17 ms 46ec2aa main Profile
1 month ago CI github-actions:test passed 40 ms afde85b main Profile
1 month ago CI github-actions:test passed 32 ms fe29f9d main Profile
1 month ago CI github-actions:test passed 56 ms 044719a main Profile
1 month ago CI github-actions:test passed 18 ms b3fedae main Profile
1 month, 1 week ago CI github-actions:test passed 43 ms 43c4eda main Profile
1 month, 1 week ago CI github-actions:test passed 41 ms 9caa567 main Profile
1 month, 1 week ago CI github-actions:test passed 42 ms ec75501 main Profile
1 month, 1 week ago CI github-actions:test passed 42 ms d2c12e5 main Profile
1 month, 1 week ago CI github-actions:test passed 17 ms 0b902f6 main Profile
1 month, 1 week ago CI github-actions:test passed 36 ms 78a4357 main Profile