Skip to content

Main Module Testsโš“๏ธŽ

Overviewโš“๏ธŽ

The main module tests (test_ezpz.py) verify the core functionality of the ezpz package, including initialization, version checking, and basic imports.

Test Casesโš“๏ธŽ

test_ezpz_importsโš“๏ธŽ

Verifies that the ezpz package can be imported without errors.

def test_ezpz_imports():
    """Test that ezpz can be imported without errors."""
    assert ezpz is not None

test_ezpz_versionโš“๏ธŽ

Ensures that the ezpz package has a valid version string.

def test_ezpz_version():
    """Test that ezpz has a version."""
    assert hasattr(ezpz, "__version__")
    assert isinstance(ezpz.__version__, str)
    assert len(ezpz.__version__) > 0

test_ezpz_loggerโš“๏ธŽ

Tests the logger creation functionality.

def test_ezpz_logger():
    """Test that get_logger function works."""
    logger = ezpz.get_logger("test")
    assert logger is not None
    assert hasattr(logger, "info")
    assert hasattr(logger, "error")
    assert hasattr(logger, "debug")

Running Testsโš“๏ธŽ

python -m pytest tests/test_ezpz.py