| ============================= test session starts ============================== |
| platform linux -- Python 3.11.15, pytest-8.4.2, pluggy-1.6.0 |
| rootdir: /root/autodl-tmp/hsc_tta_eeg/repo |
| configfile: pyproject.toml |
| testpaths: tests |
| plugins: zarr-3.1.6, cov-6.3.0 |
| collected 25 items |
|
|
| tests/test_action_selection.py . [ 4%] |
| tests/test_actions.py . [ 8%] |
| tests/test_cache_resume.py . [ 12%] |
| tests/test_conformal_quantile.py .. [ 20%] |
| tests/test_dataset_adapters.py . [ 24%] |
| tests/test_end_to_end_mock.py .. [ 32%] |
| tests/test_episode_integrity.py .. [ 40%] |
| tests/test_metrics.py . [ 44%] |
| tests/test_mi_event_mapping.py . [ 48%] |
| tests/test_no_future_leakage.py . [ 52%] |
| tests/test_prediction_sets.py ... [ 64%] |
| tests/test_risk_predictor.py . [ 68%] |
| tests/test_schema.py . [ 72%] |
| tests/test_sleep_label_mapping.py ... [ 84%] |
| tests/test_subject_splits.py ... [ 96%] |
| tests/test_within_subject_bound.py . [100%] |
|
|
| =============================== warnings summary =============================== |
| tests/test_conformal_quantile.py::test_conservative_fallback_when_k_exceeds_m |
| /root/autodl-tmp/hsc_tta_eeg/repo/src/hsc_tta/certification/core.py:51: RuntimeWarning: finite-sample order exceeds calibration size; using q=1 |
| warnings.warn("finite-sample order exceeds calibration size; using q=1", RuntimeWarning) |
|
|
| -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html |
| ================================ tests coverage ================================ |
| _______________ coverage: platform linux, python 3.11.15-final-0 _______________ |
|
|
| Name Stmts Miss Cover Missing |
| ------------------------------------------------------------------------ |
| src/hsc_tta/__init__.py 1 0 100% |
| src/hsc_tta/actions/__init__.py 4 0 100% |
| src/hsc_tta/actions/base.py 5 0 100% |
| src/hsc_tta/actions/entropy_adapter.py 18 2 89% 19, 25 |
| src/hsc_tta/actions/no_tta.py 12 2 83% 12, 16 |
| src/hsc_tta/actions/t3a.py 32 2 94% 19, 35 |
| src/hsc_tta/certification/__init__.py 2 0 100% |
| src/hsc_tta/certification/core.py 46 5 89% 17, 19, 42, 44, 48 |
| src/hsc_tta/data/__init__.py 5 0 100% |
| src/hsc_tta/data/base.py 53 19 64% 40, 46, 52-62, 66-71 |
| src/hsc_tta/data/cap.py 21 9 57% 18-26 |
| src/hsc_tta/data/download.py 63 63 0% 1-75 |
| src/hsc_tta/data/eegmmidb.py 20 8 60% 16-17, 20, 23-27 |
| src/hsc_tta/data/hmc.py 21 9 57% 16-23, 25 |
| src/hsc_tta/episodes/__init__.py 2 0 100% |
| src/hsc_tta/episodes/core.py 24 1 96% 15 |
| src/hsc_tta/metrics/__init__.py 2 0 100% |
| src/hsc_tta/metrics/core.py 25 2 92% 14, 39 |
| src/hsc_tta/prediction_sets/__init__.py 2 0 100% |
| src/hsc_tta/prediction_sets/core.py 38 4 89% 10, 12, 22, 33 |
| src/hsc_tta/preprocessing/__init__.py 4 0 100% |
| src/hsc_tta/preprocessing/annotations.py 47 5 89% 20, 41-44 |
| src/hsc_tta/preprocessing/channels.py 15 11 27% 7-9, 13-20 |
| src/hsc_tta/preprocessing/pipeline.py 62 51 18% 14-19, 23-25, 29-50, 54-73 |
| src/hsc_tta/preprocessing/signal.py 19 13 32% 9-18, 22-24 |
| src/hsc_tta/preprocessing/storage.py 26 0 100% |
| src/hsc_tta/risk_prediction/__init__.py 2 0 100% |
| src/hsc_tta/risk_prediction/model.py 39 3 92% 14, 27, 34 |
| src/hsc_tta/schemas/__init__.py 3 0 100% |
| src/hsc_tta/schemas/mock.py 77 11 86% 67-77 |
| src/hsc_tta/schemas/models.py 30 0 100% |
| src/hsc_tta/selection/__init__.py 2 0 100% |
| src/hsc_tta/selection/core.py 20 3 85% 12, 14, 18 |
| src/hsc_tta/simulation/__init__.py 2 0 100% |
| src/hsc_tta/simulation/core.py 48 2 96% 44-45 |
| src/hsc_tta/splits/__init__.py 2 0 100% |
| src/hsc_tta/splits/core.py 69 10 86% 37-40, 47, 53, 58, 62, 73, 89 |
| src/hsc_tta/utils/__init__.py 2 2 0% 1-3 |
| src/hsc_tta/utils/common.py 22 22 0% 1-30 |
| ------------------------------------------------------------------------ |
| TOTAL 887 259 71% |
| ======================== 25 passed, 1 warning in 5.32s ========================= |
|
|