-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
fix unintentional skipped tests #1557
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
Changes from 1 commit
e98bf36
36ad7c3
8768d65
18e01c9
0220da5
27b635b
5b4c966
5f73351
6651516
993992d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1575,6 +1575,10 @@ def test_weakrefs(self): | |
| class TestPyNioAutocloseTrue(TestPyNio): | ||
| autoclose = True | ||
|
|
||
| @requires_pynio | ||
| def setUp(self): | ||
| pass | ||
|
|
||
|
||
|
|
||
| class TestRasterio(TestCase): | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -65,7 +65,6 @@ def easy_array(shape, start=0, stop=1): | |
| return a.reshape(shape) | ||
|
|
||
|
|
||
| @requires_matplotlib | ||
| class PlotTestCase(TestCase): | ||
|
|
||
| def tearDown(self): | ||
|
|
@@ -91,6 +90,7 @@ def contourf_called(self, plotmethod): | |
|
|
||
| class TestPlot(PlotTestCase): | ||
|
|
||
| @requires_matplotlib | ||
|
||
| def setUp(self): | ||
| self.darray = DataArray(easy_array((2, 3, 4))) | ||
|
|
||
|
|
@@ -219,6 +219,7 @@ def test_convenient_facetgrid_4d(self): | |
|
|
||
| class TestPlot1D(PlotTestCase): | ||
|
|
||
| @requires_matplotlib | ||
| def setUp(self): | ||
| d = [0, 1.1, 0, 2] | ||
| self.darray = DataArray(d, coords={'period': range(len(d))}, | ||
|
|
@@ -279,6 +280,7 @@ def test_slice_in_title(self): | |
|
|
||
| class TestPlotHistogram(PlotTestCase): | ||
|
|
||
| @requires_matplotlib | ||
| def setUp(self): | ||
| self.darray = DataArray(easy_array((2, 3, 4))) | ||
|
|
||
|
|
@@ -316,9 +318,9 @@ def test_plot_nans(self): | |
| self.darray.plot.hist() | ||
|
|
||
|
|
||
| @requires_matplotlib | ||
| class TestDetermineCmapParams(TestCase): | ||
|
|
||
| @requires_matplotlib | ||
| def setUp(self): | ||
| self.data = np.linspace(0, 1, num=100) | ||
|
|
||
|
|
@@ -467,9 +469,9 @@ def test_divergentcontrol(self): | |
| self.assertEqual(cmap_params['cmap'].name, "viridis") | ||
|
|
||
|
|
||
| @requires_matplotlib | ||
| class TestDiscreteColorMap(TestCase): | ||
|
|
||
| @requires_matplotlib | ||
| def setUp(self): | ||
| x = np.arange(start=0, stop=10, step=2) | ||
| y = np.arange(start=9, stop=-7, step=-3) | ||
|
|
@@ -559,6 +561,7 @@ class Common2dMixin: | |
| Should have the same name as the method. | ||
| """ | ||
|
|
||
| @requires_matplotlib | ||
| def setUp(self): | ||
| da = DataArray(easy_array( | ||
| (10, 15), start=-1), dims=['y', 'x']) | ||
|
|
@@ -1019,6 +1022,7 @@ def test_2d_coord_names(self): | |
|
|
||
| class TestFacetGrid(PlotTestCase): | ||
|
|
||
| @requires_matplotlib | ||
| def setUp(self): | ||
| d = easy_array((10, 15, 3)) | ||
| self.darray = DataArray(d, dims=['y', 'x', 'z'], | ||
|
|
@@ -1242,6 +1246,7 @@ def test_facetgrid_polar(self): | |
|
|
||
| class TestFacetGrid4d(PlotTestCase): | ||
|
|
||
| @requires_matplotlib | ||
| def setUp(self): | ||
| a = easy_array((10, 15, 3, 2)) | ||
| darray = DataArray(a, dims=['y', 'x', 'col', 'row']) | ||
|
|
@@ -1270,6 +1275,7 @@ def test_default_labels(self): | |
|
|
||
| class TestDatetimePlot(PlotTestCase): | ||
|
|
||
| @requires_matplotlib | ||
| def setUp(self): | ||
| ''' | ||
| Create a DataArray with a time-axis that contains datetime objects. | ||
|
|
||
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.
This is temporary for xarray, but from a user (or distributor) perspective the bug is fixed. I would probably drop that part.