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

McpTest::test_requires_token

First seen 1 month, 1 week ago in 78a4357
CI github-actions:test 15 runs
Average
34 ms
median 38 ms
max 49 ms
Phases
Setup 0.65 ms Call 33 ms Teardown 0.15 ms
Categories
Database 5 ms Test code 0.07 ms Other (Libraries, pytest, Unsampled) 29 ms

6 database queries per run

Needs 123 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
call28 ms97.7%
McpTest.test_requires_tokenapps/mcp/tests.py:140 response = self.post({"jsonrpc": "2.0", "id": 1, "method": "ping"}, token="")24 ms83.7%
McpTest.postapps/mcp/tests.py:67 return self.client.post(24 ms83.7%
Client.postdjango/test/client.py:115324 ms83.7%
RequestFactory.postdjango/test/client.py:49924 ms83.7%
RequestFactory.genericdjango/test/client.py:67124 ms83.7%
Client.requestdjango/test/client.py:108224 ms83.7%
ClientHandler.__call__django/test/client.py:17324 ms83.7%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6224 ms83.7%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10422 ms76.8%
WhiteNoise.add_fileswhitenoise/base.py:10822 ms76.8%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12020 ms69.8%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13120 ms69.8%
WhiteNoise.get_static_filewhitenoise/base.py:20814 ms48.9%
StaticFile.__init__whitenoise/responders.py:776 ms20.9%
StaticFile.get_alternativeswhitenoise/responders.py:2004 ms14.0%
__init____init__:-12 ms7.0%
Headers.__init__<stdlib>/wsgiref/headers.py:442 ms7.0%
Headers._convert_string_type<stdlib>/wsgiref/headers.py:502 ms7.0%
StaticFile.get_alternativeswhitenoise/responders.py:2012 ms7.0%
StaticFile.__init__whitenoise/responders.py:744 ms14.0%
parsedate<stdlib>/email/_parseaddr.py:1852 ms7.0%
Headers.__getitem__<stdlib>/wsgiref/headers.py:832 ms7.0%
StaticFile.__init__whitenoise/responders.py:762 ms7.0%
StaticFile.get_not_modified_responsewhitenoise/responders.py:1892 ms7.0%
Headers.__getitem__<stdlib>/wsgiref/headers.py:832 ms7.0%
Headers.get<stdlib>/wsgiref/headers.py:1042 ms7.0%
WhiteNoise.get_static_filewhitenoise/base.py:2036 ms20.9%
WhiteNoise.add_cache_headerswhitenoise/base.py:2246 ms20.9%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1766 ms20.9%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1976 ms20.9%
URLMixin.urldebug_toolbar/panels/staticfiles.py:204 ms14.0%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:2052 ms7.0%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:1842 ms7.0%
䡽綋䣐疍ṜJ蕈瓀䡷쎉譈�赈䟨䨞䠀삅杴譈⭈᡼赈謼襈䧆욉ퟨ§褀䳁즅䩴උঀ빁⾨Œ女￿뿿䑶譈鬽ဎ䠀욉ᗿາ譈謽ဎ䠀�ᗿຢ襌䣰쒃嬠幁썝ㅅ䗯�උॖ빁⿈Œ듫쇿襁첵쳌쳌쳌쳌쳌쳌쳌䡕偓襈ㇷ䣛喍뻰)쀱⯨䑭蔀瓀䠼綋ㇰ㇛ᶆJ蕈瓀茪⼸좹刯묁⾨Œ཈�譈]ဍ䠀욉ᗿถ΋]￿皿䠊�荈ࣄ嵛ᅢ觀쳰쳌쳌䡕噁䡓 �襈ㇷ䣛喍뻨)쀱돨䑬蔀瓀䡎綋䣨疍ᴎJ蕈瓀䤺욉赈債￿䣿잉䨦묀⾨Œ삅ぴ譈紽ဍ䰀ᗿඔ΋]￿瞿(觀㄂䣛�腈ꃄ�嬀幁썝薋ィ￿솉�女耀�멵䦨ꢸ刯묁⿈Œ཈�꣫쳌쳌䡕坁噁啁呁䡓˜�襉擶譈┄(�襈큅좉褆菋샡襁䇟䰿ⲍ䠑붉h￿襈觖咆gʼn䇞㞼�묀7�⥄菳㿣圏䣀붍p￿⤏灇⤏恇⤏假⤏䁇⤏ぇ⤏⁇⤏၇⤏뤇€�襌䳮憎맨§䴀ⲍ䤯얁q￿왁e薀瓛䔔荁㿤襌㇯䳶燨µ䄀ᒍ茟ূ셉Ϧ襍ᵴ섀۪赈債￿䣿붋h￿杓搀譈┄(�㭈큅ት腈飄�嬀屁嵁幁彁썝ᗨÂ찀쳌쳌䡕坁噁啁呁䡓䄘횉襈࿻Ԩ혢ﻫ赌쁽ཁܩ䐆茿Ǹ�䄀풉셁ۤ⥅仦ⲍ䰦ノ痨杓䰀ノ襌䳦襄ﺔ￿ཁܨᄏ䠃쒃嬘屁嵁幁彁썝쳌쳌쳌쳌쳌쳌쳌䡕ދ젏ډ䞋༄览ц䞋༈览ࡆ䞋༌览ె䞋༐览၆썝쳌쳌䡕坁噁啁呁䡓˜�襉擶譈┄(�襈큅좉褆菋샡襁䇟䰿ⲍ䠑붉h￿襈觖ତfʼn䇞㞼�묀7�⥄菳㿣圏䣀붍p￿⤏灇⤏恇⤏假⤏䁇⤏ぇ⤏⁇⤏၇⤏뤇€�襌䳮憎裡¥䴀ⲍ䤯얁q￿왁e薀瓛䔔荁㿤襌㇯䳶뇨³䤀䤃츏赁ἔ슃䴉璉䠆떍p￿譈䢽￿આf䡤ҋ⠥�䠀䔻痐䠒쒁˜�䅛䅜䅝䅞嵟쁒�쳌䡕坁噁啁呁䡓䄘힉襈࿻Ԩ观G赌쁵ཁة읁၆쏒䐆茿Ǹ�䄀풉셁ۤ⥅仧ⲍ䰦௨昊䰀襌䳦襄ﺌ￿譁༆览䄃䚋༄览у譁ࡆ젏䎉䄈䚋༌览ృ譁၆젏䎉䠐쒃嬘屁嵁幁彁썝쳌䡕坁噁啁呁䡓˜�襈䢍￿䧿ﺉ䡤ҋ⠥�䠀䖉䓐溍㇈䇛ﶃ྿쎒圏䳀붍p￿ཁ䜩䅰⤏恇ཁ䜩䅐⤏䁇ཁ䜩䄰⤏⁇ཁ䜩䄐⤏䤇䤃츏襁맴€�襌䣿횉襌ꑚ�왂▄p￿솀ۣ襌ᵴ䢈鶋h￿襌䣿�럨曱䇿ﶃ瞾䠌綍䢐�ꗨ曱擿譈┄(�㭈큅ት腈飄�嬀屁嵁幁彁썝쿨¾찀쳌쳌쳌쳌쳌쳌쳌䡕ދ例༄࿈诉ࡗ쨏譄ేཁ䓈例䄐줏譄ᑗཁ䓊律䄘쬏羋༜觏褆ю嚉䐈䚉䐌争䐐嚉䐔庉褘᱾썝䡕ދ例༄࿈诉ࡗ쨏譄ేཁ䓈例䄐줏譄ᑗཁ诊᡿켏ډ争褄ࡖ襄ె襄၎襄ᑖ纉崘쳃쳌쳌쳌쳌쳌䡕坁噁啁呁䡓Ę�襌삅￾䣿趉ﻈ￿펉襉䧶ノ䡤ҋ⠥�䠀䖉䓐掍䖐腁翼￿䇿鈏䣅붍ﻐ￿º㄀냔�ཌྷﺤ䤃䤃츏ཉ觏맛Ā�赈킽￾䣿떋ﻈ￿襈ꋈ�蓆퀝￾胿譈삝￾䇿万뒉䀭￿仿벉䠭￿䣿붍ﻐ￿襈ァ腁综￿矿䠏붍p￿襈ァ䡤ҋ⠥�䠀䔻痐䠒쒁Ę�䅛䅜䅝䅞嵟봨�쳌쳌쳌쳌䡕譈䠇例䠈젏཈䣉型䠐쨏譌ᡇཉ䳈例䤠줏譌<unknown file>2 ms7.0%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1152 ms7.0%
scantreewhitenoise/base.py:2622 ms7.0%
scantreewhitenoise/base.py:2622 ms7.0%
scantreewhitenoise/base.py:2622 ms7.0%
scantreewhitenoise/base.py:2622 ms7.0%
scantreewhitenoise/base.py:2622 ms7.0%
scantreewhitenoise/base.py:2642 ms7.0%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:952 ms7.0%
McpTest.test_requires_tokenapps/mcp/tests.py:1432 ms7.0%
McpTest.postapps/mcp/tests.py:67 return self.client.post(2 ms7.0%
Client.postdjango/test/client.py:11532 ms7.0%
RequestFactory.postdjango/test/client.py:4992 ms7.0%
RequestFactory.genericdjango/test/client.py:6712 ms7.0%
Client.requestdjango/test/client.py:10822 ms7.0%
ClientHandler.__call__django/test/client.py:1862 ms7.0%
BaseHandler.get_responsedjango/core/handlers/base.py:1412 ms7.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms7.0%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1302 ms7.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms7.0%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms7.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms7.0%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:1232 ms7.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms7.0%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms7.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms7.0%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms7.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms7.0%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms7.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms7.0%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms7.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms7.0%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms7.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms7.0%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms7.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms7.0%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:342 ms7.0%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms7.0%
BaseHandler._get_responsedjango/core/handlers/base.py:1982 ms7.0%
csrf_exempt.<locals>._view_wrapperdjango/views/decorators/csrf.py:652 ms7.0%
mcpapps/mcp/urls.py:1252 ms7.0%
authenticateapps/mcp/urls.py:55 project = Project.objects.filter(secrettokens__token=token).first()2 ms7.0%
QuerySet.firstdjango/db/models/query.py:11452 ms7.0%
QuerySet.__iter__django/db/models/query.py:3902 ms7.0%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms7.0%
ModelIterable.__iter__django/db/models/query.py:952 ms7.0%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16112 ms7.0%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7672 ms7.0%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:862 ms7.0%
SQLCompiler.setup_querydjango/db/models/sql/compiler.py:752 ms7.0%
SQLCompiler.get_selectdjango/db/models/sql/compiler.py:3172 ms7.0%
SQLCompiler.compiledjango/db/models/sql/compiler.py:5742 ms7.0%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()2 ms7.0%
TestCase._fixture_teardowndjango/test/testcases.py:14952 ms7.0%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4832 ms7.0%
CursorWrapper.executedjango/db/backends/utils.py:792 ms7.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms7.0%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms7.0%
Cursor.executepsycopg/cursor.py:1132 ms7.0%
Connection.waitpsycopg/connection.py:4952 ms7.0%
Estimated from 14 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
24 ms
apps/mcp/urls.py:55
project = Project.objects.filter(secrettokens__token=token).first()
authenticate · Database
2 ms

Fixtures

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

Database

6 queries · 2 ms
No repeated queries.

Biggest pieces of work

call test body
apps/mcp/tests.py:140
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 38 ms 9bd5864 main Profile
2 weeks, 6 days ago CI github-actions:test passed 21 ms 19dac9b main Profile
3 weeks ago CI github-actions:test passed 41 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 38 ms afde85b main Profile
1 month ago CI github-actions:test passed 31 ms fe29f9d main Profile
1 month ago CI github-actions:test passed 45 ms 044719a main Profile
1 month ago CI github-actions:test passed 20 ms b3fedae main Profile
1 month, 1 week ago CI github-actions:test passed 39 ms 43c4eda main Profile
1 month, 1 week ago CI github-actions:test passed 38 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 49 ms d2c12e5 main Profile
1 month, 1 week ago CI github-actions:test passed 21 ms 0b902f6 main Profile
1 month, 1 week ago CI github-actions:test passed 41 ms 78a4357 main Profile