mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2026-08-29 10:06:27 -05:00
* Added `chia start daemon` * Added a test case * Fixed lint issues * Reverted changes in `services_for_groups` * Fixed coverage issue
16 lines
403 B
Python
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
|