From 62fb25d68825021f62f13330a029df7819c10b4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20Bj=C3=A4reholt?= Date: Mon, 28 Oct 2024 11:55:23 +0100 Subject: [PATCH] fix: fixed browser test --- tests/test_browser.py | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/tests/test_browser.py b/tests/test_browser.py index 6efa2538..84937062 100644 --- a/tests/test_browser.py +++ b/tests/test_browser.py @@ -1,19 +1,10 @@ import pytest +# TODO: we should also test lynx backend playwright = pytest.importorskip("playwright") # noreorder -from gptme.tools.browser import load_page, read_url, search # fmt: skip - -# noreorder -from playwright.sync_api import expect # fmt: skip - - -@pytest.mark.slow -def test_browser(): - page = load_page("https://superuserlabs.org") - expect(page.get_by_role("main")).to_contain_text("Erik Bjäreholt") - +from gptme.tools.browser import read_url, search # fmt: skip # FIXME: Broken # @pytest.mark.slow @@ -37,5 +28,5 @@ def test_read_url_with_links(): # check that "Erik Bjäreholt" is present assert "Erik Bjäreholt" in s - # check that markdown link to activitywatch is present - assert "(https://activitywatch.net/)" in s + # check that link to activitywatch is present + assert "https://activitywatch.net/" in s