fix: test: empty third row
This commit is contained in:
parent
cd302c45ac
commit
40c1a90147
2
buku
2
buku
@ -2812,7 +2812,7 @@ def convert_bookmark_set(
|
|||||||
out += (' <DT><A HREF="%s" ADD_DATE="%s" LAST_MODIFIED="%s"' % (row[1], timestamp, timestamp))
|
out += (' <DT><A HREF="%s" ADD_DATE="%s" LAST_MODIFIED="%s"' % (row[1], timestamp, timestamp))
|
||||||
if row[3] != DELIM:
|
if row[3] != DELIM:
|
||||||
out += ' TAGS="' + row[3][1:-1] + '"'
|
out += ' TAGS="' + row[3][1:-1] + '"'
|
||||||
out += '>' + row[2] + '</A>\n'
|
out += '>' + row[2] if row[2] else '' + '</A>\n'
|
||||||
if row[4] != '':
|
if row[4] != '':
|
||||||
out += ' <DD>' + row[4] + '\n'
|
out += ' <DD>' + row[4] + '\n'
|
||||||
count += 1
|
count += 1
|
||||||
|
@ -750,6 +750,7 @@ def test_convert_bookmark_set(export_type, exp_res, monkeypatch):
|
|||||||
import buku
|
import buku
|
||||||
bms = [
|
bms = [
|
||||||
(1, 'htttp://example.com', '', ',', '', 0),
|
(1, 'htttp://example.com', '', ',', '', 0),
|
||||||
|
(1, 'htttp://example.com', None, ',', '', 0),
|
||||||
(2, 'http://google.com', 'Google', ',', '', 0)]
|
(2, 'http://google.com', 'Google', ',', '', 0)]
|
||||||
if export_type == 'random':
|
if export_type == 'random':
|
||||||
with pytest.raises(AssertionError):
|
with pytest.raises(AssertionError):
|
||||||
|
Loading…
Reference in New Issue
Block a user