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

Changed is_defined into a ThingClass property and improved its documentation. #597

Merged
merged 7 commits into from
May 10, 2023

Conversation

jesper-friis
Copy link
Collaborator

@jesper-friis jesper-friis commented Apr 30, 2023

Description:

Also added tests.

Closes #563

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:

@jesper-friis jesper-friis linked an issue Apr 30, 2023 that may be closed by this pull request
@codecov
Copy link

codecov bot commented Apr 30, 2023

Codecov Report

Merging #597 (39b63f5) into master (7b1c9c4) will increase coverage by 0.19%.
The diff coverage is 75.00%.

@@            Coverage Diff             @@
##           master     #597      +/-   ##
==========================================
+ Coverage   67.28%   67.47%   +0.19%     
==========================================
  Files          16       16              
  Lines        3127     3130       +3     
==========================================
+ Hits         2104     2112       +8     
+ Misses       1023     1018       -5     
Impacted Files Coverage Δ
ontopy/ontology.py 71.74% <0.00%> (-0.41%) ⬇️
ontopy/graph.py 67.85% <100.00%> (ø)
ontopy/patch.py 61.65% <100.00%> (+6.69%) ⬆️

Comment on lines 2 to 4

Implemented as a script, such that it easy to understand and use for debugging.
"""
Copy link
Collaborator

Choose a reason for hiding this comment

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

I really think this is a bad idea. We have implemented pytest and should use that.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I don't think implementing the test as a script defeat pytest in any way. It is picked up and runs nicely with pytest.

Copy link
Collaborator

Choose a reason for hiding this comment

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

This is a very vague title. There is a whole folder called onopy_tests. Shold this go in there? The title of the file should be more specific, and I also think the tests should be made as functions that also are called according to what they test.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I updated the title and renamed the test to ontopy_tests/test_patch.py

@jesper-friis jesper-friis requested a review from francescalb May 9, 2023 15:56
@francescalb francescalb merged commit 19ccb06 into master May 10, 2023
@francescalb francescalb deleted the 563-is_defined-needs-a-better-description branch May 10, 2023 05: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.

is_defined needs a better description
2 participants