Пример #1
0
def test_minimal_dist_order(tmpdir, minimal_yaml):
    yaml = tmpdir.join("metadata.yaml")
    yaml.write(minimal_yaml)

    m = Metadata(yaml)
    d = Dist("centos7", m)
    assert d.order == ["centos7", "alldists"]
Пример #2
0
def test_dist_minimal_metadata(tmpdir, minimal_yaml):
    yaml = tmpdir.join("metadata.yaml")
    yaml.write(minimal_yaml)

    m = Metadata(yaml)
    d = Dist("centos7", m)
    assert d.metadata == {'pkgformat': 'deb'}
Пример #3
0
def test_dist_minimal(tmpdir, minimal_yaml):
    yaml = tmpdir.join("metadata.yaml")
    yaml.write(minimal_yaml)

    m = Metadata(yaml)
    d = Dist("centos7", m)
    assert d.name == "centos7"
Пример #4
0
def test_dist_order_rec(tmpdir, normal_yaml):
    yaml = tmpdir.join("metadata.yaml")
    yaml.write(normal_yaml)

    m = Metadata(yaml)
    d = Dist("foodist", m)
    assert d.order == ["foodist", "ubuntu1604", "debian", "alldists"]
Пример #5
0
def test_metadata_rec(tmpdir, normal_yaml):
    yaml = tmpdir.join("metadata.yaml")
    yaml.write(normal_yaml)

    m = Metadata(yaml)
    d = Dist("foodist", m)

    assert d.metadata['distname'] == "xenial"
Пример #6
0
def test_metadata(tmpdir, normal_yaml):
    yaml = tmpdir.join("metadata.yaml")
    yaml.write(normal_yaml)

    m = Metadata(yaml)
    d = Dist("centos7", m)

    d.metadata['pkgformat'] == "rpm"