mirror of
https://github.com/hanzoai/python-sdk.git
synced 2026-10-23 20:23:00 +00:00
36 lines
754 B
Python
36 lines
754 B
Python
"""Tests for hanzo-tools-computer."""
|
|
|
|
import pytest
|
|
|
|
|
|
class TestImports:
|
|
"""Test that all modules can be imported."""
|
|
|
|
def test_import_package(self):
|
|
from hanzo_tools import computer
|
|
|
|
assert computer is not None
|
|
|
|
def test_import_tools(self):
|
|
from hanzo_tools.computer import TOOLS
|
|
|
|
assert len(TOOLS) > 0
|
|
|
|
def test_import_computer_tool(self):
|
|
from hanzo_tools.computer import ComputerTool
|
|
|
|
assert ComputerTool.name == "computer"
|
|
|
|
|
|
class TestComputerTool:
|
|
"""Tests for ComputerTool."""
|
|
|
|
@pytest.fixture
|
|
def tool(self):
|
|
from hanzo_tools.computer import ComputerTool
|
|
|
|
return ComputerTool()
|
|
|
|
def test_has_description(self, tool):
|
|
assert tool.description
|