Skip to content

Commit 189ca0a

Browse files
test: add patch_markdown_headings to messaging package export tests
- Update test expectations in test_messaging_init.py to include the new patch_markdown_headings function in the public API exports - Add E402 lint ignore for code_puppy/messaging/__init__.py in pyproject.toml to allow for module-level imports that are part of the package's initialization logic
1 parent 4b184cd commit 189ca0a

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ path = "code_puppy/models_dev_api.json"
7979
[tool.ruff.lint.per-file-ignores]
8080
"code_puppy/main.py" = ["E402"]
8181
"code_puppy/cli_runner.py" = ["E402"]
82+
"code_puppy/messaging/__init__.py" = ["E402"]
8283

8384
[tool.pytest.ini_options]
8485
addopts = "--cov=code_puppy --cov-report=term-missing"

tests/test_messaging_init.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,8 @@ def test_expected_export_count(self):
163163
"RichConsoleRenderer",
164164
"DEFAULT_STYLES",
165165
"DIFF_STYLES",
166+
# Markdown patches
167+
"patch_markdown_headings",
166168
# Session management
167169
"set_session_context",
168170
"get_session_context",

0 commit comments

Comments
 (0)