Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_convert_to_path(entry, expected):
assert fs_decode(base_utils.convert_entry_to_path(entry)) == expected
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}
)
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}
)