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.

1
2
3
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.

1
2
3
4
5
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.

1
2
3
4
5
6
7
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