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

McpTest::test_get_not_allowed

First seen 1 month, 1 week ago in 78a4357
CI github-actions:test 15 runs
Average
32 ms
median 34 ms
max 42 ms
Phases
Setup 0.62 ms Call 31 ms Teardown 0.16 ms
Categories
Database 4 ms Other (Libraries, Unsampled, Logging, pytest) 28 ms

5 database queries per run

Needs 189 KB of memory (max 572 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 2 weeks ago · open run
Show pytest frames
call29 ms97.8%
McpTest.test_get_not_allowedapps/mcp/tests.py:135 response = self.client.get("/mcp", headers={"Authorization": f"Bearer {self.token}"})26 ms90.2%
Client.getdjango/test/client.py:112426 ms90.2%
RequestFactory.getdjango/test/client.py:47526 ms90.2%
RequestFactory.genericdjango/test/client.py:67126 ms90.2%
Client.requestdjango/test/client.py:108226 ms90.2%
ClientHandler.__call__django/test/client.py:17313 ms45.1%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6213 ms45.1%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10413 ms45.1%
WhiteNoise.add_fileswhitenoise/base.py:10813 ms45.1%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12011 ms37.6%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:1317 ms22.6%
WhiteNoise.get_static_filewhitenoise/base.py:2034 ms15.0%
WhiteNoise.add_cache_headerswhitenoise/base.py:2244 ms15.0%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1764 ms15.0%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1974 ms15.0%
URLMixin.urldebug_toolbar/panels/staticfiles.py:204 ms15.0%
WhiteNoise.get_static_filewhitenoise/base.py:2082 ms7.5%
StaticFile.__init__whitenoise/responders.py:732 ms7.5%
StaticFile.get_headerswhitenoise/responders.py:1822 ms7.5%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1152 ms7.5%
scantreewhitenoise/base.py:2622 ms7.5%
scantreewhitenoise/base.py:2642 ms7.5%
ClientHandler.__call__django/test/client.py:18613 ms45.1%
BaseHandler.get_responsedjango/core/handlers/base.py:1417 ms22.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms22.6%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1307 ms22.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms22.6%
MiddlewareMixin.__call__django/utils/deprecation.py:3097 ms22.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms22.6%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:1237 ms22.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms22.6%
MiddlewareMixin.__call__django/utils/deprecation.py:3097 ms22.6%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:557 ms22.6%
MiddlewareMixin.__call__django/utils/deprecation.py:3094 ms15.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:554 ms15.0%
MiddlewareMixin.__call__django/utils/deprecation.py:3094 ms15.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:554 ms15.0%
MiddlewareMixin.__call__django/utils/deprecation.py:3094 ms15.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:554 ms15.0%
MiddlewareMixin.__call__django/utils/deprecation.py:3094 ms15.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:554 ms15.0%
MiddlewareMixin.__call__django/utils/deprecation.py:3094 ms15.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:554 ms15.0%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:344 ms15.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:554 ms15.0%
BaseHandler._get_responsedjango/core/handlers/base.py:1822 ms7.5%
BaseHandler.resolve_requestdjango/core/handlers/base.py:3142 ms7.5%
URLResolver.resolvedjango/urls/resolvers.py:6782 ms7.5%
URLResolver.resolvedjango/urls/resolvers.py:7072 ms7.5%
BaseHandler._get_responsedjango/core/handlers/base.py:1982 ms7.5%
csrf_exempt.<locals>._view_wrapperdjango/views/decorators/csrf.py:652 ms7.5%
mcpapps/mcp/urls.py:122 response = HttpResponse(status=405)2 ms7.5%
HttpResponse.__init__django/http/response.py:3802 ms7.5%
HttpResponseBase.__init__django/http/response.py:1242 ms7.5%
HttpResponseBase.charsetdjango/http/response.py:1652 ms7.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3082 ms7.5%
CommonMiddleware.process_requestdjango/middleware/common.py:482 ms7.5%
HttpRequest.get_hostdjango/http/request.py:1942 ms7.5%
split_domain_portdjango/http/request.py:8192 ms7.5%
BaseHandler.get_responsedjango/core/handlers/base.py:1447 ms22.6%
log_responsedjango/utils/log.py:2807 ms22.6%
log_messagedjango/utils/log.py:2494 ms15.0%
Logger.warning<stdlib>/logging/__init__.py:15404 ms15.0%
Logger._log<stdlib>/logging/__init__.py:16734 ms15.0%
Logger.handle<stdlib>/logging/__init__.py:16894 ms15.0%
Logger.callHandlers<stdlib>/logging/__init__.py:17494 ms15.0%
Handler.handle<stdlib>/logging/__init__.py:10302 ms7.5%
StreamHandler.emit<stdlib>/logging/__init__.py:11572 ms7.5%
log_messagedjango/utils/log.py:2442 ms7.5%
log_message.<locals>.<genexpr>django/utils/log.py:2452 ms7.5%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()2 ms7.5%
TestCase._fixture_teardowndjango/test/testcases.py:14952 ms7.5%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4832 ms7.5%
CursorWrapper.executedjango/db/backends/utils.py:792 ms7.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms7.5%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms7.5%
Cursor.executepsycopg/cursor.py:1132 ms7.5%
Connection.waitpsycopg/connection.py:4952 ms7.5%
Estimated from 13 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

apps/mcp/tests.py:135
response = self.client.get("/mcp", headers={"Authorization": f"Bearer {self.token}"})
McpTest.test_get_not_allowed · Libraries
24 ms
apps/mcp/urls.py:122
response = HttpResponse(status=405)
mcp · Libraries
2 ms

Fixtures

Exact setup time
_dj_autoclear_mailbox function 0.05 ms
_django_db_marker function 0.03 ms
_template_string_if_invalid_marker function 0.03 ms
_django_set_urlconf function 0.03 ms
_live_server_helper function 0.02 ms
_django_clear_site_cache function 0.02 ms
monkeypatch function 0.01 ms

Database

5 queries · 1 ms
No repeated queries.

Biggest pieces of work

call test body
apps/mcp/tests.py:135
26 ms
call _post_teardown
django/test/testcases.py:1240
2 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 29 ms cb18ed3 main Profile
2 weeks, 4 days ago CI github-actions:test passed 34 ms 9bd5864 main Profile
2 weeks, 6 days ago CI github-actions:test passed 18 ms 19dac9b main Profile
3 weeks ago CI github-actions:test passed 39 ms e141198 main Profile
1 month ago CI github-actions:test passed 21 ms 46ec2aa main Profile
1 month ago CI github-actions:test passed 28 ms afde85b main Profile
1 month ago CI github-actions:test passed 29 ms fe29f9d main Profile
1 month ago CI github-actions:test passed 40 ms 044719a main Profile
1 month ago CI github-actions:test passed 22 ms b3fedae main Profile
1 month, 1 week ago CI github-actions:test passed 42 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 39 ms ec75501 main Profile
1 month, 1 week ago CI github-actions:test passed 40 ms d2c12e5 main Profile
1 month, 1 week ago CI github-actions:test passed 24 ms 0b902f6 main Profile
1 month, 1 week ago CI github-actions:test passed 34 ms 78a4357 main Profile