Files
prodigy/tests/test_utils.py
Olamide Isreal 19fd443501
Some checks failed
ci / test (3.10) (push) Has been cancelled
ci / test (3.11) (push) Has been cancelled
ci / test (3.12) (push) Has been cancelled
ci / test (3.13) (push) Has been cancelled
ci / test (3.9) (push) Has been cancelled
Configure PRODIGY pipeline for WES execution with S3 and Harbor
2026-03-17 16:38:16 +01:00

22 lines
381 B
Python

import math
import tempfile
from pathlib import Path
from prodigy_prot.modules.utils import check_path, dg_to_kd
def test_check_path():
temp_f = tempfile.NamedTemporaryFile(delete=False)
result = check_path(temp_f.name)
assert result == temp_f.name
Path(temp_f.name).unlink()
def test_dg_to_kd():
assert math.isclose(dg_to_kd(0.0), 1.0, rel_tol=1e-9)