From b7cf30841f7146574c2d3c7d7a8298a595e2df89 Mon Sep 17 00:00:00 2001 From: rachmadaniHaryono Date: Mon, 10 Aug 2020 08:13:21 +0800 Subject: [PATCH] chg: test: test caplog for other inputs --- tests/test_bukuDb.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_bukuDb.py b/tests/test_bukuDb.py index 86ef0a3..95a340d 100644 --- a/tests/test_bukuDb.py +++ b/tests/test_bukuDb.py @@ -1060,6 +1060,8 @@ def test_update_rec_update_all_bookmark(caplog, read_in_retval): assert caplog.records[0].getMessage() == \ "update_rec query: " \ "\"UPDATE bookmarks SET tags = ?\", args: [',tags1,']" + else: + assert not caplog.records @pytest.mark.parametrize(