mirror of
https://github.com/remsky/Kokoro-FastAPI.git
synced 2025-08-31 21:59:28 +00:00
fixed test case
This commit is contained in:
parent
90f168f63d
commit
429c959b22
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ async def test_find_file_not_exists():
|
|||
"""Test finding non-existent file."""
|
||||
with patch('aiofiles.os.path.exists') as mock_exists:
|
||||
mock_exists.return_value = False
|
||||
with pytest.raises(RuntimeError, match="File not found"):
|
||||
with pytest.raises(FileNotFoundError, match="File not found"):
|
||||
await _find_file("test.txt", ["/test/path"])
|
||||
|
||||
@pytest.mark.asyncio
|
||||
|
|
Loading…
Add table
Reference in a new issue