Skip to content

Commit ae8eb41

Browse files
committed
fixup! feat: Read config from config file or pyproject.toml
1 parent 56a1f31 commit ae8eb41

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

tests/test_cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def test_show_help(capsys: pytest.CaptureFixture) -> None:
2727

2828
def test_render_self() -> None:
2929
"""Render docs for itself."""
30-
cli.main(["griffe2md", "-o/dev/null"])
30+
cli.main(["griffe2md"])
3131

3232

3333
def test_show_version(capsys: pytest.CaptureFixture) -> None:

tests/test_config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ def test_load_config(tmpdir: Path, rel_path: Path) -> None:
2323
config_path.parent.mkdir(parents=True, exist_ok=True)
2424
config_path.write_text(text, "utf-8")
2525

26-
griffe2md.cli.main(["griffe2md", "-o/dev/null"])
26+
griffe2md.cli.main(["griffe2md"])
2727

28-
mock_write.assert_called_once_with("griffe2md", expected_config, "/dev/null")
28+
mock_write.assert_called_once_with("griffe2md", expected_config, None)

0 commit comments

Comments
 (0)