Test coverage
This commit is contained in:
parent
8d2c1e1fac
commit
b8027777d9
2 changed files with 10 additions and 1 deletions
|
@ -157,9 +157,13 @@ class TestProject:
|
|||
c = KiwiConfig(projects=None)
|
||||
|
||||
assert c == KiwiConfig(projects=[])
|
||||
|
||||
assert c.projects == []
|
||||
|
||||
with pytest.raises(ValueError) as exc_info:
|
||||
c.get_project_config("invalid")
|
||||
|
||||
assert str(exc_info.value) == "No Such Project"
|
||||
|
||||
def test_long(self):
|
||||
kiwi_dict = {
|
||||
"name": "project",
|
||||
|
@ -171,6 +175,7 @@ class TestProject:
|
|||
assert len(c.projects) == 1
|
||||
p = c.projects[0]
|
||||
assert p.name == "project"
|
||||
assert p == c.get_project_config("project")
|
||||
assert not p.enabled
|
||||
assert p.override_storage is not None
|
||||
|
||||
|
|
|
@ -14,6 +14,10 @@ class TestDefault:
|
|||
|
||||
assert p.name == "hello-world.project"
|
||||
|
||||
s = list(i.get_services(p.name))
|
||||
|
||||
assert len(s) == 5
|
||||
|
||||
def test_empty(self):
|
||||
i = Instance()
|
||||
|
||||
|
|
Loading…
Reference in a new issue