fix: [test] Properly fail with error message

pull/620/head
Jakub Onderka 2023-07-02 10:15:32 +02:00
parent 79b700b2f5
commit 3bc58709e1
1 changed files with 1 additions and 1 deletions

View File

@ -183,7 +183,7 @@ class TestExpansions(unittest.TestCase):
try: try:
self.assertEqual(self.get_object(response), 'vulnerability') self.assertEqual(self.get_object(response), 'vulnerability')
except Exception: except Exception:
print(self.get_errors(response)) self.fail(self.get_errors(response))
def test_dbl_spamhaus(self): def test_dbl_spamhaus(self):
query = {"module": "dbl_spamhaus", "domain": "totalmateria.net"} query = {"module": "dbl_spamhaus", "domain": "totalmateria.net"}