kreshuklab / plant-seg

A tool for cell instance aware segmentation in densely packed 3D volumetric images
https://kreshuklab.github.io/plant-seg/
MIT License
89 stars 30 forks source link

Test: Fix always-skipped test and misleading name #262

Closed qin-yu closed 1 month ago

qin-yu commented 1 month ago
$ pytest
============================= test session starts ==============================
platform linux -- Python 3.11.9, pytest-8.2.1, pluggy-1.5.0
PyQt5 5.15.9 -- Qt runtime 5.15.8 -- Qt compiled 5.15.8
rootdir: /g/kreshuk/yu/repositories/plant-seg-doc
plugins: napari-plugin-engine-0.2.0, npe2-0.7.5, napari-0.4.19.post1, anyio-4.2.0, qt-4.4.0, xdist-3.5.0
collected 32 items                                                             

tests/test_bioimageio.py ...                                             [  9%]
tests/test_data_processing.py ........                                   [ 34%]
tests/test_io_zarr.py .....                                              [ 50%]
tests/test_model.py ...                                                  [ 59%]
tests/test_model_zoo.py .                                                [ 62%]
tests/test_network_predictions.py ..                                     [ 68%]
tests/test_pipeline_executor.py ...                                      [ 78%]
tests/test_widget_preprocessing.py .......                               [100%]

=============================== warnings summary ===============================
../../miniconda3/envs/plant-seg-bioimage-io/lib/python3.11/site-packages/jupyter_client/connect.py:22
  /g/kreshuk/yu/miniconda3/envs/plant-seg-bioimage-io/lib/python3.11/site-packages/jupyter_client/connect.py:22: DeprecationWarning: Jupyter is migrating its paths to use standard platformdirs
  given by the platformdirs library.  To remove this warning and
  see the appropriate new directories, set the environment variable
  `JUPYTER_PLATFORM_DIRS=1` and then run `jupyter --paths`.
  The use of platformdirs will be the default in `jupyter_core` v6
    from jupyter_core.paths import jupyter_data_dir, jupyter_runtime_dir, secure_write

tests/test_data_processing.py::TestDataProcessing::test_preprocessing_default_voxel_size
  /g/kreshuk/yu/repositories/plant-seg-doc/plantseg/io/h5.py:22: RuntimeWarning: Voxel size not found, returning default [1.0, 1.0. 1.0]
    warnings.warn('Voxel size not found, returning default [1.0, 1.0. 1.0]', RuntimeWarning)

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
================== 32 passed, 2 warnings in 81.70s (0:01:21) ===================