mirror of
https://github.com/hanzoai/python-sdk.git
synced 2026-10-23 20:23:00 +00:00
32 lines
627 B
Python
32 lines
627 B
Python
"""Tests for hanzo-tools-config."""
|
|
|
|
import pytest
|
|
|
|
|
|
class TestImports:
|
|
"""Test that all modules can be imported."""
|
|
|
|
def test_import_package(self):
|
|
from hanzo_tools import config
|
|
|
|
assert config is not None
|
|
|
|
def test_import_tools(self):
|
|
from hanzo_tools.config import TOOLS
|
|
|
|
assert len(TOOLS) > 0
|
|
|
|
|
|
class TestConfigTool:
|
|
"""Tests for config tools."""
|
|
|
|
@pytest.fixture
|
|
def tool(self):
|
|
from hanzo_tools.config import TOOLS
|
|
|
|
return TOOLS[0]() if TOOLS else None
|
|
|
|
def test_has_description(self, tool):
|
|
if tool:
|
|
assert tool.description
|