Skip to content

Commit

Permalink
fix: fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
clintval committed Dec 23, 2024
1 parent 5aaf7e0 commit 808c2bd
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tests/fgpyo/sam/test_template_iterator.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,19 @@ def test_template_init_function() -> None:

def test_all_r1_and_all_r2() -> None:
builder: SamBuilder = SamBuilder()
(r1, r2) = builder.add_pair(chrom="chr1", start1=1, start2=2)
(r1_secondary, r2_secondary) = builder.add_pair(chrom="chr1", start1=10, start2=12)
(r1, r2) = builder.add_pair(name="x", chrom="chr1", start1=1, start2=2)
(r1_secondary, r2_secondary) = builder.add_pair(name="x", chrom="chr1", start1=10, start2=12)
r1_secondary.is_secondary = True
r2_secondary.is_secondary = True
(r1_supplementary, r2_supplementary) = builder.add_pair(chrom="chr1", start1=4, start2=6)
(r1_supplementary, r2_supplementary) = builder.add_pair(
name="x", chrom="chr1", start1=4, start2=6
)
r1_supplementary.is_supplementary = True
r2_supplementary.is_supplementary = True

template = Template.build(builder.to_unsorted_list())
expected = Template(
name="x",
r1=r1,
r2=r2,
r1_secondaries=[r1_secondary],
Expand Down

0 comments on commit 808c2bd

Please sign in to comment.