about summary refs log tree commit diff
path: root/tests/test_pyhegp.py
diff options
context:
space:
mode:
authorArun Isaac2025-09-02 11:12:45 +0100
committerArun Isaac2025-09-02 11:27:49 +0100
commit5fb407f65c2714e589bb912c0f62cd79f7311a50 (patch)
treebacbea0690a433417f5425c134f92d0c3fc4e221 /tests/test_pyhegp.py
parentb300727c1881a591a24f39a3730810f93bd43245 (diff)
downloadpyhegp-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/test_pyhegp.py')
-rw-r--r--tests/test_pyhegp.py4
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",