Skip to content

test: scope plugin and datasource config overrides - #40854

Open
asukaminato0721 wants to merge 1 commit into
cleanup/test-config-overrides-enterprise-workflowfrom
cleanup/test-config-overrides-plugin-datasource
Open

test: scope plugin and datasource config overrides#40854
asukaminato0721 wants to merge 1 commit into
cleanup/test-config-overrides-enterprise-workflowfrom
cleanup/test-config-overrides-plugin-datasource

Conversation

@asukaminato0721

@asukaminato0721 asukaminato0721 commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

Summary

  • replace whole config mocks across plugin, datasource, MCP, embedding, indexing, and broadcast-channel tests
  • centralize deterministic plugin cache, SSRF proxy, storage, deployment, and Redis-prefix values with typed overrides
  • stop mocking project metadata where protocol tests do not assert it
  • keep daemon, HTTP, Redis, storage, and repository mocks focused on external boundaries

Stack

Tests

  • make lint
  • make test with all 16 changed unit-test modules (528 passed)

From Codex

@dosubot dosubot Bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Aug 17, 2026
@github-actions

github-actions Bot commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

Pyrefly Diff

base → PR
--- /tmp/pyrefly_base.txt	2026-08-17 13:26:03.412517204 +0000
+++ /tmp/pyrefly_pr.txt	2026-08-17 13:25:55.604512487 +0000
@@ -3529,13 +3529,13 @@
 ERROR Object of class `Flask` has no attribute `login_manager` [missing-attribute]
   --> tests/unit_tests/controllers/console/test_workspace_members.py:18:5
 ERROR `SimpleNamespace` is not assignable to attribute `_current_tenant` with type `Tenant | None` [bad-assignment]
-  --> tests/unit_tests/controllers/console/test_workspace_members.py:65:43
+  --> tests/unit_tests/controllers/console/test_workspace_members.py:70:43
 ERROR `SimpleNamespace` is not assignable to attribute `_current_tenant` with type `Tenant | None` [bad-assignment]
-   --> tests/unit_tests/controllers/console/test_workspace_members.py:109:43
+   --> tests/unit_tests/controllers/console/test_workspace_members.py:113:39
 ERROR `SimpleNamespace` is not assignable to attribute `_current_tenant` with type `Tenant | None` [bad-assignment]
-   --> tests/unit_tests/controllers/console/test_workspace_members.py:143:43
+   --> tests/unit_tests/controllers/console/test_workspace_members.py:144:39
 ERROR `SimpleNamespace` is not assignable to attribute `_current_tenant` with type `Tenant | None` [bad-assignment]
-   --> tests/unit_tests/controllers/console/test_workspace_members.py:176:43
+   --> tests/unit_tests/controllers/console/test_workspace_members.py:174:39
 ERROR Type `Response` is not iterable [not-iterable]
    --> tests/unit_tests/controllers/console/test_wraps.py:190:17
 ERROR Argument `Literal['app']` is not assignable to parameter `resource_type` with type `RBACResourceScope` in function `controllers.common.wraps._extract_resource_id` [bad-argument-type]
@@ -5813,15 +5813,15 @@
 ERROR Class member `ConcreteDatasourcePluginProviderController.get_datasource` overrides a member in a parent class but is missing an `@override` decorator [missing-override-decorator]
   --> tests/unit_tests/core/datasource/__base/test_datasource_provider.py:20:9
 ERROR Object of type `ToolInvokeMessage.BlobChunkMessage | ToolInvokeMessage.BlobMessage | ToolInvokeMessage.FileMessage | ToolInvokeMessage.JsonMessage | ToolInvokeMessage.LogMessage | ToolInvokeMessage.RetrieverResourceMessage | ToolInvokeMessage.TextMessage | ToolInvokeMessage.VariableMessage | None` has no attribute `text` [missing-attribute]
-   --> tests/unit_tests/core/datasource/entities/test_datasource_entities.py:272:12
+   --> tests/unit_tests/core/datasource/entities/test_datasource_entities.py:268:12
 ERROR Object of type `ToolInvokeMessage.BlobChunkMessage | ToolInvokeMessage.BlobMessage | ToolInvokeMessage.FileMessage | ToolInvokeMessage.JsonMessage | ToolInvokeMessage.LogMessage | ToolInvokeMessage.RetrieverResourceMessage | ToolInvokeMessage.TextMessage | ToolInvokeMessage.VariableMessage | None` has no attribute `json_object` [missing-attribute]
-   --> tests/unit_tests/core/datasource/entities/test_datasource_entities.py:275:12
+   --> tests/unit_tests/core/datasource/entities/test_datasource_entities.py:271:12
 ERROR Argument `Literal['image']` is not assignable to parameter `type` with type `FileType | SQLCoreOperations[FileType]` in function `models.model.MessageFile.__init__` [bad-argument-type]
   --> tests/unit_tests/core/datasource/test_datasource_file_manager.py:50:14
 ERROR Argument `Literal['remote_url']` is not assignable to parameter `transfer_method` with type `FileTransferMethod | SQLCoreOperations[FileTransferMethod]` in function `models.model.MessageFile.__init__` [bad-argument-type]
   --> tests/unit_tests/core/datasource/test_datasource_file_manager.py:51:25
 ERROR Argument `Generator[Unknown] | None` is not assignable to parameter `iterable` with type `Iterable[Unknown]` in function `list.__init__` [bad-argument-type]
-   --> tests/unit_tests/core/datasource/test_datasource_file_manager.py:326:21
+   --> tests/unit_tests/core/datasource/test_datasource_file_manager.py:323:21
 ERROR Object of class `FunctionType` has no attribute `assert_called_once` [missing-attribute]
   --> tests/unit_tests/core/datasource/test_datasource_manager.py:84:5
 ERROR Argument `SimpleNamespace` is not assignable to parameter `datasource_type` with type `DatasourceProviderType` in function `core.datasource.datasource_manager.DatasourceManager.get_datasource_plugin_provider` [bad-argument-type]
@@ -5985,9 +5985,9 @@
 ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AppMCPServerStatus | SQLCoreOperations[AppMCPServerStatus]` in function `models.model.AppMCPServer.__init__` [bad-argument-type]
   --> tests/unit_tests/core/mcp/server/test_streamable_http.py:42:20
 ERROR Object of type `AudioContent | EmbeddedResource | ImageContent | ResourceLink | TextContent` has no attribute `text` [missing-attribute]
-   --> tests/unit_tests/core/mcp/server/test_streamable_http.py:391:16
+   --> tests/unit_tests/core/mcp/server/test_streamable_http.py:381:16
 ERROR Object of type `AudioContent | EmbeddedResource | ImageContent | ResourceLink | TextContent` has no attribute `text` [missing-attribute]
-   --> tests/unit_tests/core/mcp/server/test_streamable_http.py:411:16
+   --> tests/unit_tests/core/mcp/server/test_streamable_http.py:401:16
 ERROR `MockNotificationParams` is not assignable to upper bound `NotificationParams | dict[str, Any] | None` of type variable `NotificationParamsT` [bad-specialization]
   --> tests/unit_tests/core/mcp/session/test_base_session.py:51:24
 ERROR `MockRequest` is not assignable to upper bound `ClientRequest | ServerRequest` of type variable `SendRequestT` [bad-specialization]
@@ -8205,7 +8205,7 @@
 ERROR Cannot index into `Mapping[str, object]` [bad-index]
    --> tests/unit_tests/extensions/test_ext_request_logging.py:230:43
 ERROR Object of class `Retry` has no attribute `_retries` [missing-attribute]
-  --> tests/unit_tests/extensions/test_redis.py:34:16
+  --> tests/unit_tests/extensions/test_redis.py:49:16
 ERROR Argument `Flask` is not assignable to parameter `app` with type `DifyApp` in function `extensions.ext_set_secretkey.init_app` [bad-argument-type]
   --> tests/unit_tests/extensions/test_set_secretkey.py:33:32
 ERROR Argument `Flask` is not assignable to parameter `app` with type `DifyApp` in function `extensions.ext_set_secretkey.init_app` [bad-argument-type]
@@ -8233,49 +8233,49 @@
 ERROR `<=` is not supported between `None` and `datetime` [unsupported-operation]
    --> tests/unit_tests/libs/_human_input/test_models.py:121:16
 ERROR Object of class `Subscription` has no attribute `_start_if_needed` [missing-attribute]
-   --> tests/unit_tests/libs/broadcast_channel/redis/test_channel_unit_tests.py:156:17
+   --> tests/unit_tests/libs/broadcast_channel/redis/test_channel_unit_tests.py:152:13
 ERROR Object of class `Subscription` has no attribute `_start_if_needed` [missing-attribute]
-   --> tests/unit_tests/libs/broadcast_channel/redis/test_channel_unit_tests.py:224:17
+   --> tests/unit_tests/libs/broadcast_channel/redis/test_channel_unit_tests.py:216:13
 ERROR Argument `FakeRedisClient` is not assignable to parameter `client` with type `Redis[Unknown] | RedisCluster[Unknown]` in function `libs.broadcast_channel.redis._subscription.RedisSubscriptionBase.__init__` [bad-argument-type]
-   --> tests/unit_tests/libs/broadcast_channel/redis/test_channel_unit_tests.py:703:20
+   --> tests/unit_tests/libs/broadcast_channel/redis/test_channel_unit_tests.py:695:20
 ERROR Argument `FakeRedisClient` is not assignable to parameter `client` with type `Redis[Unknown] | RedisCluster[Unknown]` in function `libs.broadcast_channel.redis._subscription.RedisSubscriptionBase.__init__` [bad-argument-type]
-   --> tests/unit_tests/libs/broadcast_channel/redis/test_channel_unit_tests.py:723:20
+   --> tests/unit_tests/libs/broadcast_channel/redis/test_channel_unit_tests.py:715:20
 ERROR Argument `TestRedisShardedSubscription.test_get_message_uses_target_node_for_cluster_client.DummyRedisCluster` is not assignable to parameter `client` with type `Redis[Unknown] | RedisCluster[Unknown]` in function `libs.broadcast_channel.redis._subscription.RedisSubscriptionBase.__init__` [bad-argument-type]
-   --> tests/unit_tests/libs/broadcast_channel/redis/test_channel_unit_tests.py:908:20
+   --> tests/unit_tests/libs/broadcast_channel/redis/test_channel_unit_tests.py:900:20
 ERROR Argument `FakeRedisClient` is not assignable to parameter `client` with type `Redis[Unknown] | RedisCluster[Unknown]` in function `libs.broadcast_channel.redis._subscription.RedisSubscriptionBase.__init__` [bad-argument-type]
-    --> tests/unit_tests/libs/broadcast_channel/redis/test_channel_unit_tests.py:1038:20
+    --> tests/unit_tests/libs/broadcast_channel/redis/test_channel_unit_tests.py:1030:20
 ERROR Argument `FakeRedisClient` is not assignable to parameter `client` with type `Redis[Unknown] | RedisCluster[Unknown]` in function `libs.broadcast_channel.redis._subscription.RedisSubscriptionBase.__init__` [bad-argument-type]
-    --> tests/unit_tests/libs/broadcast_channel/redis/test_channel_unit_tests.py:1135:24
+    --> tests/unit_tests/libs/broadcast_channel/redis/test_channel_unit_tests.py:1127:24
 ERROR Class member `FailExpireRedis.expire` overrides a member in a parent class but is missing an `@override` decorator [missing-override-decorator]
-  --> tests/unit_tests/libs/broadcast_channel/redis/test_streams_channel_unit_tests.py:76:9
+  --> tests/unit_tests/libs/broadcast_channel/redis/test_streams_channel_unit_tests.py:75:9
 ERROR Argument `FakeStreamsRedis` is not assignable to parameter `redis_client` with type `Redis[Unknown] | RedisCluster[Unknown]` in function `libs.broadcast_channel.redis.streams_channel.StreamsBroadcastChannel.__init__` [bad-argument-type]
-   --> tests/unit_tests/libs/broadcast_channel/redis/test_streams_channel_unit_tests.py:148:36
+   --> tests/unit_tests/libs/broadcast_channel/redis/test_streams_channel_unit_tests.py:147:36
 ERROR Argument `FakeStreamsRedis` is not assignable to parameter `redis_client` with type `Redis[Unknown] | RedisCluster[Unknown]` in function `libs.broadcast_channel.redis.streams_channel.StreamsBroadcastChannel.__init__` [bad-argument-type]
-   --> tests/unit_tests/libs/broadcast_channel/redis/test_streams_channel_unit_tests.py:176:45
+   --> tests/unit_tests/libs/broadcast_channel/redis/test_streams_channel_unit_tests.py:173:41
 ERROR Argument `FakeStreamsRedis` is not assignable to parameter `redis_client` with type `Redis[Unknown] | RedisCluster[Unknown]` in function `libs.broadcast_channel.redis.streams_channel.StreamsBroadcastChannel.__init__` [bad-argument-type]
-   --> tests/unit_tests/libs/broadcast_channel/redis/test_streams_channel_unit_tests.py:184:45
+   --> tests/unit_tests/libs/broadcast_channel/redis/test_streams_channel_unit_tests.py:180:41
 ERROR Argument `FailExpireRedis` is not assignable to parameter `redis_client` with type `Redis[Unknown] | RedisCluster[Unknown]` in function `libs.broadcast_channel.redis.streams_channel.StreamsBroadcastChannel.__init__` [bad-argument-type]
-   --> tests/unit_tests/libs/broadcast_channel/redis/test_streams_channel_unit_tests.py:198:43
+   --> tests/unit_tests/libs/broadcast_channel/redis/test_streams_channel_unit_tests.py:193:43
 ERROR Argument `FakeStreamsRedis` is not assignable to parameter `redis_client` with type `Redis[Unknown] | RedisCluster[Unknown]` in function `libs.broadcast_channel.redis.streams_channel.StreamsBroadcastChannel.__init__` [bad-argument-type]
-   --> tests/unit_tests/libs/broadcast_channel/redis/test_streams_channel_unit_tests.py:249:43
+   --> tests/unit_tests/libs/broadcast_channel/redis/test_streams_channel_unit_tests.py:244:43
 ERROR Argument `TestStreamsSubscription.test_listener_normalizes_supported_payloads_and_ignores_unsupported_shapes.OneShotRedis` is not assignable to parameter `client` with type `Redis[Unknown] | RedisCluster[Unknown]` in function `libs.broadcast_channel.redis.streams_channel._StreamsSubscription.__init__` [bad-argument-type]
-   --> tests/unit_tests/libs/broadcast_channel/redis/test_streams_channel_unit_tests.py:274:45
+   --> tests/unit_tests/libs/broadcast_channel/redis/test_streams_channel_unit_tests.py:269:45
 ERROR Argument `object` is not assignable to parameter `o` with type `Buffer | Iterable[SupportsIndex] | SupportsBytes | SupportsIndex` in function `bytes.__new__` [bad-argument-type]
-   --> tests/unit_tests/libs/broadcast_channel/redis/test_streams_channel_unit_tests.py:282:35
+   --> tests/unit_tests/libs/broadcast_channel/redis/test_streams_channel_unit_tests.py:277:35
 ERROR Argument `TestStreamsSubscription.test_listener_ignores_close_signal_from_another_subscription.OneShotRedis` is not assignable to parameter `client` with type `Redis[Unknown] | RedisCluster[Unknown]` in function `libs.broadcast_channel.redis.streams_channel._StreamsSubscription.__init__` [bad-argument-type]
-   --> tests/unit_tests/libs/broadcast_channel/redis/test_streams_channel_unit_tests.py:307:45
+   --> tests/unit_tests/libs/broadcast_channel/redis/test_streams_channel_unit_tests.py:302:45
 ERROR Argument `FakeStreamsRedis` is not assignable to parameter `client` with type `Redis[Unknown] | RedisCluster[Unknown]` in function `libs.broadcast_channel.redis.streams_channel._StreamsSubscription.__init__` [bad-argument-type]
-   --> tests/unit_tests/libs/broadcast_channel/redis/test_streams_channel_unit_tests.py:351:45
+   --> tests/unit_tests/libs/broadcast_channel/redis/test_streams_channel_unit_tests.py:346:45
 ERROR Argument `FakeStreamsRedis` is not assignable to parameter `client` with type `Redis[Unknown] | RedisCluster[Unknown]` in function `libs.broadcast_channel.redis.streams_channel._StreamsSubscription.__init__` [bad-argument-type]
-   --> tests/unit_tests/libs/broadcast_channel/redis/test_streams_channel_unit_tests.py:359:45
+   --> tests/unit_tests/libs/broadcast_channel/redis/test_streams_channel_unit_tests.py:354:45
 ERROR Argument `FakeStreamsRedis` is not assignable to parameter `client` with type `Redis[Unknown] | RedisCluster[Unknown]` in function `libs.broadcast_channel.redis.streams_channel._StreamsSubscription.__init__` [bad-argument-type]
-   --> tests/unit_tests/libs/broadcast_channel/redis/test_streams_channel_unit_tests.py:368:45
+   --> tests/unit_tests/libs/broadcast_channel/redis/test_streams_channel_unit_tests.py:363:45
 ERROR Argument `FakeStreamsRedis` is not assignable to parameter `client` with type `Redis[Unknown] | RedisCluster[Unknown]` in function `libs.broadcast_channel.redis.streams_channel._StreamsSubscription.__init__` [bad-argument-type]
-   --> tests/unit_tests/libs/broadcast_channel/redis/test_streams_channel_unit_tests.py:376:45
+   --> tests/unit_tests/libs/broadcast_channel/redis/test_streams_channel_unit_tests.py:371:45
 ERROR Argument `BlockingRedis` is not assignable to parameter `client` with type `Redis[Unknown] | RedisCluster[Unknown]` in function `libs.broadcast_channel.redis.streams_channel._StreamsSubscription.__init__` [bad-argument-type]
-   --> tests/unit_tests/libs/broadcast_channel/redis/test_streams_channel_unit_tests.py:396:45
+   --> tests/unit_tests/libs/broadcast_channel/redis/test_streams_channel_unit_tests.py:391:45
 ERROR Argument `FakeStreamsRedis` is not assignable to parameter `client` with type `Redis[Unknown] | RedisCluster[Unknown]` in function `libs.broadcast_channel.redis.streams_channel._StreamsSubscription.__init__` [bad-argument-type]
-   --> tests/unit_tests/libs/broadcast_channel/redis/test_streams_channel_unit_tests.py:414:45
+   --> tests/unit_tests/libs/broadcast_channel/redis/test_streams_channel_unit_tests.py:409:45
 ERROR Class member `TestCronCompatibility.setUp` overrides a member in a parent class but is missing an `@override` decorator [missing-override-decorator]
   --> tests/unit_tests/libs/test_cron_compatibility.py:21:9
 ERROR Class member `TestTimezoneCompatibility.setUp` overrides a member in a parent class but is missing an `@override` decorator [missing-override-decorator]
@@ -8639,11 +8639,11 @@
 ERROR Object of class `FromClause` has no attribute `create` [missing-attribute]
   --> tests/unit_tests/services/plugin/test_plugin_service_installation.py:53:13
 ERROR Object of class `NoneType` has no attribute `version` [missing-attribute]
-  --> tests/unit_tests/services/plugin/test_plugin_service_installation.py:74:16
+  --> tests/unit_tests/services/plugin/test_plugin_service_installation.py:83:16
 ERROR Object of class `NoneType` has no attribute `version` [missing-attribute]
-  --> tests/unit_tests/services/plugin/test_plugin_service_installation.py:92:16
+   --> tests/unit_tests/services/plugin/test_plugin_service_installation.py:101:16
 ERROR Object of class `NoneType` has no attribute `credential_id` [missing-attribute]
-   --> tests/unit_tests/services/plugin/test_plugin_service_installation.py:589:16
+   --> tests/unit_tests/services/plugin/test_plugin_service_installation.py:568:16
 ERROR Class member `DummyRetrieval.get_pipeline_templates` overrides parent class `PipelineTemplateRetrievalBase` in an inconsistent manner [bad-override]
  --> tests/unit_tests/services/rag_pipeline/pipeline_template/test_pipeline_template_base.py:8:9
 ERROR Class member `DummyRetrieval.get_pipeline_templates` overrides a member in a parent class but is missing an `@override` decorator [missing-override-decorator]
@@ -8767,9 +8767,9 @@
 ERROR No matching overload found for function `typing.MutableMapping.update` called with arguments: (dict[str, object]) [no-matching-overload]
   --> tests/unit_tests/services/rag_pipeline/test_rag_pipeline_transform_service.py:46:18
 ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/recommend_app/test_remote_retrieval.py:156:16
+   --> tests/unit_tests/services/recommend_app/test_remote_retrieval.py:158:16
 ERROR `not in` is not supported between `Literal['categories']` and `None` [not-iterable]
-   --> tests/unit_tests/services/recommend_app/test_remote_retrieval.py:177:16
+   --> tests/unit_tests/services/recommend_app/test_remote_retrieval.py:175:16
 ERROR Argument `dict[str, dict[str, int | str]]` is not assignable to parameter `tables` with type `dict[str, ArchiveBundleTableManifestEntry]` in function `services.retention.workflow_run.archive_bundle_index.ArchiveBundleManifest.__init__` [bad-argument-type]
    --> tests/unit_tests/services/retention/workflow_run/test_archive_download_preparation.py:137:16
 ERROR Cannot index into `dict[str, bytes]` [bad-index]
@@ -9747,19 +9747,19 @@
 ERROR Object of type `ToolInvokeMessage.BlobChunkMessage | ToolInvokeMessage.BlobMessage | ToolInvokeMessage.FileMessage | ToolInvokeMessage.JsonMessage | ToolInvokeMessage.LogMessage | ToolInvokeMessage.RetrieverResourceMessage | ToolInvokeMessage.TextMessage | ToolInvokeMessage.VariableMessage | None` has no attribute `variable_value` [missing-attribute]
    --> tests/unit_tests/tools/test_mcp_tool.py:135:44
 ERROR Argument `None` is not assignable to parameter `params` with type `Mapping[str, Any]` in function `core.tools.utils.system_encryption.SystemEncrypter.encrypt_params` [bad-argument-type]
-   --> tests/unit_tests/utils/encryption/test_system_encryption.py:119:38
+   --> tests/unit_tests/utils/encryption/test_system_encryption.py:117:38
 ERROR Argument `Literal['not_a_dict']` is not assignable to parameter `params` with type `Mapping[str, Any]` in function `core.tools.utils.system_encryption.SystemEncrypter.encrypt_params` [bad-argument-type]
-   --> tests/unit_tests/utils/encryption/test_system_encryption.py:122:38
+   --> tests/unit_tests/utils/encryption/test_system_encryption.py:120:38
 ERROR Argument `Literal[123]` is not assignable to parameter `encrypted_data` with type `str` in function `core.tools.utils.system_encryption.SystemEncrypter.decrypt_params` [bad-argument-type]
-   --> tests/unit_tests/utils/encryption/test_system_encryption.py:210:38
+   --> tests/unit_tests/utils/encryption/test_system_encryption.py:208:38
 ERROR Argument `None` is not assignable to parameter `encrypted_data` with type `str` in function `core.tools.utils.system_encryption.SystemEncrypter.decrypt_params` [bad-argument-type]
-   --> tests/unit_tests/utils/encryption/test_system_encryption.py:215:38
+   --> tests/unit_tests/utils/encryption/test_system_encryption.py:213:38
 ERROR Argument `None` is not assignable to parameter `params` with type `Mapping[str, Any]` in function `core.tools.utils.system_encryption.encrypt_system_params` [bad-argument-type]
-   --> tests/unit_tests/utils/encryption/test_system_encryption.py:464:35
+   --> tests/unit_tests/utils/encryption/test_system_encryption.py:459:35
 ERROR Argument `None` is not assignable to parameter `encrypted_data` with type `str` in function `core.tools.utils.system_encryption.decrypt_system_params` [bad-argument-type]
-   --> tests/unit_tests/utils/encryption/test_system_encryption.py:471:35
+   --> tests/unit_tests/utils/encryption/test_system_encryption.py:466:35
 ERROR Argument `Literal[123]` is not assignable to parameter `encrypted_data` with type `str` in function `core.tools.utils.system_encryption.SystemEncrypter.decrypt_params` [bad-argument-type]
-   --> tests/unit_tests/utils/encryption/test_system_encryption.py:504:38
+   --> tests/unit_tests/utils/encryption/test_system_encryption.py:499:38
 ERROR Argument `type[LLMResultWithStructuredOutput] | type[OutputParserError] | LLMResult | bool | dict[str, str | dict[str, dict[str, str]]] | list[LLMResultChunk] | list[MagicMock] | str | None` is not assignable to parameter `provider` with type `str` in function `get_model_entity` [bad-argument-type]
    --> tests/unit_tests/utils/structured_output_parser/test_structured_output_parser.py:283:41
 ERROR Argument `type[LLMResultWithStructuredOutput] | type[OutputParserError] | LLMResult | bool | dict[str, str | dict[str, dict[str, str]]] | list[LLMResultChunk] | list[MagicMock] | str | None` is not assignable to parameter `model_name` with type `str` in function `get_model_entity` [bad-argument-type]

@github-actions

github-actions Bot commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

Pyrefly Type Coverage

Metric Base PR Delta
Type coverage 59.35% 59.31% -0.04%
Strict coverage 58.93% 58.90% -0.04%
Typed symbols 39,611 39,606 -5
Untyped symbols 27,323 27,360 +37
Modules 3174 3174 0

@codecov

codecov Bot commented Aug 17, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.74%. Comparing base (b5f0300) to head (bb4878d).

Additional details and impacted files
@@                                  Coverage Diff                                  @@
##           cleanup/test-config-overrides-enterprise-workflow   #40854      +/-   ##
=====================================================================================
- Coverage                                              86.75%   86.74%   -0.01%     
=====================================================================================
  Files                                                   5203     5203              
  Lines                                                 292457   292457              
  Branches                                               58180    58180              
=====================================================================================
- Hits                                                  253708   253704       -4     
- Misses                                                 33749    33754       +5     
+ Partials                                                5000     4999       -1     
Flag Coverage Δ
api 86.76% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@asukaminato0721
asukaminato0721 force-pushed the cleanup/test-config-overrides-plugin-datasource branch from 98d351a to bb4878d Compare August 17, 2026 05:48
@dosubot dosubot Bot added the lgtm This PR has been approved by a maintainer label Aug 17, 2026
41tair
41tair previously approved these changes Aug 17, 2026
@asukaminato0721
asukaminato0721 force-pushed the cleanup/test-config-overrides-plugin-datasource branch from bb4878d to 5519a14 Compare August 17, 2026 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm This PR has been approved by a maintainer size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants