============================= test session starts ==============================
platform darwin -- Python 3.13.9, pytest-9.0.2, pluggy-1.5.0 -- /Users/architsharma/miniconda3/bin/python3.13
cachedir: .pytest_cache
rootdir: /private/tmp/ownmy-releases/medical-ocr
configfile: pyproject.toml
plugins: anyio-4.12.1, cov-7.1.0
collecting ... collected 5 items

tests/test_filters.py::test_filters_module_imports PASSED                [ 20%]
tests/test_filters.py::test_utils_module_imports FAILED                  [ 40%]
tests/test_filters.py::test_models_module_imports PASSED                 [ 60%]
tests/test_filters.py::test_ocr_config_has_required_keys FAILED          [ 80%]
tests/test_filters.py::test_medical_vocabulary_not_empty PASSED          [100%]

=================================== FAILURES ===================================
__________________________ test_utils_module_imports ___________________________

    def test_utils_module_imports():
        """utils.py must import cleanly."""
>       import utils  # noqa: F401
        ^^^^^^^^^^^^

tests/test_filters.py:16: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

    from __future__ import annotations
    import numpy as np
>   import cv2
E   ModuleNotFoundError: No module named 'cv2'

src/utils.py:3: ModuleNotFoundError
______________________ test_ocr_config_has_required_keys _______________________

    def test_ocr_config_has_required_keys():
        """OCR config must define supported output formats."""
        import ocr_config as cfg
        # Should define at least one supported format
        has_formats = (
            hasattr(cfg, "SUPPORTED_FORMATS")
            or hasattr(cfg, "OUTPUT_FORMATS")
            or hasattr(cfg, "EXPORT_FORMATS")
            or hasattr(cfg, "DEFAULT_ENGINE")
        )
>       assert has_formats, "ocr_config must define supported formats or engine config"
E       AssertionError: ocr_config must define supported formats or engine config
E       assert False

tests/test_filters.py:38: AssertionError
=========================== short test summary info ============================
FAILED tests/test_filters.py::test_utils_module_imports - ModuleNotFoundError...
FAILED tests/test_filters.py::test_ocr_config_has_required_keys - AssertionEr...
========================= 2 failed, 3 passed in 0.70s ==========================
