2021-11-03 16:35:36 +00:00
|
|
|
from ruamel.yaml import CommentedMap
|
|
|
|
|
2021-12-02 16:08:14 +00:00
|
|
|
from kiwi_scp.service import Service
|
2022-02-21 15:45:10 +00:00
|
|
|
from kiwi_scp.services import Services
|
2021-11-03 16:35:36 +00:00
|
|
|
|
|
|
|
|
|
|
|
class TestServices:
|
|
|
|
def test_empty(self):
|
|
|
|
s = Service(
|
|
|
|
name="s",
|
|
|
|
content=CommentedMap(),
|
2022-01-27 14:26:10 +00:00
|
|
|
parent_project=None,
|
2021-11-03 16:35:36 +00:00
|
|
|
)
|
|
|
|
ss = Services([s])
|
|
|
|
|
2022-01-27 17:06:27 +00:00
|
|
|
assert str(ss) == "services:\n s: {}\nconfigs: []"
|