@@ -469,7 +469,7 @@ equivalent. The easiest way to verify that your code is correct is to
469
469
explicitly construct the result you expect, then compare the actual result to
470
470
the expected correct result::
471
471
472
- def test_constructor_from_0d(self ):
472
+ def test_constructor_from_0d():
473
473
expected = Dataset({None: ([], 0)})[None]
474
474
actual = DataArray(0)
475
475
assert_identical(expected, actual)
@@ -508,8 +508,7 @@ features that we like to use.
508
508
- to set a mark on a parameter, ``pytest.param(..., marks=...) `` syntax should be used
509
509
- ``fixture ``, code for object construction, on a per-test basis
510
510
- using bare ``assert `` for scalars and truth-testing
511
- - ``tm.assert_series_equal `` (and its counter part ``tm.assert_frame_equal ``), for xarray
512
- object comparisons.
511
+ - ``assert_equal `` and ``assert_identical `` from the ``xarray.testing `` module for xarray object comparisons.
513
512
- the typical pattern of constructing an ``expected `` and comparing versus the ``result ``
514
513
515
514
We would name this file ``test_cool_feature.py `` and put in an appropriate place in the
@@ -744,18 +743,6 @@ Doing 'git status' again should give something like::
744
743
# modified: /relative/path/to/file-you-added.py
745
744
#
746
745
747
- Finally, commit your changes to your local repository with an explanatory message.
748
- * Xarray* uses a convention for commit message prefixes and layout. Here are
749
- some common prefixes along with general guidelines for when to use them:
750
-
751
- * ``ENH``: Enhancement, new functionality
752
- * ``BUG``: Bug fix
753
- * ``DOC``: Additions/updates to documentation
754
- * ``TST``: Additions/updates to tests
755
- * ``BLD``: Updates to the build process/scripts
756
- * ``PERF``: Performance improvement
757
- * ``CLN``: Code cleanup
758
-
759
746
The following defines how a commit message should be structured:
760
747
761
748
* A subject line with `< 72 ` chars.
0 commit comments