Skip to content

Commit 4b61836

Browse files
committed
Add integration test
1 parent cb519ed commit 4b61836

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

tests/integration/test_init.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,3 +141,22 @@ def test_run_init_basic(cli: CliRunCallable, tmp_path: Path) -> None:
141141
result = cli(f"{CREATOR_BIN} init testorg.testcol --init-path {tmp_path} --no-overwrite")
142142
assert result.returncode != 0
143143
assert re.search(r"The flag `--no-overwrite` restricts overwriting.", result.stderr) is not None
144+
145+
146+
def test_run_init_ee(cli: CliRunCallable, tmp_path: Path) -> None:
147+
"""Test running ansible-creator init for ee_project.
148+
149+
Args:
150+
cli: cli_run function.
151+
tmp_path: Temporary path.
152+
"""
153+
final_dest = f"{tmp_path}/ee_project"
154+
cli(f"mkdir -p {final_dest}")
155+
156+
result = cli(
157+
f"{CREATOR_BIN} init execution_env {final_dest}",
158+
)
159+
assert result.returncode == 0
160+
161+
# check stdout
162+
assert re.search(r"Note: execution_env project created at", result.stdout) is not None

0 commit comments

Comments
 (0)