Exemple #1
0
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')
Exemple #2
0
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")
Exemple #3
0
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')