Skip to content

Commit f671717

Browse files
neilcampbelldaniel-makerx
authored andcommitted
chore: fix build issues
1 parent f21ad8f commit f671717

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

tests/test_generators.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@
3232
"--",
3333
"hello_world",
3434
]
35+
JS_PKG_MGR_ARGS = ["algokit", "config", "js-package-manager", "npm"]
36+
PY_PKG_MGR_ARGS = ["algokit", "config", "py-package-manager", "poetry"]
3537

3638

3739
def _load_copier_yaml(path: Path) -> dict[str, str | bool | dict]:
@@ -133,7 +135,12 @@ def check_codebase(working_dir: Path, test_name: str) -> subprocess.CompletedPro
133135
content = src_path_pattern.sub("_src_path: <src>", content)
134136
copier_answers.write_text(content, "utf-8")
135137

136-
check_args = [BUILD_ARGS, BUILD_SINGLE_CONTRACT_ARGS]
138+
check_args = [
139+
JS_PKG_MGR_ARGS,
140+
PY_PKG_MGR_ARGS,
141+
BUILD_ARGS,
142+
BUILD_SINGLE_CONTRACT_ARGS,
143+
]
137144

138145
processed_questions = _load_copier_yaml(copier_answers)
139146
if processed_questions["preset_name"] == "production":

tests/test_templates.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
BUILD_ARGS = ["algokit", "project", "run", "build"]
2323
TEST_ARGS = ["algokit", "project", "run", "test"]
2424
LINT_ARGS = ["algokit", "project", "run", "lint"]
25+
JS_PKG_MGR_ARGS = ["algokit", "config", "js-package-manager", "npm"]
26+
PY_PKG_MGR_ARGS = ["algokit", "config", "py-package-manager", "poetry"]
2527

2628

2729
def _load_copier_yaml(path: Path) -> dict[str, str | bool | dict]:
@@ -120,7 +122,7 @@ def run_init(
120122
content = src_path_pattern.sub("_src_path: <src>", content)
121123
copier_answers.write_text(content, "utf-8")
122124

123-
check_args = [BUILD_ARGS]
125+
check_args = [JS_PKG_MGR_ARGS, PY_PKG_MGR_ARGS, BUILD_ARGS]
124126

125127
processed_questions = _load_copier_yaml(copier_answers)
126128
if processed_questions["preset_name"] == "production":

0 commit comments

Comments
 (0)