Skip to content

Commit 387a31f

Browse files
removed test code that was never executed. (#530)
1 parent da239d4 commit 387a31f

1 file changed

Lines changed: 5 additions & 27 deletions

File tree

tests/test_module_contig2.py

Lines changed: 5 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import pytest
33
from pydna.dseqrecord import Dseqrecord
44
from pydna.assembly import Assembly
5-
from pydna import contig
5+
66
from pydna._pretty import pretty_str
77
from pydna.amplify import pcr
88
from pydna.parsers import parse_primers
@@ -86,24 +86,6 @@ def test_contig_circular():
8686

8787
return cont.figure_mpl()
8888

89-
from unittest.mock import MagicMock
90-
91-
pp = MagicMock()
92-
93-
cont._repr_pretty_(pp, None)
94-
95-
pp.text.assert_called_with("Contig(o59)")
96-
97-
from Bio.Seq import Seq
98-
99-
from pydna.seqrecord import SeqRecord
100-
101-
arg = SeqRecord(Seq("aaa"))
102-
103-
import networkx as nx
104-
105-
contig.Contig.from_SeqRecord(arg, graph=nx.MultiDiGraph())
106-
10789

10890
def test_reverse_complement():
10991

@@ -314,14 +296,10 @@ def test_mpl3():
314296
fragment.name = target.strip()
315297
fragments.append(fragment)
316298

317-
asm = Assembly(fragments)
318-
319-
cps = asm.assemble_circular()
299+
asm3 = Assembly(fragments)
320300

321-
cp = cps[0]
322-
323-
return cp.figure_mpl()
301+
cps3 = asm3.assemble_circular()
324302

303+
cp3 = cps3[0]
325304

326-
if __name__ == "__main__":
327-
pytest.main([__file__, "-vv", "-s"])
305+
return cp3.figure_mpl()

0 commit comments

Comments
 (0)