test: migrate web wraps controller tests to testcontainers#34289
Merged
asukaminato0721 merged 5 commits intolanggenius:mainfrom Mar 30, 2026
Merged
Conversation
Contributor
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-03-30 14:20:23.772630171 +0000
+++ /tmp/pyrefly_pr.txt 2026-03-30 14:20:13.368642696 +0000
@@ -668,6 +668,20 @@
--> tests/test_containers_integration_tests/controllers/console/auth/test_oauth.py:197:9
ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
--> tests/test_containers_integration_tests/controllers/console/helpers.py:40:48
+ERROR Argument `SimpleNamespace` is not assignable to parameter `webapp_settings` with type `WebAppSettings | None` in function `controllers.web.wraps._validate_user_accessibility` [bad-argument-type]
+ --> tests/test_containers_integration_tests/controllers/web/test_wraps.py:72:33
+ERROR Argument `SimpleNamespace` is not assignable to parameter `webapp_settings` with type `WebAppSettings | None` in function `controllers.web.wraps._validate_user_accessibility` [bad-argument-type]
+ --> tests/test_containers_integration_tests/controllers/web/test_wraps.py:95:33
+ERROR Argument `SimpleNamespace` is not assignable to parameter `webapp_settings` with type `WebAppSettings | None` in function `controllers.web.wraps._validate_user_accessibility` [bad-argument-type]
+ --> tests/test_containers_integration_tests/controllers/web/test_wraps.py:107:33
+ERROR Argument `SimpleNamespace` is not assignable to parameter `webapp_settings` with type `WebAppSettings | None` in function `controllers.web.wraps._validate_user_accessibility` [bad-argument-type]
+ --> tests/test_containers_integration_tests/controllers/web/test_wraps.py:125:33
+ERROR Argument `SimpleNamespace` is not assignable to parameter `webapp_settings` with type `WebAppSettings | None` in function `controllers.web.wraps._validate_user_accessibility` [bad-argument-type]
+ --> tests/test_containers_integration_tests/controllers/web/test_wraps.py:143:33
+ERROR Argument `SimpleNamespace` is not assignable to parameter `webapp_settings` with type `WebAppSettings | None` in function `controllers.web.wraps._validate_user_accessibility` [bad-argument-type]
+ --> tests/test_containers_integration_tests/controllers/web/test_wraps.py:160:29
+ERROR Argument `SimpleNamespace` is not assignable to parameter `webapp_settings` with type `WebAppSettings | None` in function `controllers.web.wraps._validate_user_accessibility` [bad-argument-type]
+ --> tests/test_containers_integration_tests/controllers/web/test_wraps.py:177:33
ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
--> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:95:20
ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
@@ -2298,20 +2312,6 @@
--> tests/unit_tests/controllers/web/test_workflow_events.py:125:48
ERROR Argument `SimpleNamespace` is not assignable to parameter `end_user` with type `EndUser` in function `controllers.web.workflow_events.WorkflowEventsApi.get` [bad-argument-type]
--> tests/unit_tests/controllers/web/test_workflow_events.py:125:65
-ERROR Argument `SimpleNamespace` is not assignable to parameter `webapp_settings` with type `WebAppSettings | None` in function `controllers.web.wraps._validate_user_accessibility` [bad-argument-type]
- --> tests/unit_tests/controllers/web/test_wraps.py:83:33
-ERROR Argument `SimpleNamespace` is not assignable to parameter `webapp_settings` with type `WebAppSettings | None` in function `controllers.web.wraps._validate_user_accessibility` [bad-argument-type]
- --> tests/unit_tests/controllers/web/test_wraps.py:106:33
-ERROR Argument `SimpleNamespace` is not assignable to parameter `webapp_settings` with type `WebAppSettings | None` in function `controllers.web.wraps._validate_user_accessibility` [bad-argument-type]
- --> tests/unit_tests/controllers/web/test_wraps.py:118:33
-ERROR Argument `SimpleNamespace` is not assignable to parameter `webapp_settings` with type `WebAppSettings | None` in function `controllers.web.wraps._validate_user_accessibility` [bad-argument-type]
- --> tests/unit_tests/controllers/web/test_wraps.py:137:33
-ERROR Argument `SimpleNamespace` is not assignable to parameter `webapp_settings` with type `WebAppSettings | None` in function `controllers.web.wraps._validate_user_accessibility` [bad-argument-type]
- --> tests/unit_tests/controllers/web/test_wraps.py:155:33
-ERROR Argument `SimpleNamespace` is not assignable to parameter `webapp_settings` with type `WebAppSettings | None` in function `controllers.web.wraps._validate_user_accessibility` [bad-argument-type]
- --> tests/unit_tests/controllers/web/test_wraps.py:173:29
-ERROR Argument `SimpleNamespace` is not assignable to parameter `webapp_settings` with type `WebAppSettings | None` in function `controllers.web.wraps._validate_user_accessibility` [bad-argument-type]
- --> tests/unit_tests/controllers/web/test_wraps.py:190:33
ERROR Argument `list[Unknown]` is not assignable to parameter `llm_response` with type `Generator[LLMResultChunk]` in function `core.agent.output_parser.cot_output_parser.CotAgentOutputParser.handle_react_stream_output` [bad-argument-type]
--> tests/unit_tests/core/agent/output_parser/test_cot_output_parser.py:67:71
ERROR No matching overload found for function `str.join` called with arguments: (list[AgentScratchpadUnit.Action | str]) [no-matching-overload]
|
Contributor
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-03-30 14:22:26.722367727 +0000
+++ /tmp/pyrefly_pr.txt 2026-03-30 14:22:15.020442746 +0000
@@ -668,6 +668,20 @@
--> tests/test_containers_integration_tests/controllers/console/auth/test_oauth.py:197:9
ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
--> tests/test_containers_integration_tests/controllers/console/helpers.py:40:48
+ERROR Argument `SimpleNamespace` is not assignable to parameter `webapp_settings` with type `WebAppSettings | None` in function `controllers.web.wraps._validate_user_accessibility` [bad-argument-type]
+ --> tests/test_containers_integration_tests/controllers/web/test_wraps.py:72:33
+ERROR Argument `SimpleNamespace` is not assignable to parameter `webapp_settings` with type `WebAppSettings | None` in function `controllers.web.wraps._validate_user_accessibility` [bad-argument-type]
+ --> tests/test_containers_integration_tests/controllers/web/test_wraps.py:95:33
+ERROR Argument `SimpleNamespace` is not assignable to parameter `webapp_settings` with type `WebAppSettings | None` in function `controllers.web.wraps._validate_user_accessibility` [bad-argument-type]
+ --> tests/test_containers_integration_tests/controllers/web/test_wraps.py:107:33
+ERROR Argument `SimpleNamespace` is not assignable to parameter `webapp_settings` with type `WebAppSettings | None` in function `controllers.web.wraps._validate_user_accessibility` [bad-argument-type]
+ --> tests/test_containers_integration_tests/controllers/web/test_wraps.py:125:33
+ERROR Argument `SimpleNamespace` is not assignable to parameter `webapp_settings` with type `WebAppSettings | None` in function `controllers.web.wraps._validate_user_accessibility` [bad-argument-type]
+ --> tests/test_containers_integration_tests/controllers/web/test_wraps.py:143:33
+ERROR Argument `SimpleNamespace` is not assignable to parameter `webapp_settings` with type `WebAppSettings | None` in function `controllers.web.wraps._validate_user_accessibility` [bad-argument-type]
+ --> tests/test_containers_integration_tests/controllers/web/test_wraps.py:160:29
+ERROR Argument `SimpleNamespace` is not assignable to parameter `webapp_settings` with type `WebAppSettings | None` in function `controllers.web.wraps._validate_user_accessibility` [bad-argument-type]
+ --> tests/test_containers_integration_tests/controllers/web/test_wraps.py:177:33
ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
--> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:95:20
ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
@@ -2298,20 +2312,6 @@
--> tests/unit_tests/controllers/web/test_workflow_events.py:125:48
ERROR Argument `SimpleNamespace` is not assignable to parameter `end_user` with type `EndUser` in function `controllers.web.workflow_events.WorkflowEventsApi.get` [bad-argument-type]
--> tests/unit_tests/controllers/web/test_workflow_events.py:125:65
-ERROR Argument `SimpleNamespace` is not assignable to parameter `webapp_settings` with type `WebAppSettings | None` in function `controllers.web.wraps._validate_user_accessibility` [bad-argument-type]
- --> tests/unit_tests/controllers/web/test_wraps.py:83:33
-ERROR Argument `SimpleNamespace` is not assignable to parameter `webapp_settings` with type `WebAppSettings | None` in function `controllers.web.wraps._validate_user_accessibility` [bad-argument-type]
- --> tests/unit_tests/controllers/web/test_wraps.py:106:33
-ERROR Argument `SimpleNamespace` is not assignable to parameter `webapp_settings` with type `WebAppSettings | None` in function `controllers.web.wraps._validate_user_accessibility` [bad-argument-type]
- --> tests/unit_tests/controllers/web/test_wraps.py:118:33
-ERROR Argument `SimpleNamespace` is not assignable to parameter `webapp_settings` with type `WebAppSettings | None` in function `controllers.web.wraps._validate_user_accessibility` [bad-argument-type]
- --> tests/unit_tests/controllers/web/test_wraps.py:137:33
-ERROR Argument `SimpleNamespace` is not assignable to parameter `webapp_settings` with type `WebAppSettings | None` in function `controllers.web.wraps._validate_user_accessibility` [bad-argument-type]
- --> tests/unit_tests/controllers/web/test_wraps.py:155:33
-ERROR Argument `SimpleNamespace` is not assignable to parameter `webapp_settings` with type `WebAppSettings | None` in function `controllers.web.wraps._validate_user_accessibility` [bad-argument-type]
- --> tests/unit_tests/controllers/web/test_wraps.py:173:29
-ERROR Argument `SimpleNamespace` is not assignable to parameter `webapp_settings` with type `WebAppSettings | None` in function `controllers.web.wraps._validate_user_accessibility` [bad-argument-type]
- --> tests/unit_tests/controllers/web/test_wraps.py:190:33
ERROR Argument `list[Unknown]` is not assignable to parameter `llm_response` with type `Generator[LLMResultChunk]` in function `core.agent.output_parser.cot_output_parser.CotAgentOutputParser.handle_react_stream_output` [bad-argument-type]
--> tests/unit_tests/core/agent/output_parser/test_cot_output_parser.py:67:71
ERROR No matching overload found for function `str.join` called with arguments: (list[AgentScratchpadUnit.Action | str]) [no-matching-overload]
|
asukaminato0721
requested changes
Mar 30, 2026
Contributor
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-03-30 15:22:09.733977734 +0000
+++ /tmp/pyrefly_pr.txt 2026-03-30 15:21:58.472791852 +0000
@@ -670,6 +670,20 @@
--> tests/test_containers_integration_tests/controllers/console/auth/test_oauth.py:197:9
ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
--> tests/test_containers_integration_tests/controllers/console/helpers.py:40:48
+ERROR Argument `SimpleNamespace` is not assignable to parameter `webapp_settings` with type `WebAppSettings | None` in function `controllers.web.wraps._validate_user_accessibility` [bad-argument-type]
+ --> tests/test_containers_integration_tests/controllers/web/test_wraps.py:74:33
+ERROR Argument `SimpleNamespace` is not assignable to parameter `webapp_settings` with type `WebAppSettings | None` in function `controllers.web.wraps._validate_user_accessibility` [bad-argument-type]
+ --> tests/test_containers_integration_tests/controllers/web/test_wraps.py:97:33
+ERROR Argument `SimpleNamespace` is not assignable to parameter `webapp_settings` with type `WebAppSettings | None` in function `controllers.web.wraps._validate_user_accessibility` [bad-argument-type]
+ --> tests/test_containers_integration_tests/controllers/web/test_wraps.py:109:33
+ERROR Argument `SimpleNamespace` is not assignable to parameter `webapp_settings` with type `WebAppSettings | None` in function `controllers.web.wraps._validate_user_accessibility` [bad-argument-type]
+ --> tests/test_containers_integration_tests/controllers/web/test_wraps.py:127:33
+ERROR Argument `SimpleNamespace` is not assignable to parameter `webapp_settings` with type `WebAppSettings | None` in function `controllers.web.wraps._validate_user_accessibility` [bad-argument-type]
+ --> tests/test_containers_integration_tests/controllers/web/test_wraps.py:145:33
+ERROR Argument `SimpleNamespace` is not assignable to parameter `webapp_settings` with type `WebAppSettings | None` in function `controllers.web.wraps._validate_user_accessibility` [bad-argument-type]
+ --> tests/test_containers_integration_tests/controllers/web/test_wraps.py:162:29
+ERROR Argument `SimpleNamespace` is not assignable to parameter `webapp_settings` with type `WebAppSettings | None` in function `controllers.web.wraps._validate_user_accessibility` [bad-argument-type]
+ --> tests/test_containers_integration_tests/controllers/web/test_wraps.py:179:33
ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
--> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:95:20
ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
@@ -2298,20 +2312,6 @@
--> tests/unit_tests/controllers/web/test_workflow_events.py:125:48
ERROR Argument `SimpleNamespace` is not assignable to parameter `end_user` with type `EndUser` in function `controllers.web.workflow_events.WorkflowEventsApi.get` [bad-argument-type]
--> tests/unit_tests/controllers/web/test_workflow_events.py:125:65
-ERROR Argument `SimpleNamespace` is not assignable to parameter `webapp_settings` with type `WebAppSettings | None` in function `controllers.web.wraps._validate_user_accessibility` [bad-argument-type]
- --> tests/unit_tests/controllers/web/test_wraps.py:83:33
-ERROR Argument `SimpleNamespace` is not assignable to parameter `webapp_settings` with type `WebAppSettings | None` in function `controllers.web.wraps._validate_user_accessibility` [bad-argument-type]
- --> tests/unit_tests/controllers/web/test_wraps.py:106:33
-ERROR Argument `SimpleNamespace` is not assignable to parameter `webapp_settings` with type `WebAppSettings | None` in function `controllers.web.wraps._validate_user_accessibility` [bad-argument-type]
- --> tests/unit_tests/controllers/web/test_wraps.py:118:33
-ERROR Argument `SimpleNamespace` is not assignable to parameter `webapp_settings` with type `WebAppSettings | None` in function `controllers.web.wraps._validate_user_accessibility` [bad-argument-type]
- --> tests/unit_tests/controllers/web/test_wraps.py:137:33
-ERROR Argument `SimpleNamespace` is not assignable to parameter `webapp_settings` with type `WebAppSettings | None` in function `controllers.web.wraps._validate_user_accessibility` [bad-argument-type]
- --> tests/unit_tests/controllers/web/test_wraps.py:155:33
-ERROR Argument `SimpleNamespace` is not assignable to parameter `webapp_settings` with type `WebAppSettings | None` in function `controllers.web.wraps._validate_user_accessibility` [bad-argument-type]
- --> tests/unit_tests/controllers/web/test_wraps.py:173:29
-ERROR Argument `SimpleNamespace` is not assignable to parameter `webapp_settings` with type `WebAppSettings | None` in function `controllers.web.wraps._validate_user_accessibility` [bad-argument-type]
- --> tests/unit_tests/controllers/web/test_wraps.py:190:33
ERROR Argument `list[Unknown]` is not assignable to parameter `llm_response` with type `Generator[LLMResultChunk]` in function `core.agent.output_parser.cot_output_parser.CotAgentOutputParser.handle_react_stream_output` [bad-argument-type]
--> tests/unit_tests/core/agent/output_parser/test_cot_output_parser.py:67:71
ERROR No matching overload found for function `str.join` called with arguments: (list[AgentScratchpadUnit.Action | str]) [no-matching-overload]
|
Contributor
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-03-30 15:24:27.829323048 +0000
+++ /tmp/pyrefly_pr.txt 2026-03-30 15:24:16.851346523 +0000
@@ -670,6 +670,20 @@
--> tests/test_containers_integration_tests/controllers/console/auth/test_oauth.py:197:9
ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
--> tests/test_containers_integration_tests/controllers/console/helpers.py:40:48
+ERROR Argument `SimpleNamespace` is not assignable to parameter `webapp_settings` with type `WebAppSettings | None` in function `controllers.web.wraps._validate_user_accessibility` [bad-argument-type]
+ --> tests/test_containers_integration_tests/controllers/web/test_wraps.py:74:33
+ERROR Argument `SimpleNamespace` is not assignable to parameter `webapp_settings` with type `WebAppSettings | None` in function `controllers.web.wraps._validate_user_accessibility` [bad-argument-type]
+ --> tests/test_containers_integration_tests/controllers/web/test_wraps.py:97:33
+ERROR Argument `SimpleNamespace` is not assignable to parameter `webapp_settings` with type `WebAppSettings | None` in function `controllers.web.wraps._validate_user_accessibility` [bad-argument-type]
+ --> tests/test_containers_integration_tests/controllers/web/test_wraps.py:109:33
+ERROR Argument `SimpleNamespace` is not assignable to parameter `webapp_settings` with type `WebAppSettings | None` in function `controllers.web.wraps._validate_user_accessibility` [bad-argument-type]
+ --> tests/test_containers_integration_tests/controllers/web/test_wraps.py:127:33
+ERROR Argument `SimpleNamespace` is not assignable to parameter `webapp_settings` with type `WebAppSettings | None` in function `controllers.web.wraps._validate_user_accessibility` [bad-argument-type]
+ --> tests/test_containers_integration_tests/controllers/web/test_wraps.py:145:33
+ERROR Argument `SimpleNamespace` is not assignable to parameter `webapp_settings` with type `WebAppSettings | None` in function `controllers.web.wraps._validate_user_accessibility` [bad-argument-type]
+ --> tests/test_containers_integration_tests/controllers/web/test_wraps.py:162:29
+ERROR Argument `SimpleNamespace` is not assignable to parameter `webapp_settings` with type `WebAppSettings | None` in function `controllers.web.wraps._validate_user_accessibility` [bad-argument-type]
+ --> tests/test_containers_integration_tests/controllers/web/test_wraps.py:179:33
ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
--> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:95:20
ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
@@ -2298,20 +2312,6 @@
--> tests/unit_tests/controllers/web/test_workflow_events.py:125:48
ERROR Argument `SimpleNamespace` is not assignable to parameter `end_user` with type `EndUser` in function `controllers.web.workflow_events.WorkflowEventsApi.get` [bad-argument-type]
--> tests/unit_tests/controllers/web/test_workflow_events.py:125:65
-ERROR Argument `SimpleNamespace` is not assignable to parameter `webapp_settings` with type `WebAppSettings | None` in function `controllers.web.wraps._validate_user_accessibility` [bad-argument-type]
- --> tests/unit_tests/controllers/web/test_wraps.py:83:33
-ERROR Argument `SimpleNamespace` is not assignable to parameter `webapp_settings` with type `WebAppSettings | None` in function `controllers.web.wraps._validate_user_accessibility` [bad-argument-type]
- --> tests/unit_tests/controllers/web/test_wraps.py:106:33
-ERROR Argument `SimpleNamespace` is not assignable to parameter `webapp_settings` with type `WebAppSettings | None` in function `controllers.web.wraps._validate_user_accessibility` [bad-argument-type]
- --> tests/unit_tests/controllers/web/test_wraps.py:118:33
-ERROR Argument `SimpleNamespace` is not assignable to parameter `webapp_settings` with type `WebAppSettings | None` in function `controllers.web.wraps._validate_user_accessibility` [bad-argument-type]
- --> tests/unit_tests/controllers/web/test_wraps.py:137:33
-ERROR Argument `SimpleNamespace` is not assignable to parameter `webapp_settings` with type `WebAppSettings | None` in function `controllers.web.wraps._validate_user_accessibility` [bad-argument-type]
- --> tests/unit_tests/controllers/web/test_wraps.py:155:33
-ERROR Argument `SimpleNamespace` is not assignable to parameter `webapp_settings` with type `WebAppSettings | None` in function `controllers.web.wraps._validate_user_accessibility` [bad-argument-type]
- --> tests/unit_tests/controllers/web/test_wraps.py:173:29
-ERROR Argument `SimpleNamespace` is not assignable to parameter `webapp_settings` with type `WebAppSettings | None` in function `controllers.web.wraps._validate_user_accessibility` [bad-argument-type]
- --> tests/unit_tests/controllers/web/test_wraps.py:190:33
ERROR Argument `list[Unknown]` is not assignable to parameter `llm_response` with type `Generator[LLMResultChunk]` in function `core.agent.output_parser.cot_output_parser.CotAgentOutputParser.handle_react_stream_output` [bad-argument-type]
--> tests/unit_tests/core/agent/output_parser/test_cot_output_parser.py:67:71
ERROR No matching overload found for function `str.join` called with arguments: (list[AgentScratchpadUnit.Action | str]) [no-matching-overload]
|
Contributor
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-03-30 15:42:16.092636678 +0000
+++ /tmp/pyrefly_pr.txt 2026-03-30 15:42:05.238750669 +0000
@@ -670,6 +670,20 @@
--> tests/test_containers_integration_tests/controllers/console/auth/test_oauth.py:197:9
ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
--> tests/test_containers_integration_tests/controllers/console/helpers.py:40:48
+ERROR Argument `SimpleNamespace` is not assignable to parameter `webapp_settings` with type `WebAppSettings | None` in function `controllers.web.wraps._validate_user_accessibility` [bad-argument-type]
+ --> tests/test_containers_integration_tests/controllers/web/test_wraps.py:74:33
+ERROR Argument `SimpleNamespace` is not assignable to parameter `webapp_settings` with type `WebAppSettings | None` in function `controllers.web.wraps._validate_user_accessibility` [bad-argument-type]
+ --> tests/test_containers_integration_tests/controllers/web/test_wraps.py:97:33
+ERROR Argument `SimpleNamespace` is not assignable to parameter `webapp_settings` with type `WebAppSettings | None` in function `controllers.web.wraps._validate_user_accessibility` [bad-argument-type]
+ --> tests/test_containers_integration_tests/controllers/web/test_wraps.py:109:33
+ERROR Argument `SimpleNamespace` is not assignable to parameter `webapp_settings` with type `WebAppSettings | None` in function `controllers.web.wraps._validate_user_accessibility` [bad-argument-type]
+ --> tests/test_containers_integration_tests/controllers/web/test_wraps.py:127:33
+ERROR Argument `SimpleNamespace` is not assignable to parameter `webapp_settings` with type `WebAppSettings | None` in function `controllers.web.wraps._validate_user_accessibility` [bad-argument-type]
+ --> tests/test_containers_integration_tests/controllers/web/test_wraps.py:145:33
+ERROR Argument `SimpleNamespace` is not assignable to parameter `webapp_settings` with type `WebAppSettings | None` in function `controllers.web.wraps._validate_user_accessibility` [bad-argument-type]
+ --> tests/test_containers_integration_tests/controllers/web/test_wraps.py:162:29
+ERROR Argument `SimpleNamespace` is not assignable to parameter `webapp_settings` with type `WebAppSettings | None` in function `controllers.web.wraps._validate_user_accessibility` [bad-argument-type]
+ --> tests/test_containers_integration_tests/controllers/web/test_wraps.py:179:33
ERROR Argument `Literal['normal']` is not assignable to parameter `status` with type `SQLCoreOperations[TenantStatus] | TenantStatus` in function `models.account.Tenant.__init__` [bad-argument-type]
--> tests/test_containers_integration_tests/core/app/layers/test_pause_state_persist_layer.py:95:20
ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
@@ -2298,20 +2312,6 @@
--> tests/unit_tests/controllers/web/test_workflow_events.py:125:48
ERROR Argument `SimpleNamespace` is not assignable to parameter `end_user` with type `EndUser` in function `controllers.web.workflow_events.WorkflowEventsApi.get` [bad-argument-type]
--> tests/unit_tests/controllers/web/test_workflow_events.py:125:65
-ERROR Argument `SimpleNamespace` is not assignable to parameter `webapp_settings` with type `WebAppSettings | None` in function `controllers.web.wraps._validate_user_accessibility` [bad-argument-type]
- --> tests/unit_tests/controllers/web/test_wraps.py:83:33
-ERROR Argument `SimpleNamespace` is not assignable to parameter `webapp_settings` with type `WebAppSettings | None` in function `controllers.web.wraps._validate_user_accessibility` [bad-argument-type]
- --> tests/unit_tests/controllers/web/test_wraps.py:106:33
-ERROR Argument `SimpleNamespace` is not assignable to parameter `webapp_settings` with type `WebAppSettings | None` in function `controllers.web.wraps._validate_user_accessibility` [bad-argument-type]
- --> tests/unit_tests/controllers/web/test_wraps.py:118:33
-ERROR Argument `SimpleNamespace` is not assignable to parameter `webapp_settings` with type `WebAppSettings | None` in function `controllers.web.wraps._validate_user_accessibility` [bad-argument-type]
- --> tests/unit_tests/controllers/web/test_wraps.py:137:33
-ERROR Argument `SimpleNamespace` is not assignable to parameter `webapp_settings` with type `WebAppSettings | None` in function `controllers.web.wraps._validate_user_accessibility` [bad-argument-type]
- --> tests/unit_tests/controllers/web/test_wraps.py:155:33
-ERROR Argument `SimpleNamespace` is not assignable to parameter `webapp_settings` with type `WebAppSettings | None` in function `controllers.web.wraps._validate_user_accessibility` [bad-argument-type]
- --> tests/unit_tests/controllers/web/test_wraps.py:173:29
-ERROR Argument `SimpleNamespace` is not assignable to parameter `webapp_settings` with type `WebAppSettings | None` in function `controllers.web.wraps._validate_user_accessibility` [bad-argument-type]
- --> tests/unit_tests/controllers/web/test_wraps.py:190:33
ERROR Argument `list[Unknown]` is not assignable to parameter `llm_response` with type `Generator[LLMResultChunk]` in function `core.agent.output_parser.cot_output_parser.CotAgentOutputParser.handle_react_stream_output` [bad-argument-type]
--> tests/unit_tests/core/agent/output_parser/test_cot_output_parser.py:67:71
ERROR No matching overload found for function `str.join` called with arguments: (list[AgentScratchpadUnit.Action | str]) [no-matching-overload]
|
asukaminato0721
approved these changes
Mar 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Migrate tests from
api/tests/unit_tests/controllers/web/test_wraps.pyto testcontainers integration tests atapi/tests/test_containers_integration_tests/controllers/web/test_wraps.py.Replaced
Flask(__name__)withflask_app_with_containersfixture forTestDecodeJwtTokentests that need request context. All 20 tests migrated:_validate_webapp_token(7 tests for enterprise/public/system auth combinations),_validate_user_accessibility(8 tests for SSO, permissions, missing fields), anddecode_jwt_token(5 tests for happy path, missing token/app/end_user, disabled site, user ID mismatch). External services remain mocked as tests verify auth decorator logic.Part of #32454
Checklist
make lintandmake type-check(backend) andcd web && npx lint-staged(frontend) to appease the lint gods