Files

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