mirror of
https://github.com/langgenius/dify.git
synced 2026-06-01 04:00:59 -04:00
fix: align human input ci expectations
This commit is contained in:
@@ -310,7 +310,7 @@ class TestStorageKeyLoader(unittest.TestCase):
|
||||
with pytest.raises(ValueError) as context:
|
||||
self.loader.load_storage_keys([file_other])
|
||||
|
||||
assert "invalid file, expected tenant_id" in str(context.value)
|
||||
assert "Upload file not found for id:" in str(context.value)
|
||||
|
||||
# Current tenant's file should still work
|
||||
self.loader.load_storage_keys([file_current])
|
||||
@@ -334,7 +334,7 @@ class TestStorageKeyLoader(unittest.TestCase):
|
||||
with pytest.raises(ValueError) as context:
|
||||
self.loader.load_storage_keys([file_current, file_other])
|
||||
|
||||
assert "invalid file, expected tenant_id" in str(context.value)
|
||||
assert "Upload file not found for id:" in str(context.value)
|
||||
|
||||
def test_load_storage_keys_duplicate_file_ids(self):
|
||||
"""Test handling of duplicate file IDs in the batch."""
|
||||
|
||||
Reference in New Issue
Block a user