Skip to content

Siblings handling wrong in YAML units (bugfix)#2496

Merged
Hook25 merged 2 commits into
mainfrom
siblings_handling_wrong
Apr 23, 2026
Merged

Siblings handling wrong in YAML units (bugfix)#2496
Hook25 merged 2 commits into
mainfrom
siblings_handling_wrong

Conversation

@Hook25
Copy link
Copy Markdown
Collaborator

@Hook25 Hook25 commented Apr 22, 2026

Description

Siblings were wrongly assumed to be a string, therefore passed into the _leaf function that only handles strings. Also, the other assert was wrongly assuming the values passed in would only be single keys, but that is not true for siblings.

Resolved issues

Discovered while working on: https://warthogs.atlassian.net/browse/CHECKBOX-2200

Documentation

N/A

Tests

Added unit tests

Siblings were wrongly assumed to be a string, therefore passed into the
_leaf function that only handles strings
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 22, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 58.93%. Comparing base (eba2561) to head (5211c00).
⚠️ Report is 5 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2496      +/-   ##
==========================================
+ Coverage   58.92%   58.93%   +0.01%     
==========================================
  Files         476      476              
  Lines       48022    48037      +15     
  Branches     8570     8576       +6     
==========================================
+ Hits        28297    28312      +15     
  Misses      18833    18833              
  Partials      892      892              
Flag Coverage Δ
checkbox-ng 76.07% <100.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ 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.

Minor: black formatting
@Hook25 Hook25 force-pushed the siblings_handling_wrong branch from cec0dc2 to 5211c00 Compare April 22, 2026 15:38
Copy link
Copy Markdown
Collaborator

@pieqq pieqq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for updating the tests.

@Hook25 Hook25 merged commit aefe138 into main Apr 23, 2026
39 checks passed
@Hook25 Hook25 deleted the siblings_handling_wrong branch April 23, 2026 06:36
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.

2 participants