Skip to content

Commit

Permalink
chore: testing ci
Browse files Browse the repository at this point in the history
  • Loading branch information
aorumbayev committed Aug 23, 2024
1 parent 03daa76 commit 2743916
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/portability/test_pyinstaller_binary.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,19 @@ def command_str_to_list(command: str) -> list[str]:
(command_str_to_list("algokit doctor"), [0]),
(command_str_to_list("algokit task vanity-address PY"), [0]),
(command_str_to_list("algokit -v init --name playground -t python --no-git --no-ide"), [0]),
(command_str_to_list("cd playground && algokit project run build -- hello_world"), [0]),
(command_str_to_list("algokit project run build -- hello_world"), [0]),
],
)
def test_non_interactive_algokit_commands(
command: list[str], exit_codes: list[int], tmp_path_factory: pytest.TempPathFactory
) -> None:
cwd = tmp_path_factory.mktemp("cwd")

# Create a 'playground' directory
if "build" in command:
cwd = cwd / "playground"
cwd.mkdir(exist_ok=True)

execution_result = subprocess.run(command, capture_output=True, text=True, check=False, cwd=cwd)
logger.info(f"Command {command} returned {execution_result.stdout}")

Expand Down

0 comments on commit 2743916

Please sign in to comment.