| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 94d04e0 commit 12f4470
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -79,7 +79,7 @@ def data(self): | |||
| 79 | 79 | ||
| 80 | 80 | async def raw_content(self): | |
| 81 | 81 | if self._raw_content is None: | |
| 82 | - self._raw_content = await self._response.content.read() | ||
| 82 | + self._raw_content = await self._response.read() | ||
| 83 | 83 | return self._raw_content | |
| 84 | 84 | ||
| 85 | 85 | async def content(self): | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -40,7 +40,7 @@ def test__is_compressed_not(self): | |||
| 40 | 40 | @pytest.mark.asyncio | |
| 41 | 41 | async def test_raw_content(self): | |
| 42 | 42 | mock_response = mock.AsyncMock() | |
| 43 | - mock_response.content.read.return_value = mock.sentinel.read | ||
| 43 | + mock_response.read.return_value = mock.sentinel.read | ||
| 44 | 44 | combined_response = aiohttp_requests._CombinedResponse(response=mock_response) | |
| 45 | 45 | raw_content = await combined_response.raw_content() | |
| 46 | 46 | assert raw_content == mock.sentinel.read | |
@@ -53,7 +53,7 @@ async def test_raw_content(self): | |||
| 53 | 53 | @pytest.mark.asyncio | |
| 54 | 54 | async def test_content(self): | |
| 55 | 55 | mock_response = mock.AsyncMock() | |
| 56 | - mock_response.content.read.return_value = mock.sentinel.read | ||
| 56 | + mock_response.read.return_value = mock.sentinel.read | ||
| 57 | 57 | combined_response = aiohttp_requests._CombinedResponse(response=mock_response) | |
| 58 | 58 | content = await combined_response.content() | |
| 59 | 59 | assert content == mock.sentinel.read | |
| Back | FazBrowse Home | New Git URL |
0 commit comments