test: migrate Service API site controller tests to Testcontainers (#32454)#35183
Merged
asukaminato0721 merged 4 commits intolanggenius:mainfrom Apr 15, 2026
Merged
Conversation
…nggenius#32454) Replace DB-mocked unit tests with container-backed integration coverage for service API site behavior so SQL-backed flows are validated in a realistic environment.
Contributor
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-04-14 17:51:15.077419133 +0000
+++ /tmp/pyrefly_pr.txt 2026-04-14 17:51:03.923342900 +0000
@@ -714,6 +714,8 @@
--> tests/test_containers_integration_tests/controllers/service_api/dataset/test_dataset.py:183:29
ERROR Missing argument `tag_id` in function `controllers.service_api.dataset.dataset.TagDeletePayload.__init__` [missing-argument]
--> tests/test_containers_integration_tests/controllers/service_api/dataset/test_dataset.py:195:29
+ERROR Attribute `tenant` of class `App` is a read-only property and cannot be set [read-only]
+ --> tests/test_containers_integration_tests/controllers/service_api/test_site.py:104:9
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]
|
Align integration assertions with Site response schema, which does not expose app_id.
Contributor
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-04-14 18:31:32.352580061 +0000
+++ /tmp/pyrefly_pr.txt 2026-04-14 18:31:22.522605624 +0000
@@ -714,6 +714,8 @@
--> tests/test_containers_integration_tests/controllers/service_api/dataset/test_dataset.py:183:29
ERROR Missing argument `tag_id` in function `controllers.service_api.dataset.dataset.TagDeletePayload.__init__` [missing-argument]
--> tests/test_containers_integration_tests/controllers/service_api/dataset/test_dataset.py:195:29
+ERROR Attribute `tenant` of class `App` is a read-only property and cannot be set [read-only]
+ --> tests/test_containers_integration_tests/controllers/service_api/test_site.py:103:9
ERROR `in` is not supported between `Literal['webapp-logo']` and `None` [not-iterable]
--> tests/test_containers_integration_tests/controllers/web/test_site.py:133:16
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]
|
Contributor
There was a problem hiding this comment.
Pull request overview
Migrates the Service API /site controller test coverage from DB-mocked unit tests to Testcontainers-backed integration tests to validate behavior against a real database.
Changes:
- Added a new Testcontainers integration test suite for the Service API
/sitecontroller. - Removed the previous unit test suite that relied on extensive mocking.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| api/tests/unit_tests/controllers/service_api/test_site.py | Removed mocked unit tests for /site. |
| api/tests/test_containers_integration_tests/controllers/service_api/test_site.py | Added Testcontainers-backed integration tests for /site behavior. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…e_api/test_site.py Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
auto-merge was automatically disabled
April 14, 2026 19:26
Head branch was pushed to by a user without write access
…e_api/test_site.py Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Contributor
Author
|
@asukaminato0721 |
Contributor
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-04-15 05:37:19.488348329 +0000
+++ /tmp/pyrefly_pr.txt 2026-04-15 05:37:09.132053211 +0000
@@ -1,7 +1,5 @@
ERROR Object of class `App` has no attribute `access_mode` [missing-attribute]
- --> controllers/console/app/app.py:552:13
-ERROR Object of class `object` has no attribute `value` [missing-attribute]
- --> controllers/console/app/conversation_variables.py:48:24
+ --> controllers/console/app/app.py:561:13
ERROR Argument `str | None` is not assignable to parameter `language` with type `str` in function `services.account_service.AccountService.send_email_register_email` [bad-argument-type]
--> controllers/console/auth/email_register.py:75:108
ERROR Object of class `MissingRouter` has no attribute `get` [missing-attribute]
@@ -16,8 +14,6 @@
--> controllers/console/setup.py:65:2
ERROR Object of class `MissingRouter` has no attribute `get` [missing-attribute]
--> controllers/console/version.py:30:2
-ERROR Object of class `object` has no attribute `value` [missing-attribute]
- --> controllers/service_api/app/conversation.py:87:24
ERROR Class member `EasyUIBasedGenerateTaskPipeline._application_generate_entity` overrides parent class `BasedGenerateTaskPipeline` in an inconsistent manner [bad-override]
--> core/app/task_pipeline/easy_ui_based_generate_task_pipeline.py:75:5
ERROR `+=` is not supported between `list[PromptMessageContentUnionTypes]` and `str` [unsupported-operation]
@@ -660,6 +656,8 @@
--> tests/integration_tests/services/test_workflow_draft_variable_service.py:651:21
ERROR Object of class `TestWorkflowDraftVariableServiceResetVariable` has no attribute `_test_user_id` [missing-attribute]
--> tests/integration_tests/services/test_workflow_draft_variable_service.py:817:21
+ERROR Argument `Literal['unsupported_language']` is not assignable to parameter `language` with type `CodeLanguage` in function `core.helper.code_executor.code_executor.CodeExecutor.execute_workflow_code_template` [bad-argument-type]
+ --> tests/integration_tests/workflow/nodes/code_executor/test_code_executor.py:10:62
ERROR Argument `dict[Unknown, Unknown]` is not assignable to parameter `config` with type `NodeConfigDict` in function `graphon.nodes.code.code_node.CodeNode.__init__` [bad-argument-type]
--> tests/integration_tests/workflow/nodes/test_code.py:68:16
ERROR Argument `dict[Unknown, Unknown]` is not assignable to parameter `config` with type `NodeConfigDict` in function `graphon.nodes.http_request.node.HttpRequestNode.__init__` [bad-argument-type]
@@ -683,7 +681,7 @@
ERROR `dict[str, str | None]` is not assignable to attribute `env` with type `dict[str, str]` [bad-assignment]
--> tests/test_containers_integration_tests/conftest.py:204:39
ERROR Argument value `Literal[0]` violates Pydantic `ge` constraint `Literal[1]` for field `page` [bad-argument-type]
- --> tests/test_containers_integration_tests/controllers/console/app/test_app_apis.py:633:51
+ --> tests/test_containers_integration_tests/controllers/console/app/test_app_apis.py:632:51
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/app/test_chat_conversation_status_count_api.py:33:48
ERROR Object of class `RequestError` has no attribute `response` [missing-attribute]
@@ -1157,12 +1155,6 @@
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/services/test_dataset_service_get_segments.py:44:62
ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_dataset_service_permissions.py:37:20
-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/services/test_dataset_service_permissions.py:39:58
-ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_dataset_service_permissions.py:66: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]
--> tests/test_containers_integration_tests/services/test_dataset_service_retrieval.py:45:20
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/services/test_dataset_service_retrieval.py:49:20
@@ -1301,16 +1293,6 @@
ERROR Argument `Literal['end_user']` is not assignable to parameter `created_by_role` with type `CreatorUserRole | SQLCoreOperations[CreatorUserRole]` in function `models.web.SavedMessage.__init__` [bad-argument-type]
--> tests/test_containers_integration_tests/services/test_saved_message_service.py:602:67
ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_schedule_service.py:30:20
-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/services/test_schedule_service.py:32:58
-ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `events.event_handlers.sync_workflow_schedule_when_app_published.sync_schedule_from_workflow` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_schedule_service.py:319:26
-ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `events.event_handlers.sync_workflow_schedule_when_app_published.sync_schedule_from_workflow` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_schedule_service.py:353:26
-ERROR Argument `SimpleNamespace` is not assignable to parameter `workflow` with type `Workflow` in function `events.event_handlers.sync_workflow_schedule_when_app_published.sync_schedule_from_workflow` [bad-argument-type]
- --> tests/test_containers_integration_tests/services/test_schedule_service.py:382:22
-ERROR Argument `Literal['active']` is not assignable to parameter `status` with type `AccountStatus | SQLCoreOperations[AccountStatus]` in function `models.account.Account.__init__` [bad-argument-type]
--> tests/test_containers_integration_tests/services/test_tag_service.py:59:20
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/services/test_tag_service.py:68:20
@@ -2123,11 +2105,11 @@
ERROR Argument `list[dict[str, Any]] | None` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
--> tests/unit_tests/controllers/service_api/app/test_completion.py:156:20
ERROR Argument value `Literal[0]` violates Pydantic `ge` constraint `Literal[1]` for field `limit` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_conversation.py:84:35
+ --> tests/unit_tests/controllers/service_api/app/test_conversation.py:80:35
ERROR Argument value `Literal[101]` violates Pydantic `le` constraint `Literal[100]` for field `limit` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_conversation.py:89:35
+ --> tests/unit_tests/controllers/service_api/app/test_conversation.py:85:35
ERROR Missing argument `session` in function `services.conversation_service.ConversationService.pagination_by_last_id` [missing-argument]
- --> tests/unit_tests/controllers/service_api/app/test_conversation.py:427:59
+ --> tests/unit_tests/controllers/service_api/app/test_conversation.py:383:59
ERROR Argument value `Literal[0]` violates Pydantic `ge` constraint `Literal[1]` for field `limit` [bad-argument-type]
--> tests/unit_tests/controllers/service_api/app/test_message.py:94:63
ERROR Argument value `Literal[101]` violates Pydantic `le` constraint `Literal[100]` for field `limit` [bad-argument-type]
@@ -2141,21 +2123,21 @@
ERROR Argument value `Literal[102]` violates Pydantic `le` constraint `Literal[101]` for field `limit` [bad-argument-type]
--> tests/unit_tests/controllers/service_api/app/test_message.py:188:31
ERROR Argument `list[dict[str, Any]] | None` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_workflow.py:109:20
+ --> tests/unit_tests/controllers/service_api/app/test_workflow.py:92:20
ERROR Argument value `Literal[0]` violates Pydantic `ge` constraint `Literal[1]` for field `page` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_workflow.py:171:30
+ --> tests/unit_tests/controllers/service_api/app/test_workflow.py:154:30
ERROR Argument value `Literal[100000]` violates Pydantic `le` constraint `Literal[99999]` for field `page` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_workflow.py:176:30
+ --> tests/unit_tests/controllers/service_api/app/test_workflow.py:159:30
ERROR Argument value `Literal[0]` violates Pydantic `ge` constraint `Literal[1]` for field `limit` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_workflow.py:181:30
+ --> tests/unit_tests/controllers/service_api/app/test_workflow.py:164:30
ERROR Argument value `Literal[101]` violates Pydantic `le` constraint `Literal[100]` for field `limit` [bad-argument-type]
- --> tests/unit_tests/controllers/service_api/app/test_workflow.py:186:30
+ --> tests/unit_tests/controllers/service_api/app/test_workflow.py:169:30
ERROR Object of class `dict` has no attribute `page` [missing-attribute]
- --> tests/unit_tests/controllers/service_api/app/test_workflow.py:237:16
+ --> tests/unit_tests/controllers/service_api/app/test_workflow.py:220:16
ERROR Object of class `dict` has no attribute `limit` [missing-attribute]
- --> tests/unit_tests/controllers/service_api/app/test_workflow.py:238:16
+ --> tests/unit_tests/controllers/service_api/app/test_workflow.py:221:16
ERROR Object of class `NoneType` has no attribute `status` [missing-attribute]
- --> tests/unit_tests/controllers/service_api/app/test_workflow.py:365:16
+ --> tests/unit_tests/controllers/service_api/app/test_workflow.py:348:16
ERROR Argument `SimpleNamespace` is not assignable to parameter `obj` with type `WorkflowRun` in function `controllers.service_api.app.workflow.WorkflowRunStatusField.output` [bad-argument-type]
--> tests/unit_tests/controllers/service_api/app/test_workflow_fields.py:12:35
ERROR Argument `SimpleNamespace` is not assignable to parameter `obj` with type `WorkflowRun` in function `controllers.service_api.app.workflow.WorkflowRunOutputsField.output` [bad-argument-type]
@@ -6118,35 +6100,43 @@
ERROR Class member `FixedDateTime.now` overrides parent class `datetime` in an inconsistent manner [bad-override]
--> tests/unit_tests/services/test_clear_free_plan_tenant_expired_logs.py:460:13
ERROR Argument `SimpleNamespace` is not assignable to parameter `account` with type `Account` in function `services.dataset_service.DatasetService.create_empty_dataset` [bad-argument-type]
- --> tests/unit_tests/services/test_dataset_service_dataset.py:180:93
+ --> tests/unit_tests/services/test_dataset_service_dataset.py:310:93
ERROR Argument `SimpleNamespace` is not assignable to parameter `account` with type `Account` in function `services.dataset_service.DatasetService.create_empty_dataset` [bad-argument-type]
- --> tests/unit_tests/services/test_dataset_service_dataset.py:204:25
+ --> tests/unit_tests/services/test_dataset_service_dataset.py:334:25
ERROR Argument `SimpleNamespace` is not assignable to parameter `account` with type `Account` in function `services.dataset_service.DatasetService.create_empty_dataset` [bad-argument-type]
- --> tests/unit_tests/services/test_dataset_service_dataset.py:247:25
+ --> tests/unit_tests/services/test_dataset_service_dataset.py:377:25
ERROR Argument `SimpleNamespace` is not assignable to parameter `dataset` with type `Dataset` in function `services.dataset_service.DatasetService._update_pipeline_knowledge_base_node_data` [bad-argument-type]
- --> tests/unit_tests/services/test_dataset_service_dataset.py:564:70
+ --> tests/unit_tests/services/test_dataset_service_dataset.py:694:70
ERROR Argument `SimpleNamespace` is not assignable to parameter `dataset` with type `Dataset` in function `services.dataset_service.DatasetService._update_pipeline_knowledge_base_node_data` [bad-argument-type]
- --> tests/unit_tests/services/test_dataset_service_dataset.py:574:70
+ --> tests/unit_tests/services/test_dataset_service_dataset.py:704:70
ERROR Argument `SimpleNamespace` is not assignable to parameter `dataset` with type `Dataset` in function `services.dataset_service.DatasetService._update_pipeline_knowledge_base_node_data` [bad-argument-type]
- --> tests/unit_tests/services/test_dataset_service_dataset.py:613:70
+ --> tests/unit_tests/services/test_dataset_service_dataset.py:743:70
ERROR Argument `SimpleNamespace` is not assignable to parameter `dataset` with type `Dataset` in function `services.dataset_service.DatasetService._update_pipeline_knowledge_base_node_data` [bad-argument-type]
- --> tests/unit_tests/services/test_dataset_service_dataset.py:636:74
+ --> tests/unit_tests/services/test_dataset_service_dataset.py:766:74
ERROR Object of class `FakeAccount` has no attribute `current_tenant_id` [missing-attribute]
- --> tests/unit_tests/services/test_dataset_service_dataset.py:703:9
+ --> tests/unit_tests/services/test_dataset_service_dataset.py:833:9
ERROR Object of class `FakeAccount` has no attribute `current_tenant_id` [missing-attribute]
- --> tests/unit_tests/services/test_dataset_service_dataset.py:741:9
+ --> tests/unit_tests/services/test_dataset_service_dataset.py:871:9
ERROR Argument `None` is not assignable to parameter `embedding_model_provider` with type `str` in function `tests.unit_tests.services.dataset_service_test_helpers.DatasetServiceUnitDataFactory.create_dataset_mock` [bad-argument-type]
- --> tests/unit_tests/services/test_dataset_service_dataset.py:807:38
+ --> tests/unit_tests/services/test_dataset_service_dataset.py:937:38
ERROR Argument `None` is not assignable to parameter `embedding_model` with type `str` in function `tests.unit_tests.services.dataset_service_test_helpers.DatasetServiceUnitDataFactory.create_dataset_mock` [bad-argument-type]
- --> tests/unit_tests/services/test_dataset_service_dataset.py:808:29
+ --> tests/unit_tests/services/test_dataset_service_dataset.py:938:29
ERROR Object of class `FakeAccount` has no attribute `current_tenant_id` [missing-attribute]
- --> tests/unit_tests/services/test_dataset_service_dataset.py:866:9
+ --> tests/unit_tests/services/test_dataset_service_dataset.py:996:9
ERROR Object of class `FakeAccount` has no attribute `current_tenant_id` [missing-attribute]
- --> tests/unit_tests/services/test_dataset_service_dataset.py:901:9
+ --> tests/unit_tests/services/test_dataset_service_dataset.py:1031:9
ERROR Argument `SimpleNamespace` is not assignable to parameter `user` with type `Account | None` in function `services.dataset_service.DatasetService.check_dataset_operator_permission` [bad-argument-type]
- --> tests/unit_tests/services/test_dataset_service_dataset.py:1212:67
+ --> tests/unit_tests/services/test_dataset_service_dataset.py:1439:67
ERROR Argument `SimpleNamespace` is not assignable to parameter `dataset` with type `Dataset | None` in function `services.dataset_service.DatasetService.check_dataset_operator_permission` [bad-argument-type]
- --> tests/unit_tests/services/test_dataset_service_dataset.py:1215:81
+ --> tests/unit_tests/services/test_dataset_service_dataset.py:1442:81
+ERROR Argument `SimpleNamespace` is not assignable to parameter `user` with type `Account | None` in function `services.dataset_service.DatasetService.check_dataset_operator_permission` [bad-argument-type]
+ --> tests/unit_tests/services/test_dataset_service_dataset.py:1455:67
+ERROR Argument `SimpleNamespace` is not assignable to parameter `user` with type `Account | None` in function `services.dataset_service.DatasetService.check_dataset_operator_permission` [bad-argument-type]
+ --> tests/unit_tests/services/test_dataset_service_dataset.py:1468:71
+ERROR Object of class `FakeAccount` has no attribute `current_tenant_id` [missing-attribute]
+ --> tests/unit_tests/services/test_dataset_service_dataset.py:1527:9
+ERROR Object of class `FakeAccount` has no attribute `current_tenant_id` [missing-attribute]
+ --> tests/unit_tests/services/test_dataset_service_dataset.py:1549:9
ERROR Argument `SimpleNamespace` is not assignable to parameter `current_user` with type `Account` in function `services.dataset_service.DocumentService.prepare_document_batch_download_zip` [bad-argument-type]
--> tests/unit_tests/services/test_dataset_service_document.py:340:34
ERROR Argument `SimpleNamespace` is not assignable to parameter `current_user` with type `Account` in function `services.dataset_service.DocumentService.prepare_document_batch_download_zip` [bad-argument-type]
@@ -6338,13 +6328,13 @@
ERROR Argument `None` is not assignable to parameter `plan` with type `CloudPlan` in function `RagPipelineTaskProxyTestDataFactory.create_mock_features` [bad-argument-type]
--> tests/unit_tests/services/test_rag_pipeline_task_proxy.py:431:109
ERROR Argument `dict[str, Any]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.schedule_service.ScheduleService.to_schedule_config` [bad-argument-type]
- --> tests/unit_tests/services/test_schedule_service.py:521:61
+ --> tests/unit_tests/services/test_schedule_service.py:860:61
ERROR Argument `dict[str, dict[str, str] | str]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.schedule_service.ScheduleService.to_schedule_config` [bad-argument-type]
- --> tests/unit_tests/services/test_schedule_service.py:535:56
+ --> tests/unit_tests/services/test_schedule_service.py:874:56
ERROR Argument `dict[str, dict[str, dict[str, str] | str] | str]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.schedule_service.ScheduleService.to_schedule_config` [bad-argument-type]
- --> tests/unit_tests/services/test_schedule_service.py:552:61
+ --> tests/unit_tests/services/test_schedule_service.py:891:61
ERROR Argument `dict[str, dict[str, str] | str]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.schedule_service.ScheduleService.to_schedule_config` [bad-argument-type]
- --> tests/unit_tests/services/test_schedule_service.py:564:56
+ --> tests/unit_tests/services/test_schedule_service.py:903:56
ERROR Missing required key `enable` for TypedDict `SummaryIndexSettingDict` [bad-typed-dict-key]
--> tests/unit_tests/services/test_summary_index_service.py:97:93
ERROR Key `a` is not defined in TypedDict `SummaryIndexSettingDict` [bad-typed-dict-key]
|
asukaminato0721
approved these changes
Apr 15, 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
Service API /sitecontroller tests from DB-mocked unit tests to Testcontainers-backed integration tests.#32454-style SQL/test migration without touching production controller logic.File Changes
api/tests/test_containers_integration_tests/controllers/service_api/test_site.pyapi/tests/unit_tests/controllers/service_api/test_site.pyPart of #32454