diff --git a/tests/filters_test.py b/tests/filters_test.py index 19f518bf..17c457d8 100644 --- a/tests/filters_test.py +++ b/tests/filters_test.py @@ -809,7 +809,6 @@ def test_conversion(self): wpdi = dsa.WrapDataObject(converted) points = np.array(wpdi.Points) self.assertTrue(np.allclose(points, data[['x_utm', 'y_utm', 'altitude']])) - return True ############################################################################### @@ -910,7 +909,6 @@ def test(self): data = PVGeo.model_build.CreateTensorMesh().apply() thresh = PercentThreshold(percent=75).apply(data, 'Random Data') self.assertTrue(isinstance(thresh, vtk.vtkUnstructuredGrid)) - return True ############################################################################### @@ -938,7 +936,6 @@ def test(self): # Make sure there is a new 'Colors' Array arr = colored.GetPointData().GetArray('Colors') self.assertTrue(isinstance(arr, vtk.vtkUnsignedCharArray)) - return True ############################################################################### @@ -962,7 +959,6 @@ def test(self): mesh = BuildSurfaceFromPoints(zcoords=z_range).apply(poly) assert isinstance(mesh, pyvista.StructuredGrid) assert mesh.dimensions == (len(z_range), len(points), 1) - return True ############################################################################### diff --git a/tests/gslib_test.py b/tests/gslib_test.py index 1d0f1031..806be5ba 100644 --- a/tests/gslib_test.py +++ b/tests/gslib_test.py @@ -210,7 +210,7 @@ def test_writer(self): self.assertTrue(np.allclose(wtbl.CellData[i], wrd.CellData[i])) def test_sgems_grid_writer_no_data(self): - grid = pyvista.ImageData((10, 10, 10), (2, 2, 2)) + grid = pyvista.ImageData(dimensions=(10, 10, 10), spacing=(2, 2, 2)) writer = WriteImageDataToSGeMS() filename = os.path.join(self.test_dir, 'test-writer-no-data.dat') writer.SetFileName(filename)