You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gcgj-dify-1.7.0/api/tests/unit_tests
QuantumGhost 501d3b6203
feat(api): Explicitly define version method for all BaseNode subclasses (#21443)
This PR addresses issue #21441 by implementing explicit `version` method definitions for all `BaseNode` subclasses to improve code maintainability.

### Changes

Added explicit `version` method definitions for all `BaseNode` subclasses:

- `QuestionClassifierNode`
- `KnowledgeRetrievalNode` 
- `AgentNode`

Added comprehensive test suite to validate:

1. All subclasses of `BaseNode` have explicitly defined `version` method
2. All subclasses have required `_node_type` property
3. The `(node_type, node_version)` combination is unique across all subclasses
8 months ago
..
configs fix(config): Allow DB_EXTRAS to set search_path via options (#19560) 9 months ago
controllers feat: Persist Variables for Enhanced Debugging Workflow (#20699) 8 months ago
core feat(api): Explicitly define version method for all BaseNode subclasses (#21443) 8 months ago
extensions feat: add debug log for request and response (#19781) (#19783) 9 months ago
factories feat: Persist Variables for Enhanced Debugging Workflow (#20699) 8 months ago
libs feat: Persist Variables for Enhanced Debugging Workflow (#20699) 8 months ago
models feat: Persist Variables for Enhanced Debugging Workflow (#20699) 8 months ago
oss chore(lint): correct allowed-unused-imports settings for cleanup unused imports in tests (#11922) 1 year ago
repositories refactor(workflow): Rename workflow node execution models (#20458) 8 months ago
services feat: Persist Variables for Enhanced Debugging Workflow (#20699) 8 months ago
utils feat: add interfaces of OAuth handler methods for authorization (#18889) 9 months ago
.gitignore Enhance Code Consistency Across Repository with `.editorconfig` (#19023) 9 months ago
__init__.py FEAT: NEW WORKFLOW ENGINE (#3160) 2 years ago
conftest.py Feature:Refactor batch update document status for #21324 (#21325) 8 months ago