fix: align human input ci expectations

This commit is contained in:
-LAN-
2026-03-17 19:37:56 +08:00
parent 5cdce96580
commit 5ea7dcb1a8
7 changed files with 22 additions and 8 deletions

View File

@@ -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."""