Files
python-sdk/pkg/hanzo-tools-browser/tests/test_browser_tools.py
T
zooqueenandHanzo Dev 3e974c1135 fix(lint): resolve all ruff + black errors across all packages
Fix 35 ruff errors (E722, F841, B904, B905, B007, E741, S202, S310,
S306, S110, TID251, UP042, F401) and run black on 526 files.

Co-authored-by: Hanzo Dev <[email protected]>
2026-02-21 23:32:32 -08:00

40 lines
873 B
Python

"""Tests for hanzo-tools-browser."""
import pytest
class TestImports:
"""Test that all modules can be imported."""
def test_import_package(self):
from hanzo_tools import browser
assert browser is not None
def test_import_tools(self):
from hanzo_tools.browser import TOOLS
assert len(TOOLS) > 0
def test_import_browser_tool(self):
from hanzo_tools.browser import BrowserTool
assert BrowserTool.name == "browser"
class TestBrowserTool:
"""Tests for BrowserTool."""
@pytest.fixture
def tool(self):
from hanzo_tools.browser import BrowserTool
return BrowserTool()
def test_has_description(self, tool):
assert tool.description
assert (
"browser" in tool.description.lower()
or "playwright" in tool.description.lower()
)