| 266 | return |
| 267 | |
| 268 | class DummyPW: |
| 269 | async def __aenter__(self): |
| 270 | return self |
| 271 | |
| 272 | async def __aexit__(self, exc_type, exc, tb): |
| 273 | return |
| 274 | |
| 275 | class chromium: |
| 276 | @staticmethod |
| 277 | async def launch(headless, proxy, **kwargs): |
| 278 | return DummyBrowser() |
| 279 | |
| 280 | class firefox: |
| 281 | @staticmethod |
| 282 | async def launch(headless, proxy, **kwargs): |
| 283 | return DummyBrowser() |
| 284 | |
| 285 | # Patch the async_playwright to return our dummy |
| 286 | monkeypatch.setattr("playwright.async_api.async_playwright", lambda: DummyPW()) |
no outgoing calls