aboutsummaryrefslogtreecommitdiff
path: root/tests/r_qtl/test_r_qtl2_pheno.py
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-02-28 10:55:00 +0300
committerFrederick Muriuki Muriithi2024-02-28 10:55:00 +0300
commit9ab4316ee3c4d3068053c94334c64915514d8664 (patch)
tree0d8843b9ed6a6b461e007930a4e006fa89646fba /tests/r_qtl/test_r_qtl2_pheno.py
parentdfd855acbf302e2d3b323f292da27796305fac76 (diff)
downloadgn-uploader-9ab4316ee3c4d3068053c94334c64915514d8664.tar.gz
tests: Update unit tests: remove use of obsoleted functions.
Diffstat (limited to 'tests/r_qtl/test_r_qtl2_pheno.py')
-rw-r--r--tests/r_qtl/test_r_qtl2_pheno.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/tests/r_qtl/test_r_qtl2_pheno.py b/tests/r_qtl/test_r_qtl2_pheno.py
index d31ad54..54244fc 100644
--- a/tests/r_qtl/test_r_qtl2_pheno.py
+++ b/tests/r_qtl/test_r_qtl2_pheno.py
@@ -61,10 +61,15 @@ def test_parse_phenocovar_files(filepath, expected):
@pytest.mark.unit_test
@pytest.mark.parametrize(
- "filepath,expected",
+ "filepath,member,transposed,expected",
(("tests/r_qtl/test_files/test_pheno.zip",
+ "test_pheno.csv",
+ False,
("1", "2", "3", "4", "5")),
("tests/r_qtl/test_files/test_pheno_transposed.zip",
+ "test_pheno_transposed.csv",
+ True,
("1", "2", "3", "4", "5"))))
-def test_load_geno_samples(filepath, expected):
- assert sorted(rqtl2.load_pheno_samples(filepath)) == sorted(expected)
+def test_load_geno_samples(filepath, member, transposed, expected):
+ assert sorted(rqtl2.load_samples(
+ filepath, member, transposed)) == sorted(expected)