Skip to content

test(damicore-distance): add unit tests for all modules - #21

Merged
enniolopes merged 2 commits into
mainfrom
feat/17-unit-tests-damicore-distance
Jun 4, 2026
Merged

test(damicore-distance): add unit tests for all modules#21
enniolopes merged 2 commits into
mainfrom
feat/17-unit-tests-damicore-distance

Conversation

@ReddyyZ

@ReddyyZ ReddyyZ commented May 25, 2026

Copy link
Copy Markdown
Collaborator

Closes #17

  • Delete test_example.py placeholder and clear conftest.py
  • Add test_compressors.py: covers get_compressed_size return value, compression level effect, and unsupported compressor error
  • Add test_io.py: covers get_files_from_directory, get_file_data, and export_ncd_to_csv (headers, values, and directory creation)
  • Add test_core.py: covers _ncd math edge cases, ncd_matrix symmetry and diagonal, and compute_distance_matrix with Pydantic input, JSON input, and unsupported algorithm

Test plan

  • make check passes (ruff + pyright strict)
  • make test passes (18/18 tests)

- Delete placeholder test_example.py
- Add test_compressors.py, test_io.py, and test_core.py (18 tests total)
- Clear conftest.py: no shared fixtures needed
@ReddyyZ
ReddyyZ requested a review from enniolopes May 25, 2026 16:41
@enniolopes
enniolopes merged commit 5db9509 into main Jun 4, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

add unit tests for damicore-distance

2 participants