Skip to content

Conversation

@twaugh
Copy link
Owner

@twaugh twaugh commented Jan 19, 2026

Add comprehensive unit tests for _augment_outline_with_ids() to verify it correctly handles:

  • Simple journal entries without frontmatter
  • Journals with frontmatter (date, tags properties)
  • Nested block hierarchies
  • Preservation of existing id:: properties

These tests prevent regressions when the logseq-outline-parser package is updated but not reinstalled in development environments. The function requires the updated generate_full_context() signature that accepts frontmatter as the fourth parameter.

Fixes TypeError when extracting from journals with frontmatter:
TypeError: generate_full_context() takes from 2 to 3 positional arguments
but 4 were given

Assisted-by: Claude Code

Add comprehensive unit tests for _augment_outline_with_ids() to verify it
correctly handles:
- Simple journal entries without frontmatter
- Journals with frontmatter (date, tags properties)
- Nested block hierarchies
- Preservation of existing id:: properties

These tests prevent regressions when the logseq-outline-parser package is
updated but not reinstalled in development environments. The function requires
the updated generate_full_context() signature that accepts frontmatter as the
fourth parameter.

Fixes TypeError when extracting from journals with frontmatter:
  TypeError: generate_full_context() takes from 2 to 3 positional arguments
  but 4 were given

Assisted-by: Claude Code
@codecov-commenter
Copy link

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.69%. Comparing base (a1b63f5) to head (0edfa3b).

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #44   +/-   ##
=======================================
  Coverage   84.69%   84.69%           
=======================================
  Files          48       48           
  Lines        5137     5137           
=======================================
  Hits         4351     4351           
  Misses        786      786           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@twaugh twaugh merged commit 8418fad into main Jan 19, 2026
1 check passed
@twaugh twaugh deleted the traceback-fix branch January 19, 2026 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants