chore: rename bulkgen to hokusai
This commit is contained in:
parent
a28cc97aed
commit
4def49350e
32 changed files with 215 additions and 213 deletions
|
|
@ -1,4 +1,4 @@
|
|||
"""Integration tests for bulkgen.config."""
|
||||
"""Integration tests for hokusai.config."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
|
|
@ -7,14 +7,14 @@ from pathlib import Path
|
|||
import pytest
|
||||
import yaml
|
||||
|
||||
from bulkgen.config import load_config
|
||||
from hokusai.config import load_config
|
||||
|
||||
|
||||
class TestLoadConfig:
|
||||
"""Test loading and validating YAML config files end-to-end."""
|
||||
|
||||
def test_minimal_config(self, project_dir: Path) -> None:
|
||||
config_path = project_dir / "test.bulkgen.yaml"
|
||||
config_path = project_dir / "test.hokusai.yaml"
|
||||
_ = config_path.write_text(
|
||||
yaml.dump({"targets": {"out.txt": {"prompt": "hello"}}})
|
||||
)
|
||||
|
|
@ -47,7 +47,7 @@ class TestLoadConfig:
|
|||
},
|
||||
},
|
||||
}
|
||||
config_path = project_dir / "full.bulkgen.yaml"
|
||||
config_path = project_dir / "full.hokusai.yaml"
|
||||
_ = config_path.write_text(yaml.dump(raw, default_flow_style=False))
|
||||
|
||||
config = load_config(config_path)
|
||||
|
|
@ -67,14 +67,14 @@ class TestLoadConfig:
|
|||
assert story.inputs == ["banner.png"]
|
||||
|
||||
def test_empty_targets_rejected(self, project_dir: Path) -> None:
|
||||
config_path = project_dir / "empty.bulkgen.yaml"
|
||||
config_path = project_dir / "empty.hokusai.yaml"
|
||||
_ = config_path.write_text(yaml.dump({"targets": {}}))
|
||||
|
||||
with pytest.raises(Exception, match="At least one target"):
|
||||
_ = load_config(config_path)
|
||||
|
||||
def test_missing_prompt_rejected(self, project_dir: Path) -> None:
|
||||
config_path = project_dir / "bad.bulkgen.yaml"
|
||||
config_path = project_dir / "bad.hokusai.yaml"
|
||||
_ = config_path.write_text(yaml.dump({"targets": {"out.txt": {}}}))
|
||||
|
||||
with pytest.raises(Exception):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue