-
Notifications
You must be signed in to change notification settings - Fork 279
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
pytest migration for unit.common.metadata.test_AncillaryVariableMetadata #5854
pytest migration for unit.common.metadata.test_AncillaryVariableMetadata #5854
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## FEATURE_pytest_conversion #5854 +/- ##
=============================================================
- Coverage 89.74% 89.74% -0.01%
=============================================================
Files 92 92
Lines 22940 22940
Branches 5462 5462
=============================================================
- Hits 20588 20587 -1
- Misses 1620 1621 +1
Partials 732 732 ☔ View full report in Codecov by Sentry. |
54c0ade
to
3deb01a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some more tiny style suggestions
self.cls = AncillaryVariableMetadata | ||
|
||
def test_wraps_docstring(self): | ||
self.assertEqual(BaseMetadata.__eq__.__doc__, self.cls.__eq__.__doc__) | ||
assert BaseMetadata.__eq__.__doc__ == self.cls.__eq__.__doc__ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this check would be less confusing the other way around
self.cls = AncillaryVariableMetadata | ||
self.none = self.cls(*(None,) * len(self.cls._fields)) | ||
|
||
def test_wraps_docstring(self): | ||
self.assertEqual(BaseMetadata.combine.__doc__, self.cls.combine.__doc__) | ||
assert BaseMetadata.combine.__doc__ == self.cls.combine.__doc__ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As above -- other way round ?
self.cls = AncillaryVariableMetadata | ||
self.none = self.cls(*(None,) * len(self.cls._fields)) | ||
|
||
def test_wraps_docstring(self): | ||
self.assertEqual(BaseMetadata.difference.__doc__, self.cls.difference.__doc__) | ||
assert BaseMetadata.difference.__doc__ == self.cls.difference.__doc__ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another for the other-way-round
self.cls = AncillaryVariableMetadata | ||
self.none = self.cls(*(None,) * len(self.cls._fields)) | ||
|
||
def test_wraps_docstring(self): | ||
self.assertEqual(BaseMetadata.equal.__doc__, self.cls.equal.__doc__) | ||
assert BaseMetadata.equal.__doc__ == self.cls.equal.__doc__ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
other way round
eb21150
to
abfc7ee
Compare
🚀 Pull Request
Description
Consult Iris pull request check list
Add any of the below labels to trigger actions on this PR: