It's a plugin for pytest to easily test the VTK objects from VTK library
This Pytest plugin was generated with Cookiecutter along with @hackebrot's Cookiecutter-pytest-plugin template.
Support for testing vtk objects such as:
- vtkDoubleArray
- vtkFloatArray
- vtkIntArray
- vtkIdTypeArray
- vtkLongArray
- vtkShortArray
- vtkUnsignedCharArray
- vtkUnsignedIntArray
- vtkUnsignedLongArray
- vtkUnsignedLongLongArray
- vtkUnsignedShortArray
- vtkPoints
- vtkPointData
- vtkCharArray
- vtkStringArray
- vtkStructuredGrid
- vtkCellArray
To Do ----* Support to test: * vtkUnstructuredGrid * vtkPolyData * vtkRectilinearGrid * vtkUnicodeStringArray * vtkVariantArray * vtkBitArray * vtkSignedCharArray * vtkImageData * Support for image test * Add pytest-vtk package in conda-forge and also in Pypi
- vtk >= 7.0.0
- numpy
- pytest >= 3.1.1
(Not implemented yet) You can install "pytest-vtk" via pip from PyPI:
$ pip install pytest-vtk
Just call the assert_vtk
function and pass two VTK objects which will be compared.
Example:
assert_vtk(vtk_object1, vtk_object2)
The pytest-vtl plugin will raise an error if these two objects are different and also will show the differences.
Contributions are very welcome.
Distributed under the terms of the MIT license, "pytest-vtk" is free and open source software
If you encounter any problems, please file an issue along with a detailed description.