1
0
Fork 0
mirror of https://github.com/yavook/kiwi-scp.git synced 2024-11-23 21:23:00 +00:00
kiwi-scp/tests/test_services.py
2022-02-21 16:45:10 +01:00

16 lines
372 B
Python

from ruamel.yaml import CommentedMap
from kiwi_scp.service import Service
from kiwi_scp.services import Services
class TestServices:
def test_empty(self):
s = Service(
name="s",
content=CommentedMap(),
parent_project=None,
)
ss = Services([s])
assert str(ss) == "services:\n s: {}\nconfigs: []"