Skip to content

Commit

Permalink
Update tests to expect a percentage in the CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
althonos committed Nov 6, 2024
1 parent c24c970 commit 36567c5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
8 changes: 2 additions & 6 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,7 @@
import subprocess
import sys
from unittest import mock

try:
from os import fspath
except ImportError:
from builtins import str as fspath
from os import fspath

from Bio.SeqIO import read

Expand Down Expand Up @@ -43,7 +39,7 @@ def test_orthoani_cli(self):
args = ["-q", self.p1, "-r", self.p2]
retcode = self.shell(args)
self.assertEqual(retcode, 0)
self.assertEqual(self.stdout.getvalue(), "0.5725\n")
self.assertEqual(self.stdout.getvalue(), "57.25\n")

def test_return_code(self):
args = ["-q", fspath(self.data), "-r", self.p2]
Expand Down
6 changes: 1 addition & 5 deletions tests/test_orthoani.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,7 @@
import tempfile
import unittest
from unittest import mock

try:
from os import fspath
except ImportError:
from builtins import str as fspath
from os import fspath

from Bio.SeqRecord import SeqRecord
from Bio.SeqIO import read, parse
Expand Down

0 comments on commit 36567c5

Please sign in to comment.