Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ build-backend = "hatchling.build"

[tool.hatch.build]
packages = ["trushell"]
include = ["README.md", "LICENSE", "trushell/sounds/*"]
include = ["README.md", "LICENSE", "trushell/sounds/*", "trushell/config/*"]

[tool.ruff]
line-length = 88
Expand Down
8 changes: 7 additions & 1 deletion tests/test_help_docs.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,24 @@
from __future__ import annotations

import importlib
from types import SimpleNamespace

from trushell.commands.core import run_help


def test_run_help_prints_docstring_for_known_command(monkeypatch, capsys):
def _fake_import_module(path: str):
module = importlib.import_module(path.replace("/", ".").removesuffix(".py"))
return module

fake_kernel = SimpleNamespace(
registry={
"settings": {
"path": "trushell/commands/settings.py",
"function": "run_settings",
}
}
},
_import_module=_fake_import_module,
)

# Provide a minimal module object with the expected function and
Expand Down
Loading