Skip to content

Commit 0fdfdf7

Browse files
committed
minor
1 parent 8630aa0 commit 0fdfdf7

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

pyaterochka_api/manager.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ async def _warmup(self) -> None:
8686
locale="ru-RU",
8787
headless=self.headless,
8888
proxy=Proxy(self.proxy).as_dict() if self.proxy else None,
89-
**self.browser_opts,
89+
#**self.browser_opts,
9090
).start()
9191

9292
self.session = HumanBrowser.replace(br)
@@ -104,7 +104,7 @@ async def _warmup(self) -> None:
104104
while not ok or try_count <= 0:
105105
try_count -= 1
106106
try:
107-
await self.page.goto("https://5ka.ru", wait_until="load", timeout=self.timeout_ms)
107+
await self.page.goto("https://5ka.ru/", wait_until="load", timeout=self.timeout_ms)
108108
await self.page.wait_for_selector(
109109
selector="next-route-announcer", state="attached", timeout=self.timeout_ms
110110
)

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@ aiohttp-retry
55

66
pytest
77
pytest-anyio
8+
anyio
89
pytest-jsonschema-snapshot
910
pillow

tests/api_tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ async def test_matrix(url, method):
5252
await resp.text()
5353
elif method == "playwright":
5454
br = await AsyncCamoufox(
55-
locale="en-US",
55+
locale="ru-RU",
5656
headless=False,
5757
proxy=prx.as_dict() if proxy else None,
5858
).start()

0 commit comments

Comments
 (0)