Merge pull request #132 from mgaitan/fix_drop_column
drop_column fails with sqlite
This commit is contained in:
commit
b393ebb54a
@ -314,6 +314,10 @@ class TableTestCase(unittest.TestCase):
|
|||||||
assert len(list(cols)) == 4, 'column count mismatch'
|
assert len(list(cols)) == 4, 'column count mismatch'
|
||||||
assert 'date' in cols and 'temperature' in cols and 'place' in cols
|
assert 'date' in cols and 'temperature' in cols and 'place' in cols
|
||||||
|
|
||||||
|
def test_drop_column(self):
|
||||||
|
self.tbl.drop_column('date')
|
||||||
|
assert 'date' not in self.tbl.columns
|
||||||
|
|
||||||
def test_iter(self):
|
def test_iter(self):
|
||||||
c = 0
|
c = 0
|
||||||
for row in self.tbl:
|
for row in self.tbl:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user