-
Notifications
You must be signed in to change notification settings - Fork 284
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
Convert unit/fileformats/cf to pytest #5873
Convert unit/fileformats/cf to pytest #5873
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## FEATURE_pytest_conversion #5873 +/- ##
=============================================================
- Coverage 89.75% 89.69% -0.07%
=============================================================
Files 92 92
Lines 22940 22940
Branches 5462 5462
=============================================================
- Hits 20590 20575 -15
- Misses 1619 1638 +19
+ Partials 731 727 -4 ☔ View full report in Codecov by Sentry. |
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.
@pp-mo Nice one.
Some questions to consider.
# TODO: unit tests for existing functionality pre 2021-03-11. | ||
def setUp(self): | ||
def setup_method(self): |
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.
@pp-mo Adopt fixture pattern?
@@ -41,4 +36,4 @@ def test_non_data_names(self): | |||
|
|||
expected_names = [var.cf_name for var in (aux_var, coord_var, coord_var2)] | |||
expected = set(expected_names) | |||
self.assertEqual(expected, self.cf_group.non_data_variable_names) | |||
assert expected == self.cf_group.non_data_variable_names |
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.
@pp-mo Swap order here i.e., actual
== expected
6b9b53a
into
SciTools:FEATURE_pytest_conversion
No description provided.