Merge pull request #347 from rachmadaniHaryono/feature/fix-cleardb-test
Feature/fix cleardb test
This commit is contained in:
commit
f316f9b980
@ -582,11 +582,7 @@ class TestBukuDb(unittest.TestCase):
|
|||||||
with mock.patch('builtins.input', return_value='y'):
|
with mock.patch('builtins.input', return_value='y'):
|
||||||
self.bdb.cleardb()
|
self.bdb.cleardb()
|
||||||
# assert table has been dropped
|
# assert table has been dropped
|
||||||
with self.assertRaises(sqlite3.OperationalError) as ctx_man:
|
assert self.bdb.get_rec_by_id(0) is None
|
||||||
self.bdb.get_rec_by_id(0)
|
|
||||||
|
|
||||||
err_msg = str(ctx_man.exception)
|
|
||||||
self.assertEqual(err_msg, 'no such table: bookmarks')
|
|
||||||
|
|
||||||
# @unittest.skip('skipping')
|
# @unittest.skip('skipping')
|
||||||
def test_replace_tag(self):
|
def test_replace_tag(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user