Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Commit

Permalink
Re-enable test_dbapi01 that was disabled by mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
kutsurak committed Dec 14, 2018
1 parent 44e2857 commit 2979506
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_dbapi01.py
Expand Up @@ -3,15 +3,15 @@
import numpy


class MultipleResultSets(object):
class TestMultipleResultSets(object):
def test_regular_selection(self, monetdblite_cursor):
monetdblite_cursor.execute('SELECT * FROM integers')
monetdblite_cursor.execute('SELECT * FROM integers')
result = monetdblite_cursor.fetchall()
assert result == [[0],[1],[2],[3],[4],[5],[6],[7],[8],[9]], "Incorrect result returned"
assert result == [[0], [1], [2], [3], [4], [5], [6], [7], [8], [9], [None]], "Incorrect result returned"

def test_numpy_selection(self, monetdblite_cursor):
monetdblite_cursor.execute('SELECT * FROM integers')
monetdblite_cursor.execute('SELECT * FROM integers')
result = monetdblite_cursor.fetchnumpy()
assert str(result) == str({'i': numpy.ma.masked_array(numpy.arange(10))}), "Incorrect result returned"
assert str(result) == str({'i': numpy.ma.masked_array(numpy.arange(11), [False]*10 + [True])}), "Incorrect result returned"

0 comments on commit 2979506

Please sign in to comment.