feat: accept both .hokusai.yaml and .hokusai.yml config suffixes
This commit is contained in:
parent
1f75c72a96
commit
d772f5dcc5
2 changed files with 13 additions and 8 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue