Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jiachin1995 authored Feb 6, 2024
1 parent 8f1dacc commit 3e35a99
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ async def test_stuff():
with mock.patch('aiofiles.threadpool.sync_open', return_value=mock_file_stream) as mock_open:
async with aiofiles.open('filename', 'w') as f:
await f.write(write_data)
assert f.read() == b'file chunks 1'

mock_file_stream.write.assert_called_once_with(write_data)
```
Expand Down

0 comments on commit 3e35a99

Please sign in to comment.