From 92727365d1e3fc67b66278fd7cbcda77dd27c09e Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Mon, 4 Aug 2025 12:40:31 +0100 Subject: 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. --- tests/test_pyhegp.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'tests/test_pyhegp.py') 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): -- cgit 1.4.1