diff options
author | Arun Isaac | 2025-09-02 11:12:45 +0100 |
---|---|---|
committer | Arun Isaac | 2025-09-02 11:27:49 +0100 |
commit | 5fb407f65c2714e589bb912c0f62cd79f7311a50 (patch) | |
tree | bacbea0690a433417f5425c134f92d0c3fc4e221 /tests | |
parent | b300727c1881a591a24f39a3730810f93bd43245 (diff) | |
download | pyhegp-5fb407f65c2714e589bb912c0f62cd79f7311a50.tar.gz pyhegp-5fb407f65c2714e589bb912c0f62cd79f7311a50.tar.lz pyhegp-5fb407f65c2714e589bb912c0f62cd79f7311a50.zip |
Suffix CLI subcommand functions with _command.
We distinguish CLI subcommand functions using the _command suffix. This way, we don't have to concoct weird names for the actual workhorse functions. To remain consistent, we also suffix _command to the command testing functions.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_pyhegp.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_pyhegp.py b/tests/test_pyhegp.py index 0a62ad1..6200d0a 100644 --- a/tests/test_pyhegp.py +++ b/tests/test_pyhegp.py @@ -50,7 +50,7 @@ def test_pool_stats(pools): and pooled_stats.std == approx(np.std(combined_pool, axis=0, ddof=1), rel=1e-6)) -def test_encrypt(tmp_path): +def test_encrypt_command(tmp_path): shutil.copy("test-data/encrypt-test-genotype.tsv", tmp_path) ciphertext = tmp_path / "encrypt-test-genotype.tsv.hegp" result = CliRunner().invoke(main, ["encrypt", @@ -124,7 +124,7 @@ def test_conservation_of_solutions(genotype, phenotype): == np.linalg.solve(hegp_encrypt(genotype, key), hegp_encrypt(phenotype, key))) -def test_pool(tmp_path): +def test_pool_command(tmp_path): columns = ["chromosome", "position", "reference", "mean", "std"] complete_summary = tmp_path / "complete-summary" result = CliRunner().invoke(main, ["pool", |