1
0
mirror of https://github.com/gsi-upm/senpy synced 2025-08-23 18:12:20 +00:00

Improve error handling

This commit is contained in:
J. Fernando Sánchez
2018-01-18 13:25:20 +01:00
parent dcaaa591b7
commit 23c88d0acc
2 changed files with 9 additions and 19 deletions

View File

@@ -182,8 +182,7 @@ class ExtensionsTest(TestCase):
analyse(self.senpy, input='nothing', algorithm='MOCK')
assert False
except Exception as ex:
assert 'generic exception on analysis' in ex['message']
assert ex['status'] == 500
assert 'generic exception on analysis' in str(ex)
def test_filtering(self):
""" Filtering plugins """