From 5fb407f65c2714e589bb912c0f62cd79f7311a50 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Tue, 2 Sep 2025 11:12:45 +0100 Subject: 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. --- tests/test_pyhegp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/test_pyhegp.py') 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", -- cgit 1.4.1