... | ... | @@ -24,11 +24,12 @@ Each processing feature should come with a unit test. |
|
|
|
|
|
* Unit tests are located in the same module as the processing feature. For example, unit tests for pre-processing are in `nabu.preproc.tests`.
|
|
|
* The feature is tested against a reference implementation (ex. tomopy). This reference implementation can either be put in `nabu.thirdparty` or in the unit test file itself if not needed elsewhere.
|
|
|
* The unit test should use the Python module `pytest` or `unittest`.
|
|
|
|
|
|
The unit test is likely to need data. There are two options:
|
|
|
- The data can either be created (synthetic data). In this case, it must be created in a way that the result is exactly known and reproducible (see the flatfield tests)
|
|
|
- Or, the data can be "real data" (with proper permissions). It is hosted on "edna-site", and must use `nabu.testutils.get_data` (relying on `silx.resources.ExternalResources`).
|
|
|
- The unit test should use the Python module `pytest` or `unittest`.
|
|
|
|
|
|
|
|
|
|
|
|
### Application Component (optional)
|
... | ... | |