From c7b7567941afae3157d5974aefcf6adf6ef137b5 Mon Sep 17 00:00:00 2001 From: jvfe Date: Mon, 2 Dec 2024 14:58:05 -0300 Subject: [PATCH] test: Check updated subwf content --- tests/subworkflows/test_update.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/subworkflows/test_update.py b/tests/subworkflows/test_update.py index 5744e40cd4..423eb516bc 100644 --- a/tests/subworkflows/test_update.py +++ b/tests/subworkflows/test_update.py @@ -386,11 +386,18 @@ def test_update_subworkflow_across_orgs(self): # The fastq_trim_fastp_fastqc subworkflow contains the cross-org fastqc module, not the nf-core one install_obj.install("fastq_trim_fastp_fastqc") + patch_path = Path(self.pipeline_dir, "fastq_trim_fastp_fastqc.patch") update_obj = SubworkflowUpdate( self.pipeline_dir, remote_url=CROSS_ORGANIZATION_URL, + save_diff_fn=patch_path, update_all=False, update_deps=True, show_diff=False, ) assert update_obj.update("fastq_trim_fastp_fastqc") is True + + with open(patch_path) as fh: + content = fh.read() + assert "- fastqc_raw_html = FASTQC_RAW.out.html" in content + assert "+ ch_fastqc_raw_html = FASTQC_RAW.out.html" in content