Files

12 lines
393 B
Python
Raw Permalink Normal View History

from gfa_core.gene_family_scope import reference_search_roots
def test_reference_search_roots_reads_configured_root(monkeypatch, tmp_path) -> None:
reference_root = tmp_path / "references"
reference_root.mkdir()
monkeypatch.setenv("PLANTAI_REF_DATA_ROOT", str(reference_root))
roots = reference_search_roots(tmp_path / "input")
assert reference_root.resolve() in roots