Skip to content

Add a few more tests for the schema#1963

Merged
effigies merged 1 commit intobids-standard:masterfrom
yarikoptic:enh-test-schema
Nov 1, 2024
Merged

Add a few more tests for the schema#1963
effigies merged 1 commit intobids-standard:masterfrom
yarikoptic:enh-test-schema

Conversation

@yarikoptic
Copy link
Copy Markdown
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
@codecov
Copy link
Copy Markdown

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 100 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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
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