def test_log_versions_multiple_package():
    from felling.src.configure_felling import _log_versions

    assert _log_versions([logging, re]) is None
def test_log_versions_other_error():
    from felling.src.configure_felling import _log_versions

    with pytest.raises(TypeError, match="'int' object is not iterable"):
        assert _log_versions(3) is None
def test_log_versions_one_package():
    from felling.src.configure_felling import _log_versions

    assert _log_versions(re) is None
def test_log_versions_invalid_package():
    from felling.src.configure_felling import _log_versions

    with pytest.raises(AttributeError):
        assert _log_versions(os) is None