Skip to content

Commit fc0b834

Browse files
test(gameassets): update tests for YAML manifest format
Update test assertions from manifest.csv to manifest.yaml after init/dream now generates YAML by default. All 127 tests pass. Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
1 parent e9fc962 commit fc0b834

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

GameAssets/tests/test_cli.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def test_init_creates_files(runner: CliRunner, tmp_path: Path) -> None:
3333
r = runner.invoke(cli, ["init", "--path", str(tmp_path)])
3434
assert r.exit_code == 0
3535
assert (tmp_path / "game.yaml").is_file()
36-
assert (tmp_path / "manifest.csv").is_file()
36+
assert (tmp_path / "manifest.yaml").is_file()
3737

3838

3939
def test_init_refuses_overwrite_without_force(runner: CliRunner, tmp_path: Path) -> None:
@@ -60,7 +60,7 @@ def test_prompts_after_init(runner: CliRunner, tmp_path: Path) -> None:
6060
"--profile",
6161
str(tmp_path / "game.yaml"),
6262
"--manifest",
63-
str(tmp_path / "manifest.csv"),
63+
str(tmp_path / "manifest.yaml"),
6464
],
6565
)
6666
assert r2.exit_code == 0
@@ -77,7 +77,7 @@ def test_prompts_jsonl_output(runner: CliRunner, tmp_path: Path) -> None:
7777
"--profile",
7878
str(tmp_path / "game.yaml"),
7979
"--manifest",
80-
str(tmp_path / "manifest.csv"),
80+
str(tmp_path / "manifest.yaml"),
8181
"-o",
8282
str(out),
8383
],
@@ -106,7 +106,7 @@ def test_batch_dry_run_json(runner: CliRunner, tmp_path: Path, monkeypatch: pyte
106106
"--profile",
107107
str(tmp_path / "game.yaml"),
108108
"--manifest",
109-
str(tmp_path / "manifest.csv"),
109+
str(tmp_path / "manifest.yaml"),
110110
],
111111
)
112112
assert r.exit_code == 0
@@ -128,7 +128,7 @@ def test_handoff_dry_run(runner: CliRunner, tmp_path: Path) -> None:
128128
"--profile",
129129
str(tmp_path / "game.yaml"),
130130
"--manifest",
131-
str(tmp_path / "manifest.csv"),
131+
str(tmp_path / "manifest.yaml"),
132132
"--public-dir",
133133
str(pub),
134134
"--dry-run",
@@ -153,7 +153,7 @@ def test_batch_dry_run(runner: CliRunner, tmp_path: Path, monkeypatch: pytest.Mo
153153
"--profile",
154154
str(tmp_path / "game.yaml"),
155155
"--manifest",
156-
str(tmp_path / "manifest.csv"),
156+
str(tmp_path / "manifest.yaml"),
157157
],
158158
)
159159
assert r.exit_code == 0
@@ -172,7 +172,7 @@ def test_batch_dry_run_json_requires_dry_run(runner: CliRunner, tmp_path: Path)
172172
"--profile",
173173
str(tmp_path / "game.yaml"),
174174
"--manifest",
175-
str(tmp_path / "manifest.csv"),
175+
str(tmp_path / "manifest.yaml"),
176176
],
177177
)
178178
assert r.exit_code != 0
@@ -197,7 +197,7 @@ def test_dream_dry_run(runner: CliRunner, tmp_path: Path) -> None:
197197
project = project_dirs[0]
198198
batch_dir = project / "_batch"
199199
assert (batch_dir / "game.yaml").is_file()
200-
assert (batch_dir / "manifest.csv").is_file()
200+
assert (batch_dir / "manifest.yaml").is_file()
201201
assert (batch_dir / "dream_plan.json").is_file()
202202

203203

@@ -234,7 +234,7 @@ def test_batch_skip_text2d_requires_3d_generation(runner: CliRunner, tmp_path: P
234234
"--profile",
235235
str(tmp_path / "game.yaml"),
236236
"--manifest",
237-
str(tmp_path / "manifest.csv"),
237+
str(tmp_path / "manifest.yaml"),
238238
],
239239
)
240240
assert r.exit_code != 0

GameAssets/tests/test_dream_emitter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ class TestEmitAll:
209209
def test_creates_files(self, tmp_path: Path) -> None:
210210
paths = emit_all(_sample_plan(), tmp_path)
211211
assert paths["game_yaml"].is_file()
212-
assert paths["manifest_csv"].is_file()
212+
assert paths["manifest_yaml"].is_file()
213213
assert paths["world_xml"].is_file()
214214
assert paths["main_ts"].is_file()
215215
assert paths["index_html"].is_file()

0 commit comments

Comments
 (0)