Skip to content
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

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

Merged
merged 2 commits into from
Jun 1, 2024
Merged

Conversation

qin-yu
Copy link
Collaborator

@qin-yu qin-yu commented Jun 1, 2024

$ 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) ===================

@qin-yu qin-yu added the bug Something isn't working label Jun 1, 2024
@qin-yu qin-yu self-assigned this Jun 1, 2024
@qin-yu qin-yu marked this pull request as ready for review June 1, 2024 20:39
@qin-yu qin-yu merged commit 036ae9c into master Jun 1, 2024
1 check passed
@qin-yu qin-yu deleted the qy/fix-pytest-skip branch June 3, 2024 21:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tests for model zoo is always skipped
1 participant