Files
chia-blockchain/chia/_tests/util/test_service_groups.py
Izumi HoshinoandGitHub 2f3fce5c85 Added chia start daemon (#17704)
* Added `chia start daemon`

* Added a test case

* Fixed lint issues

* Reverted changes in `services_for_groups`

* Fixed coverage issue
2024-03-18 09:43:55 -07:00

16 lines
403 B
Python

from __future__ import annotations
from chia.util.service_groups import services_for_groups
def test_services_for_groups() -> None:
i = 0
for service in services_for_groups(["harvester"]):
assert service == "chia_harvester"
i += 1
assert i == 1
for _ in services_for_groups(["daemon"]):
# The loop should never be run
assert False # pragma: no cover