Skip to content

test: remove dataset service update/delete mock tests superseded by testcontainers#34937

Merged
asukaminato0721 merged 1 commit intolanggenius:mainfrom
bittoby:test/remove-dataset-service-update-delete-mock-tests
Apr 11, 2026
Merged

test: remove dataset service update/delete mock tests superseded by testcontainers#34937
asukaminato0721 merged 1 commit intolanggenius:mainfrom
bittoby:test/remove-dataset-service-update-delete-mock-tests

Conversation

@bittoby
Copy link
Copy Markdown
Contributor

@bittoby bittoby commented Apr 10, 2026

Summary

  • Remove api/tests/unit_tests/services/dataset_service_update_delete.py (9 mock-based tests, 818 lines)
  • All 9 tests are already covered by integration tests:
    • api/tests/test_containers_integration_tests/services/test_dataset_service_update_dataset.py (13 tests)
    • api/tests/test_containers_integration_tests/services/dataset_service_update_delete.py (9 tests)

Part of #32454

Test plan

  • Verify all unit test cases have matching integration test coverage
  • No other files reference the deleted test file

@github-actions
Copy link
Copy Markdown
Contributor

Pyrefly Diff

No changes detected.

@dosubot dosubot Bot added the size:XL This PR changes 500-999 lines, ignoring generated files. label Apr 10, 2026
@asukaminato0721 asukaminato0721 requested a review from Copilot April 11, 2026 00:54
@asukaminato0721 asukaminato0721 added this pull request to the merge queue Apr 11, 2026
@dosubot dosubot Bot added the lgtm This PR has been approved by a maintainer label Apr 11, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Removes a mock-based unit test module for DatasetService update/delete behavior that is now covered by existing Testcontainers-backed integration tests, aligning with the ongoing move away from patched SQL/mocks (Issue #32454).

Changes:

  • Delete api/tests/unit_tests/services/dataset_service_update_delete.py (mock-heavy unit tests) to avoid duplicate coverage.
  • Rely on existing Testcontainers integration tests for update/delete and related dataset lifecycle behaviors.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Merged via the queue into langgenius:main with commit 7192af4 Apr 11, 2026
32 checks passed
HanqingZ pushed a commit to HanqingZ/dify that referenced this pull request Apr 23, 2026
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:XL This PR changes 500-999 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants