Update api/tests/unit_tests/services/test_dataset_service_update_dataset.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
QuantumGhost 2025-09-17 20:17:10 +08:00 committed by GitHub
parent 396fd728fb
commit 948d6bac97
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 5 deletions

View File

@ -191,11 +191,6 @@ class TestDatasetServiceUpdateDataset:
"external_knowledge_id": "new_knowledge_id",
"external_knowledge_api_id": "new_api_id",
}
# stmt = MagicMock()
# mock_db.query.return_value = stmt
# stmt.filter.return_value = stmt
# stmt.first.return_value = None
mock_dataset_service_dependencies["has_dataset_same_name"].return_value = False
result = DatasetService.update_dataset("dataset-123", update_data, user)