Skip to content

Commit

Permalink
refactor: clean up module from duplicates
Browse files Browse the repository at this point in the history
  • Loading branch information
vagabondHustler committed Jan 28, 2024
1 parent c6c7e5d commit 7f96499
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions tools/github_actions/cli/handlers/binaries.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,7 @@ def _get_expected_result(name: str) -> tuple[bool, bool, bool, bool]:
return x[name]


def _software_verbose_print(name: str, result: str, exe: bool, log_: bool, cfg: bool, key: bool) -> None:
summary = f"Exe exists: {exe}, Log exists: {log_}, Config exists: {cfg}, Registry key exists: {key}"

def _get_test_result_text(result: bool) -> str:
test_result = "Test failed"
if result:
Expand All @@ -180,14 +179,6 @@ def _get_booleans_result() -> tuple[bool, bool, bool, bool]:
return EXE_INSTALLED_PATH.is_file(), LOG_LOG_PATH.is_file(), CONFIG_TOML_PATH.is_file(), registry_key_exists()


def _get_expected_yea_nah(name: str, yea: str, nah: str) -> tuple:
x = {
"install": (yea, nah, nah, yea),
"executable": (yea, yea, yea, yea),
"uninstall": (nah, yea, yea, nah),
}
return x[name]


def _get_expected_result(name: str) -> tuple[bool, bool, bool, bool]:
x = {
Expand Down

0 comments on commit 7f96499

Please sign in to comment.