How to use the requirementslib.models.utils.filter_none function in requirementslib

To help you get started, we’ve selected a few requirementslib examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github sarugaku / requirementslib / tests / unit / test_utils.py View on Github external
def test_filter_none():
    assert utils.filter_none("abc", "") is False
    assert utils.filter_none("abc", None) is False
    assert utils.filter_none("abc", []) is False
    assert utils.filter_none("abc", "asdf") is True
github sarugaku / requirementslib / tests / unit / test_utils.py View on Github external
def test_filter_none():
    assert utils.filter_none("abc", "") is False
    assert utils.filter_none("abc", None) is False
    assert utils.filter_none("abc", []) is False
    assert utils.filter_none("abc", "asdf") is True
github sarugaku / requirementslib / tests / unit / test_utils.py View on Github external
def test_filter_none():
    assert utils.filter_none("abc", "") is False
    assert utils.filter_none("abc", None) is False
    assert utils.filter_none("abc", []) is False
    assert utils.filter_none("abc", "asdf") is True
github sarugaku / requirementslib / tests / unit / test_utils.py View on Github external
def test_filter_none():
    assert utils.filter_none("abc", "") is False
    assert utils.filter_none("abc", None) is False
    assert utils.filter_none("abc", []) is False
    assert utils.filter_none("abc", "asdf") is True