def path_volume_cfg_test(tmpdir): my_path = str(tmpdir.mkdir("bla")) v = VolumeManager() cfg = ConfigDict({'volumes': ConfigDict({'my': my_path})}) assert v.parse_config(cfg) assert v.get_all_names() == ['my'] assert v.is_volume('MY')
def path_volume_cfg_test(tmpdir): my_path = str(tmpdir.mkdir("bla")) v = VolumeManager() cfg = ConfigDict({"volumes": ["my:" + my_path]}) assert v.parse_config(cfg) assert v.get_all_names() == ["my"] assert v.is_volume("MY")
def path_volume_cfg_test(tmpdir): my_path = str(tmpdir.mkdir("bla")) v = VolumeManager() cfg = ConfigDict({ 'volumes': [ 'my:' + my_path ] }) assert v.parse_config(cfg) assert v.get_all_names() == ['my'] assert v.is_volume('MY')