Skip to content

Commit

Permalink
Fix warning in test_contig_stitcher
Browse files Browse the repository at this point in the history
  • Loading branch information
Donaim committed Dec 31, 2024
1 parent b3179a8 commit 88fbc97
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions micall/tests/test_contig_stitcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -1630,17 +1630,16 @@ def test_merge_intervals(intervals, expected):
assert merge_intervals(intervals) == expected


@dataclass
class TestMockAlignment:
r_st: int
r_ei: int


class MockAlignedContig:
@dataclass
class TestMockAlignment:
r_st: int
r_ei: int

def __init__(self, ref_name, group_ref, r_st, r_ei, name="contig"):
self.ref_name = ref_name
self.group_ref = group_ref
self.alignment = TestMockAlignment(r_st, r_ei)
self.alignment = MockAlignedContig.TestMockAlignment(r_st, r_ei)
self.name = name
self.id = id(self)

Expand Down

0 comments on commit 88fbc97

Please sign in to comment.