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

McpTest::test_get_not_allowed

First seen 3 weeks ago in 78a4357
CI github-actions:test 12 runs
Average
33 ms
median 37 ms
max 42 ms
Phases
Setup 0.64 ms Call 33 ms Teardown 0.17 ms
Categories
Database 4 ms Other (Libraries, Unsampled, pytest) 29 ms

5 database queries per run

Needs 236 KB of memory (max 572 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 16 hours ago · open run
Show pytest frames
setup0.70 ms1.8%
iscoroutinefunction<stdlib>/inspect.py:336 return _has_code_flag(obj, CO_COROUTINE) or _has_coroutine_mark(obj)0.70 ms1.8%
call39 ms97.9%
McpTest.test_get_not_allowedapps/mcp/tests.py:135 response = self.client.get("/mcp", headers={"Authorization": f"Bearer {self.token}"})34 ms86.3%
Client.getdjango/test/client.py:112434 ms86.3%
RequestFactory.getdjango/test/client.py:47534 ms86.3%
RequestFactory.genericdjango/test/client.py:67134 ms86.3%
Client.requestdjango/test/client.py:108234 ms86.3%
ClientHandler.__call__django/test/client.py:17334 ms86.3%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6234 ms86.3%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10434 ms86.3%
WhiteNoise.add_fileswhitenoise/base.py:10834 ms86.3%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12030 ms74.8%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13130 ms74.8%
WhiteNoise.get_static_filewhitenoise/base.py:20823 ms57.6%
StaticFile.__init__whitenoise/responders.py:7314 ms34.5%
StaticFile.get_headerswhitenoise/responders.py:1675 ms11.5%
StaticFile.get_headerswhitenoise/responders.py:1765 ms11.5%
formatdate<stdlib>/email/utils.py:2665 ms11.5%
StaticFile.get_headerswhitenoise/responders.py:1785 ms11.5%
parsedate<stdlib>/email/_parseaddr.py:1855 ms11.5%
parsedate_tz<stdlib>/email/_parseaddr.py:502 ms5.8%
_parsedate_tz<stdlib>/email/_parseaddr.py:1802 ms5.8%
StaticFile.__init__whitenoise/responders.py:725 ms11.5%
StaticFile.__init__whitenoise/responders.py:762 ms5.8%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1882 ms5.8%
Headers.__contains__<stdlib>/wsgiref/headers.py:872 ms5.8%
Headers.get<stdlib>/wsgiref/headers.py:1062 ms5.8%
StaticFile.__init__whitenoise/responders.py:742 ms5.8%
parsedate<stdlib>/email/_parseaddr.py:1852 ms5.8%
WhiteNoise.get_static_filewhitenoise/base.py:2035 ms11.5%
WhiteNoise.add_cache_headerswhitenoise/base.py:2245 ms11.5%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1765 ms11.5%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1972 ms5.8%
URLMixin.urldebug_toolbar/panels/staticfiles.py:202 ms5.8%
WhiteNoise.get_static_filewhitenoise/base.py:2022 ms5.8%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1155 ms11.5%
scantreewhitenoise/base.py:2625 ms11.5%
scantreewhitenoise/base.py:2622 ms5.8%
scantreewhitenoise/base.py:2642 ms5.8%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()5 ms11.5%
TestCase._fixture_teardowndjango/test/testcases.py:14942 ms5.8%
TestCase._should_check_constraintsdjango/test/testcases.py:15032 ms5.8%
DatabaseWrapper.is_usabledjango/db/backends/postgresql/base.py:4922 ms5.8%
Cursor.executepsycopg/cursor.py:1132 ms5.8%
Connection.waitpsycopg/connection.py:4952 ms5.8%
TestCase._fixture_teardowndjango/test/testcases.py:14952 ms5.8%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4832 ms5.8%
CursorWrapper.executedjango/db/backends/utils.py:792 ms5.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms5.8%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms5.8%
Cursor.executepsycopg/cursor.py:1132 ms5.8%
Connection.waitpsycopg/connection.py:4952 ms5.8%
Estimated from 18 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
34 ms

Fixtures

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

Database

5 queries · 2 ms
No repeated queries.

Biggest pieces of work

call test body
apps/mcp/tests.py:135
34 ms
call _post_teardown
django/test/testcases.py:1240
5 ms
setup iscoroutinefunction
<stdlib>/inspect.py:336
0.70 ms

Reliability

12 results · 0 CI failures · 0 local failures

This test hasn't failed recently.

History

Latest 12 results, oldest first in the strip
When Environment Outcome Duration Commit
16 hours ago CI github-actions:test passed 39 ms e141198 main Profile
1 week, 5 days ago CI github-actions:test passed 21 ms 46ec2aa main Profile
2 weeks, 1 day ago CI github-actions:test passed 28 ms afde85b main Profile
2 weeks, 1 day ago CI github-actions:test passed 29 ms fe29f9d main Profile
2 weeks, 1 day ago CI github-actions:test passed 40 ms 044719a main Profile
2 weeks, 2 days ago CI github-actions:test passed 22 ms b3fedae main Profile
2 weeks, 4 days ago CI github-actions:test passed 42 ms 43c4eda main Profile
2 weeks, 6 days ago CI github-actions:test passed 41 ms 9caa567 main Profile
2 weeks, 6 days ago CI github-actions:test passed 39 ms ec75501 main Profile
3 weeks ago CI github-actions:test passed 40 ms d2c12e5 main Profile
3 weeks ago CI github-actions:test passed 24 ms 0b902f6 main Profile
3 weeks ago CI github-actions:test passed 34 ms 78a4357 main Profile