Make test actually fail on for unfixed behaviour

This commit is contained in:
baztian
2020-06-02 14:43:00 +02:00
parent b662b14e01
commit beb116875b
+1 -1
View File
@@ -62,7 +62,7 @@ class MockTest(unittest.TestCase):
cursor = self.conn.cursor() cursor = self.conn.cursor()
cursor.execute("dummy stmt") cursor.execute("dummy stmt")
result = cursor.fetchone() result = cursor.fetchone()
self.assertEquals(result[0], 12345) self.assertEquals(str(result[0]), "12345")
def test_sql_exception_on_execute(self): def test_sql_exception_on_execute(self):
self.conn.jconn.mockExceptionOnExecute("java.sql.SQLException", "expected") self.conn.jconn.mockExceptionOnExecute("java.sql.SQLException", "expected")