Merge pull request #347 from rachmadaniHaryono/feature/fix-cleardb-test

Feature/fix cleardb test
This commit is contained in:
Arun Prakash Jana 2019-01-02 01:47:48 +05:30 committed by GitHub
commit f316f9b980
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -582,11 +582,7 @@ class TestBukuDb(unittest.TestCase):
with mock.patch('builtins.input', return_value='y'):
self.bdb.cleardb()
# assert table has been dropped
with self.assertRaises(sqlite3.OperationalError) as ctx_man:
self.bdb.get_rec_by_id(0)
err_msg = str(ctx_man.exception)
self.assertEqual(err_msg, 'no such table: bookmarks')
assert self.bdb.get_rec_by_id(0) is None
# @unittest.skip('skipping')
def test_replace_tag(self):