| 82 | fake_requests = MagicMock() |
| 83 | |
| 84 | class DummyResponse: |
| 85 | status_code = 200 |
| 86 | headers = {"content-length": "4"} |
| 87 | content = b"data" |
| 88 | |
| 89 | def raise_for_status(self): |
| 90 | pass |
| 91 | |
| 92 | def iter_content(self, chunk_size=8192): |
| 93 | yield b"data" |
| 94 | |
| 95 | fake_requests.get.return_value = DummyResponse() |
| 96 | bundle = { |
no outgoing calls