dify/api/tests/unit_tests
Novice 6b75188ddc
fix: resolve import migrations and test failures after segment 3 merge
- Migrate core.model_runtime -> dify_graph.model_runtime across 20+ files
- Migrate core.workflow.file -> dify_graph.file across 15+ files
- Migrate core.workflow.enums -> dify_graph.enums in service files
- Fix SandboxContext phantom import in dify_graph/context/__init__.py
- Fix core.app.workflow.node_factory -> core.workflow.node_factory
- Fix toast import paths (useToastContext from toast/context)
- Fix app-info.tsx import paths for relocated app-operations
- Fix 15 frontend test files for API changes, missing QueryClientProvider,
  i18n key renames, and component behavior changes

Made-with: Cursor
2026-03-23 10:31:11 +08:00
..
commands fix(api): make DB migration Redis lock TTL configurable and prevent LockNotOwnedError from masking failures (#32299) 2026-02-14 14:55:05 +08:00
configs feat: Human Input Node (#32060) 2026-02-09 14:57:23 +08:00
controllers refactor(api): move model_runtime into dify_graph (#32858) 2026-03-02 20:15:32 +08:00
core fix: resolve import migrations and test failures after segment 3 merge 2026-03-23 10:31:11 +08:00
extensions Merge remote-tracking branch 'origin/main' into feat/support-agent-sandbox 2026-02-09 17:00:56 +08:00
factories refactor: move workflow package to dify_graph (#32844) 2026-03-02 18:42:30 +08:00
fields refactor: port api/fields/file_fields.py (#30638) 2026-01-06 22:55:58 +08:00
libs Merge commit '92bde350' into sandboxed-agent-rebase 2026-03-23 09:39:49 +08:00
models refactor: move workflow package to dify_graph (#32844) 2026-03-02 18:42:30 +08:00
oss test(api): add autospec to MagicMock-based patch usage (#32752) 2026-03-01 04:30:45 +08:00
repositories Merge commit '92bde350' into sandboxed-agent-rebase 2026-03-23 09:39:49 +08:00
services Merge commit '92bde350' into sandboxed-agent-rebase 2026-03-23 09:39:49 +08:00
tasks test: migrate duplicate_document_indexing_task SQL tests to testcontainers (#32540) 2026-03-05 02:35:24 +09:00
tools refactor(api): move model_runtime into dify_graph (#32858) 2026-03-02 20:15:32 +08:00
utils Merge commit '92bde350' into sandboxed-agent-rebase 2026-03-23 09:39:49 +08:00
__init__.py FEAT: NEW WORKFLOW ENGINE (#3160) 2024-04-08 18:51:46 +08:00
.gitignore Enhance Code Consistency Across Repository with .editorconfig (#19023) 2025-04-29 18:04:33 +08:00
conftest.py test: improve unit tests for controllers.service_api (#32073) 2026-02-25 14:45:50 +08:00