-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added `chia start daemon` * Added a test case * Fixed lint issues * Reverted changes in `services_for_groups` * Fixed coverage issue
- Loading branch information
1 parent
71ced4c
commit 2f3fce5
Showing
3 changed files
with
19 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters