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

McpTest::test_errors

First seen 1 month, 1 week ago in 78a4357
CI github-actions:test 15 runs
Average
44 ms
median 48 ms
max 60 ms
Phases
Setup 0.66 ms Call 43 ms Teardown 0.15 ms
Categories
Database 15 ms App code 0.59 ms Other (Libraries, Unsampled, pytest, Serialization) 28 ms

19 database queries per run

Needs 226 KB of memory (max 848 KB)

Duration per run

Where the time goes

Latest run in ci:github-actions:test, 2 weeks ago · open run
Show pytest frames
call40 ms98.4%
McpTest.test_errorsapps/mcp/tests.py:167 response = self.client.post(25 ms62.6%
Client.postdjango/test/client.py:115325 ms62.6%
RequestFactory.postdjango/test/client.py:49925 ms62.6%
RequestFactory.genericdjango/test/client.py:67125 ms62.6%
Client.requestdjango/test/client.py:108225 ms62.6%
ClientHandler.__call__django/test/client.py:17322 ms53.7%
BaseHandler.load_middlewaredjango/core/handlers/base.py:6222 ms53.7%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:10418 ms44.7%
WhiteNoise.add_fileswhitenoise/base.py:10818 ms44.7%
WhiteNoise.update_files_dictionarywhitenoise/base.py:12016 ms40.3%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:13114 ms35.8%
WhiteNoise.get_static_filewhitenoise/base.py:2085 ms13.4%
StaticFile.__init__whitenoise/responders.py:774 ms8.9%
StaticFile.get_alternativeswhitenoise/responders.py:1982 ms4.5%
StaticFile.get_alternatives.<locals>.<lambda>whitenoise/responders.py:1982 ms4.5%
<GC>~2 ms4.5%
StaticFile.__init__whitenoise/responders.py:722 ms4.5%
StaticFile.get_file_statswhitenoise/responders.py:1572 ms4.5%
WhiteNoise.get_static_filewhitenoise/base.py:2035 ms13.4%
WhiteNoise.add_cache_headerswhitenoise/base.py:2245 ms13.4%
WhiteNoiseMiddleware.immutable_file_testwhitenoise/middleware.py:1765 ms13.4%
WhiteNoiseMiddleware.get_static_urlwhitenoise/middleware.py:1974 ms8.9%
URLMixin.urldebug_toolbar/panels/staticfiles.py:204 ms8.9%
HashedFilesMixin.urldjango/contrib/staticfiles/storage.py:2052 ms4.5%
HashedFilesMixin._urldjango/contrib/staticfiles/storage.py:1862 ms4.5%
WhiteNoise.get_static_filewhitenoise/base.py:2022 ms4.5%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1152 ms4.5%
scantreewhitenoise/base.py:2622 ms4.5%
WhiteNoiseMiddleware.__init__whitenoise/middleware.py:1114 ms8.9%
WhiteNoise.add_fileswhitenoise/base.py:1084 ms8.9%
WhiteNoise.update_files_dictionarywhitenoise/base.py:1204 ms8.9%
WhiteNoise.add_file_to_dictionarywhitenoise/base.py:1314 ms8.9%
WhiteNoise.get_static_filewhitenoise/base.py:2084 ms8.9%
StaticFile.__init__whitenoise/responders.py:722 ms4.5%
StaticFile.get_file_statswhitenoise/responders.py:1572 ms4.5%
ClientHandler.__call__django/test/client.py:1864 ms8.9%
BaseHandler.get_responsedjango/core/handlers/base.py:1414 ms8.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:554 ms8.9%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1304 ms8.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:554 ms8.9%
MiddlewareMixin.__call__django/utils/deprecation.py:3094 ms8.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:554 ms8.9%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:1234 ms8.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:554 ms8.9%
MiddlewareMixin.__call__django/utils/deprecation.py:3094 ms8.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:554 ms8.9%
MiddlewareMixin.__call__django/utils/deprecation.py:3094 ms8.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:554 ms8.9%
MiddlewareMixin.__call__django/utils/deprecation.py:3094 ms8.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:554 ms8.9%
MiddlewareMixin.__call__django/utils/deprecation.py:3094 ms8.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:554 ms8.9%
MiddlewareMixin.__call__django/utils/deprecation.py:3094 ms8.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:554 ms8.9%
MiddlewareMixin.__call__django/utils/deprecation.py:3094 ms8.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:554 ms8.9%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:344 ms8.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:554 ms8.9%
BaseHandler._get_responsedjango/core/handlers/base.py:1984 ms8.9%
csrf_exempt.<locals>._view_wrapperdjango/views/decorators/csrf.py:654 ms8.9%
mcpapps/mcp/urls.py:1254 ms8.9%
authenticateapps/mcp/urls.py:55 project = Project.objects.filter(secrettokens__token=token).first()2 ms4.5%
QuerySet.firstdjango/db/models/query.py:11452 ms4.5%
QuerySet.__iter__django/db/models/query.py:3902 ms4.5%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms4.5%
ModelIterable.__iter__django/db/models/query.py:952 ms4.5%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms4.5%
CursorWrapper.executedjango/db/backends/utils.py:792 ms4.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms4.5%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms4.5%
Cursor.executepsycopg/cursor.py:1132 ms4.5%
Connection.waitpsycopg/connection.py:4952 ms4.5%
authenticateapps/mcp/urls.py:57 SecretTokens.objects.filter(token=token).update(date_last_used=timezone.now())2 ms4.5%
QuerySet.updatedjango/db/models/query.py:13002 ms4.5%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21112 ms4.5%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms4.5%
CursorWrapper.executedjango/db/backends/utils.py:792 ms4.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms4.5%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms4.5%
Cursor.executepsycopg/cursor.py:1132 ms4.5%
Connection.waitpsycopg/connection.py:4952 ms4.5%
McpTest.test_errorsapps/mcp/tests.py:1714 ms8.9%
McpTest.rpcapps/mcp/tests.py:754 ms8.9%
McpTest.postapps/mcp/tests.py:67 return self.client.post(4 ms8.9%
Client.postdjango/test/client.py:11534 ms8.9%
RequestFactory.postdjango/test/client.py:4994 ms8.9%
RequestFactory.genericdjango/test/client.py:6714 ms8.9%
Client.requestdjango/test/client.py:10824 ms8.9%
ClientHandler.__call__django/test/client.py:1864 ms8.9%
BaseHandler.get_responsedjango/core/handlers/base.py:1414 ms8.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:554 ms8.9%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1304 ms8.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:554 ms8.9%
MiddlewareMixin.__call__django/utils/deprecation.py:3094 ms8.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:554 ms8.9%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:1234 ms8.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:554 ms8.9%
MiddlewareMixin.__call__django/utils/deprecation.py:3094 ms8.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:554 ms8.9%
MiddlewareMixin.__call__django/utils/deprecation.py:3094 ms8.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:554 ms8.9%
MiddlewareMixin.__call__django/utils/deprecation.py:3094 ms8.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:554 ms8.9%
MiddlewareMixin.__call__django/utils/deprecation.py:3094 ms8.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:554 ms8.9%
MiddlewareMixin.__call__django/utils/deprecation.py:3094 ms8.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:554 ms8.9%
MiddlewareMixin.__call__django/utils/deprecation.py:3094 ms8.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:554 ms8.9%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:344 ms8.9%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:554 ms8.9%
BaseHandler._get_responsedjango/core/handlers/base.py:1984 ms8.9%
csrf_exempt.<locals>._view_wrapperdjango/views/decorators/csrf.py:654 ms8.9%
mcpapps/mcp/urls.py:1254 ms8.9%
authenticateapps/mcp/urls.py:55 project = Project.objects.filter(secrettokens__token=token).first()2 ms4.5%
QuerySet.firstdjango/db/models/query.py:11452 ms4.5%
QuerySet.__iter__django/db/models/query.py:3902 ms4.5%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms4.5%
ModelIterable.__iter__django/db/models/query.py:952 ms4.5%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16112 ms4.5%
SQLCompiler.as_sqldjango/db/models/sql/compiler.py:7672 ms4.5%
SQLCompiler.pre_sql_setupdjango/db/models/sql/compiler.py:862 ms4.5%
SQLCompiler.setup_querydjango/db/models/sql/compiler.py:752 ms4.5%
SQLCompiler.get_selectdjango/db/models/sql/compiler.py:3172 ms4.5%
SQLCompiler.compiledjango/db/models/sql/compiler.py:5782 ms4.5%
authenticateapps/mcp/urls.py:57 SecretTokens.objects.filter(token=token).update(date_last_used=timezone.now())2 ms4.5%
QuerySet.updatedjango/db/models/query.py:13002 ms4.5%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21112 ms4.5%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms4.5%
CursorWrapper.executedjango/db/backends/utils.py:792 ms4.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms4.5%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms4.5%
Cursor.executepsycopg/cursor.py:1132 ms4.5%
Connection.waitpsycopg/connection.py:4952 ms4.5%
TransactionTestCase._post_teardowndjango/test/testcases.py:1240 self._fixture_teardown()4 ms8.9%
TestCase._fixture_teardowndjango/test/testcases.py:14942 ms4.5%
TestCase._should_check_constraintsdjango/test/testcases.py:15032 ms4.5%
DatabaseWrapper.is_usabledjango/db/backends/postgresql/base.py:4922 ms4.5%
Cursor.executepsycopg/cursor.py:1132 ms4.5%
Connection.waitpsycopg/connection.py:4952 ms4.5%
TestCase._fixture_teardowndjango/test/testcases.py:14952 ms4.5%
DatabaseWrapper.check_constraintsdjango/db/backends/postgresql/base.py:4842 ms4.5%
CursorWrapper.executedjango/db/backends/utils.py:792 ms4.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms4.5%
CursorWrapper._executedjango/db/backends/utils.py:1032 ms4.5%
Cursor.executepsycopg/cursor.py:1132 ms4.5%
Connection.waitpsycopg/connection.py:4952 ms4.5%
McpTest.test_errorsapps/mcp/tests.py:1742 ms4.5%
McpTest.postapps/mcp/tests.py:67 return self.client.post(2 ms4.5%
Client.postdjango/test/client.py:11532 ms4.5%
RequestFactory.postdjango/test/client.py:4992 ms4.5%
RequestFactory.genericdjango/test/client.py:6712 ms4.5%
Client.requestdjango/test/client.py:10822 ms4.5%
ClientHandler.__call__django/test/client.py:1862 ms4.5%
BaseHandler.get_responsedjango/core/handlers/base.py:1412 ms4.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms4.5%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1302 ms4.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms4.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms4.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms4.5%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:1232 ms4.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms4.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms4.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms4.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms4.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms4.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms4.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms4.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms4.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms4.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms4.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms4.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms4.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms4.5%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:342 ms4.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms4.5%
BaseHandler._get_responsedjango/core/handlers/base.py:1982 ms4.5%
csrf_exempt.<locals>._view_wrapperdjango/views/decorators/csrf.py:652 ms4.5%
mcpapps/mcp/urls.py:1252 ms4.5%
authenticateapps/mcp/urls.py:55 project = Project.objects.filter(secrettokens__token=token).first()2 ms4.5%
QuerySet.firstdjango/db/models/query.py:11452 ms4.5%
QuerySet.__iter__django/db/models/query.py:3902 ms4.5%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms4.5%
ModelIterable.__iter__django/db/models/query.py:952 ms4.5%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms4.5%
CursorWrapper.executedjango/db/backends/utils.py:792 ms4.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms4.5%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms4.5%
Cursor.executepsycopg/cursor.py:1132 ms4.5%
Connection.waitpsycopg/connection.py:4952 ms4.5%
McpTest.test_errorsapps/mcp/tests.py:1782 ms4.5%
McpTest.rpcapps/mcp/tests.py:752 ms4.5%
McpTest.postapps/mcp/tests.py:67 return self.client.post(2 ms4.5%
Client.postdjango/test/client.py:11532 ms4.5%
RequestFactory.postdjango/test/client.py:4992 ms4.5%
RequestFactory.genericdjango/test/client.py:6712 ms4.5%
Client.requestdjango/test/client.py:10822 ms4.5%
ClientHandler.__call__django/test/client.py:1862 ms4.5%
BaseHandler.get_responsedjango/core/handlers/base.py:1412 ms4.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms4.5%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1302 ms4.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms4.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms4.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms4.5%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:1232 ms4.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms4.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms4.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms4.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms4.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms4.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms4.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms4.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms4.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms4.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms4.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms4.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms4.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms4.5%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:342 ms4.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms4.5%
BaseHandler._get_responsedjango/core/handlers/base.py:1982 ms4.5%
csrf_exempt.<locals>._view_wrapperdjango/views/decorators/csrf.py:652 ms4.5%
mcpapps/mcp/urls.py:1252 ms4.5%
authenticateapps/mcp/urls.py:57 SecretTokens.objects.filter(token=token).update(date_last_used=timezone.now())2 ms4.5%
QuerySet.updatedjango/db/models/query.py:13002 ms4.5%
SQLUpdateCompiler.execute_sqldjango/db/models/sql/compiler.py:21112 ms4.5%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms4.5%
CursorWrapper.executedjango/db/backends/utils.py:792 ms4.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms4.5%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms4.5%
Cursor.executepsycopg/cursor.py:1132 ms4.5%
Connection.waitpsycopg/connection.py:4952 ms4.5%
McpTest.test_errorsapps/mcp/tests.py:1802 ms4.5%
McpTest.rpcapps/mcp/tests.py:752 ms4.5%
McpTest.postapps/mcp/tests.py:67 return self.client.post(2 ms4.5%
Client.postdjango/test/client.py:11532 ms4.5%
RequestFactory.postdjango/test/client.py:4992 ms4.5%
RequestFactory.genericdjango/test/client.py:6712 ms4.5%
Client.requestdjango/test/client.py:10822 ms4.5%
ClientHandler.__call__django/test/client.py:1862 ms4.5%
BaseHandler.get_responsedjango/core/handlers/base.py:1412 ms4.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms4.5%
DebugToolbarMiddleware.__call__debug_toolbar/middleware.py:1302 ms4.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms4.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms4.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms4.5%
WhiteNoiseMiddleware.__call__whitenoise/middleware.py:1232 ms4.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms4.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms4.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms4.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms4.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms4.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms4.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms4.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms4.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms4.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms4.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms4.5%
MiddlewareMixin.__call__django/utils/deprecation.py:3092 ms4.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms4.5%
AccountMiddleware.<locals>.middlewareallauth/account/middleware.py:342 ms4.5%
convert_exception_to_response.<locals>.innerdjango/core/handlers/exception.py:552 ms4.5%
BaseHandler._get_responsedjango/core/handlers/base.py:1982 ms4.5%
csrf_exempt.<locals>._view_wrapperdjango/views/decorators/csrf.py:652 ms4.5%
mcpapps/mcp/urls.py:1252 ms4.5%
authenticateapps/mcp/urls.py:55 project = Project.objects.filter(secrettokens__token=token).first()2 ms4.5%
QuerySet.firstdjango/db/models/query.py:11452 ms4.5%
QuerySet.__iter__django/db/models/query.py:3902 ms4.5%
QuerySet._fetch_alldjango/db/models/query.py:20002 ms4.5%
ModelIterable.__iter__django/db/models/query.py:952 ms4.5%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16242 ms4.5%
CursorWrapper.executedjango/db/backends/utils.py:792 ms4.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:922 ms4.5%
CursorWrapper._executedjango/db/backends/utils.py:1052 ms4.5%
Cursor.executepsycopg/cursor.py:1132 ms4.5%
Connection.waitpsycopg/connection.py:4952 ms4.5%
Estimated from 22 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

apps/mcp/tests.py:167
response = self.client.post(
McpTest.test_errors · Libraries
22 ms
apps/mcp/urls.py:55
project = Project.objects.filter(secrettokens__token=token).first()
authenticate · Database
7 ms
apps/mcp/urls.py:57
SecretTokens.objects.filter(token=token).update(date_last_used=timezone.now())
authenticate · Database
5 ms

Fixtures

Exact setup time
_dj_autoclear_mailbox function 0.05 ms
_template_string_if_invalid_marker function 0.03 ms
_django_db_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

19 queries · 6 ms

Repeated queries are usually N+1 lookups: fetch them once with select_related / prefetch_related (or selectinload).

7×
SELECT "projects_project"."id", "projects_project"."organization_id", "projects_project"."name", "projects_project"."slug", "projects_project"."public", "projects_project"."description", "projects_project"."date_created", "projects_project"."date_updated", "projects_project"."created_by_id" FROM "p…
7×
UPDATE "projects_secrettokens" SET "date_last_used" = %s WHERE "projects_secrettokens"."token" = %s

Biggest pieces of work

call test body
apps/mcp/tests.py:167
34 ms
call _post_teardown
django/test/testcases.py:1240
4 ms
call pytest internals 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 40 ms cb18ed3 main Profile
2 weeks, 4 days ago CI github-actions:test passed 53 ms 9bd5864 main Profile
2 weeks, 6 days ago CI github-actions:test passed 27 ms 19dac9b main Profile
3 weeks ago CI github-actions:test passed 44 ms e141198 main Profile
1 month ago CI github-actions:test passed 26 ms 46ec2aa main Profile
1 month ago CI github-actions:test passed 48 ms afde85b main Profile
1 month ago CI github-actions:test passed 40 ms fe29f9d main Profile
1 month ago CI github-actions:test passed 57 ms 044719a main Profile
1 month ago CI github-actions:test passed 27 ms b3fedae main Profile
1 month, 1 week ago CI github-actions:test passed 52 ms 43c4eda main Profile
1 month, 1 week ago CI github-actions:test passed 53 ms 9caa567 main Profile
1 month, 1 week ago CI github-actions:test passed 50 ms ec75501 main Profile
1 month, 1 week ago CI github-actions:test passed 60 ms d2c12e5 main Profile
1 month, 1 week ago CI github-actions:test passed 27 ms 0b902f6 main Profile
1 month, 1 week ago CI github-actions:test passed 52 ms 78a4357 main Profile