Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a few more tests for the schema #1963

Merged
merged 1 commit into from
Nov 1, 2024

Conversation

yarikoptic
Copy link
Collaborator

  • "explicit better than implicit" especially in case of tests

when test fails - very hard to debug. hopefully more of checks would help

- "explicit better than implicit" especially in case of tests
Copy link

codecov bot commented Oct 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.87%. Comparing base (790c0fb) to head (b82a9bd).
Report is 7 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1963   +/-   ##
=======================================
  Coverage   86.87%   86.87%           
=======================================
  Files          16       16           
  Lines        1410     1410           
=======================================
  Hits         1225     1225           
  Misses        185      185           

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

@yarikoptic yarikoptic added the exclude-from-changelog This item will not feature in the automatically generated changelog label Oct 18, 2024
@yarikoptic
Copy link
Collaborator Author

ping @effigies and @tsalo on this trivialish PR

Comment on lines +98 to +99
else:
raise AssertionError(f"Object type {object_type} not implemented.")
Copy link
Collaborator

Choose a reason for hiding this comment

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

This makes more sense to me to put up right under for object_type in schema_obj.objects: rather than checking repeatedly.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

if it more of defensive coding to close up if/elif chain to not leave it "untested" -- code should never run into it (it is exception)

@effigies effigies added the schema-code Updates or changes to the code used to parse, filter, and render the schema. label Nov 1, 2024
@effigies effigies merged commit c2685cc into bids-standard:master Nov 1, 2024
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
exclude-from-changelog This item will not feature in the automatically generated changelog schema-code Updates or changes to the code used to parse, filter, and render the schema.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants