Skip to content

Commit

Permalink
test: Check updated subwf content
Browse files Browse the repository at this point in the history
  • Loading branch information
jvfe committed Dec 2, 2024
1 parent 17dca8d commit c7b7567
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/subworkflows/test_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit c7b7567

Please sign in to comment.