mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-28 00:05:01 +00:00
style: Address flake8 errors
This commit is contained in:
parent
38e7f04e60
commit
023e939798
4 changed files with 31 additions and 25 deletions
|
@ -1,8 +1,4 @@
|
|||
from unittest.mock import MagicMock
|
||||
|
||||
import pytest
|
||||
|
||||
from aider.scrape import Scraper, install_playwright
|
||||
from aider.scrape import Scraper
|
||||
|
||||
|
||||
class DummyIO:
|
||||
|
@ -23,7 +19,8 @@ class DummyIO:
|
|||
|
||||
def test_scraper_disable_playwright_flag(monkeypatch):
|
||||
io = DummyIO()
|
||||
# Simulate that playwright is not available (disable_playwright just means playwright_available=False)
|
||||
# Simulate that playwright is not available
|
||||
# (disable_playwright just means playwright_available=False)
|
||||
scraper = Scraper(print_error=io.tool_error, playwright_available=False)
|
||||
# Patch scrape_with_httpx to check it is called
|
||||
called = {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue