feat: accept both .hokusai.yaml and .hokusai.yml config suffixes

This commit is contained in:
Konstantin Fickel 2026-02-20 20:33:10 +01:00
parent 1f75c72a96
commit d772f5dcc5
Signed by: kfickel
GPG key ID: A793722F9933C1A5
2 changed files with 13 additions and 8 deletions

View file

@ -42,7 +42,7 @@ class TestFindConfig:
mock_path_cls.cwd.return_value = tmp_path
result = runner.invoke(app, ["build"])
assert result.exit_code != 0
assert "No .hokusai.yaml file found" in result.output
assert "No .hokusai.yaml/.yml file found" in result.output
def test_multiple_config_files(self, tmp_path: Path) -> None:
_ = (tmp_path / "a.hokusai.yaml").write_text(
@ -55,7 +55,7 @@ class TestFindConfig:
mock_path_cls.cwd.return_value = tmp_path
result = runner.invoke(app, ["build"])
assert result.exit_code != 0
assert "Multiple .hokusai.yaml files found" in result.output
assert "Multiple .hokusai.yaml/.yml files found" in result.output
class TestBuildCommand: