mirror of
https://github.com/basicmachines-co/basic-memory
synced 2026-06-21 13:47:35 +00:00
5b4f0eafcc
* configure logging * set mcp output logging also * fix type check errors * fix type check * rename Permalink schema type * fix type errors * add typechecks to ci workflow * pytest coverage setup * add tests for status cli * sync tests coverage * watch_service test coverage * tests for tool_utils.py * clean up imports * file_utils coverage * markdown plugins coverage * 99% test coverage * more test coverage, remove ObservationCategory * more tool coverage * fix type-check * format, upgrade deps --------- Co-authored-by: phernandez <phernandez@basicmachines.co>
18 lines
401 B
Python
18 lines
401 B
Python
"""Test how markdown-it handles task lists."""
|
|
|
|
from markdown_it import MarkdownIt
|
|
|
|
|
|
def test_task_token_type():
|
|
"""Verify how markdown-it parses task list items."""
|
|
md = MarkdownIt()
|
|
content = """
|
|
- [ ] Unchecked task
|
|
- [x] Completed task
|
|
- [-] In progress task
|
|
"""
|
|
|
|
tokens = md.parse(content)
|
|
for token in tokens:
|
|
print(f"{token.type}: {token.content}")
|