Commit 2a8c83ec authored by Martino Bertoni's avatar Martino Bertoni 🌋
Browse files

added test for "failed" result attribute

parent dc72a532
...@@ -83,6 +83,7 @@ class TestSignaturizer(unittest.TestCase): ...@@ -83,6 +83,7 @@ class TestSignaturizer(unittest.TestCase):
self.assertTrue(math.isnan(comp)) self.assertTrue(math.isnan(comp))
for comp in res.signature[2]: for comp in res.signature[2]:
self.assertFalse(math.isnan(comp)) self.assertFalse(math.isnan(comp))
self.assertTrue(all(res.failed == [False, True, False]))
def test_predict_global_remote(self): def test_predict_global_remote(self):
module = Signaturizer('GLOBAL') module = Signaturizer('GLOBAL')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment