How to use the requirementslib.utils.convert_entry_to_path 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_convert_to_path(entry, expected):
    assert fs_decode(base_utils.convert_entry_to_path(entry)) == expected
github sarugaku / requirementslib / tests / unit / test_utils.py View on Github external
def test_convert_to_path_failures():
    with pytest.raises(TypeError):
        base_utils.convert_entry_to_path("some_string")
    with pytest.raises(ValueError):
        base_utils.convert_entry_to_path(
            {"git": "https://github.com/sarugaku/vistir.git", "editable": True}
        )
github sarugaku / requirementslib / tests / unit / test_utils.py View on Github external
def test_convert_to_path_failures():
    with pytest.raises(TypeError):
        base_utils.convert_entry_to_path("some_string")
    with pytest.raises(ValueError):
        base_utils.convert_entry_to_path(
            {"git": "https://github.com/sarugaku/vistir.git", "editable": True}
        )