diff options
author | Arun Isaac | 2025-08-04 12:40:31 +0100 |
---|---|---|
committer | Arun Isaac | 2025-08-06 22:40:41 +0100 |
commit | 92727365d1e3fc67b66278fd7cbcda77dd27c09e (patch) | |
tree | da98acd067d28aae09123a24b6527d757fe4bec8 /tests | |
parent | 9e2fbdb8141549cbaf4688e52f62fec0b720d8b8 (diff) | |
download | pyhegp-92727365d1e3fc67b66278fd7cbcda77dd27c09e.tar.gz pyhegp-92727365d1e3fc67b66278fd7cbcda77dd27c09e.tar.lz pyhegp-92727365d1e3fc67b66278fd7cbcda77dd27c09e.zip |
Add simple workflow.
* README.md (How to use): Indent down into "Joint/federated analysis with many data owners" section. [Simple data sharing]: New section. * doc/generate-images.sh: Add simple workflow. * doc/workflow.png: Rename to doc/joint-workflow.png. * doc/workflow.uml: Rename to doc/joint-workflow.uml. * doc/simple-workflow.png, doc/simple-workflow.uml: New files. * tests/test_pyhegp.py: Import pytest. (test_simple_workflow): New test. * test-data/genotype.tsv: New file.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_pyhegp.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/test_pyhegp.py b/tests/test_pyhegp.py index 0ddba99..52a6238 100644 --- a/tests/test_pyhegp.py +++ b/tests/test_pyhegp.py @@ -22,6 +22,7 @@ from click.testing import CliRunner from hypothesis import given, settings, strategies as st from hypothesis.extra.numpy import arrays, array_shapes import numpy as np +import pytest from pytest import approx from pyhegp.pyhegp import Stats, main, hegp_encrypt, hegp_decrypt, random_key, pool_stats, standardize, unstandardize @@ -104,6 +105,14 @@ def test_conservation_of_solutions(genotype, phenotype): == np.linalg.solve(hegp_encrypt(genotype, key), hegp_encrypt(phenotype, key))) +@pytest.mark.xfail +def test_simple_workflow(): + result = CliRunner().invoke(main, + ["encrypt", + "-o", "encrypted-genotype.tsv", + "test-data/genotype.tsv"]) + assert result.exit_code == 0 + def test_joint_workflow(tmp_path): runner = CliRunner() for i in range(4): |