From 90bf9d601401b173b5014b336240323eaa0de3bd Mon Sep 17 00:00:00 2001 From: QIN2DIM <62018067+QIN2DIM@users.noreply.github.com> Date: Thu, 5 Oct 2023 16:32:00 +0800 Subject: [PATCH] Simplified debug log --- hcaptcha_challenger/onnx/modelhub.py | 1 - tests/test_normal_playwright.py | 7 +------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/hcaptcha_challenger/onnx/modelhub.py b/hcaptcha_challenger/onnx/modelhub.py index dcf7026208..e4914b81ba 100644 --- a/hcaptcha_challenger/onnx/modelhub.py +++ b/hcaptcha_challenger/onnx/modelhub.py @@ -160,7 +160,6 @@ def flush_runtime_assets(self, upgrade: bool = False): # Request assets index from remote repository if upgrade is True or not assets_paths or is_outdated: - logger.debug(f"Pulling Assets index file", url=self.release_url) try: resp = httpx.get(self.release_url, timeout=3) data = resp.json()[0] diff --git a/tests/test_normal_playwright.py b/tests/test_normal_playwright.py index 40233e9992..fe9d552cd6 100644 --- a/tests/test_normal_playwright.py +++ b/tests/test_normal_playwright.py @@ -34,9 +34,4 @@ async def test_normal_instance(): probe = list(agent.qr.requester_restricted_answer_set.keys()) question = agent.qr.requester_question print(f">> {pth} - Challenge Result: {result} - {question=} {probe=}") - if result in [agent.status.CHALLENGE_BACKCALL]: - await page.wait_for_timeout(500) - fl = page.frame_locator(agent.HOOK_CHALLENGE) - await fl.locator("//div[@class='refresh button']").click() - elif result in [agent.status.CHALLENGE_SUCCESS]: - return + assert result