from src.errors import PermanentError, TransientError def test_permanent_error_is_exception() -> None: err = PermanentError("bad input") assert isinstance(err, Exception) assert str(err) == "bad input" def test_transient_error_is_exception() -> None: err = TransientError("timeout") assert isinstance(err, Exception)