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(entry, expected): assert base_utils.convert_entry_to_path(entry) == expected