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

Skip checking dimensional units for domain ontologies that doesn't load this class. #677

Merged
merged 3 commits into from
Nov 23, 2023

Conversation

jesper-friis
Copy link
Collaborator

Description

Do not check SI dimensional units if the checked domain ontology does not load that class.

Type of change

  • Bug fix.
  • New feature.
  • Documentation update.
  • Test update.

Checklist

This checklist can be used as a help for the reviewer.

  • Is the code easy to read and understand?
  • Are comments for humans to read, not computers to disregard?
  • Does a new feature has an accompanying new test (in the CI or unit testing schemes)?
  • Has the documentation been updated as necessary?
  • Does this close the issue?
  • Is the change limited to the issue?
  • Are errors handled for all outcomes?
  • Does the new feature provide new restrictions on dependencies, and if so is this documented?

Comments

Copy link

codecov bot commented Nov 21, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (c2696ce) 70.09% compared to head (da03e1f) 70.67%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #677      +/-   ##
==========================================
+ Coverage   70.09%   70.67%   +0.58%     
==========================================
  Files          16       16              
  Lines        3367     3369       +2     
==========================================
+ Hits         2360     2381      +21     
+ Misses       1007      988      -19     

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

Copy link
Collaborator

@francescalb francescalb left a comment

Choose a reason for hiding this comment

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

In PR#658 test_emmocheck_module was added, but it is not actually testing anything when run with pytest. So apart tests/tools/test_emmocheck there i nothing that tests emmocheck here. The tool only checks that it runs, but nothing more (it passes as test even if the emmocheck fails)

Please update the test so that it is actually run and then that it fails when emmocheck fails.

@jesper-friis
Copy link
Collaborator Author

Please update the test so that it is actually run and then that it fails when emmocheck fails.

This PR just skip testing dimensionalities for ontologies that doesn't import the relevant modules. Isn't adding general tests for emmocheck another issue?

Copy link
Collaborator

@francescalb francescalb left a comment

Choose a reason for hiding this comment

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

Appoved, but make an issue about creating a test.

@jesper-friis jesper-friis merged commit 7fd9eae into master Nov 23, 2023
12 checks passed
@jesper-friis jesper-friis deleted the SIDimensionalUnit branch November 23, 2023 16:56
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