Skip to content

Commit

Permalink
added unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ypriverol committed Jan 26, 2021
1 parent c9dfe7d commit e772df8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pypgatk/ensembl/ensembl.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
import vcf
from Bio import SeqIO
from Bio.Seq import Seq
import sys

from yaml import add_path_resolver

from pypgatk.toolbox.general import ParameterConfiguration
Expand Down Expand Up @@ -660,7 +658,8 @@ def check_proteindb(self, input_fasta: str = None, add_stop_codon: bool = False,
print(" total number of sequences written was:", len(proteins))
print(" total number of proteins less than {} aminoacids: {}".format(num_aa, less))

def write_output(self, seq_id, desc, seqs, prots_fn):
@staticmethod
def write_output(seq_id, desc, seqs, prots_fn):
"""
write the orfs to the output file
:param seq_id: Sequence Accession
Expand Down
10 changes: 10 additions & 0 deletions pypgatk/tests/ensembl_tests.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import unittest


class MyTestCase(unittest.TestCase):
def test_something(self):
self.assertEqual(True, True)


if __name__ == '__main__':
unittest.main()

0 comments on commit e772df8

Please sign in to comment.