Source code for tests.test_dataimport
from magpie.data.testdata import brave_export_path, data_file_path
from magpie.tools import dataimport
from magpie.util import pprint
[docs]
def test_show_chrome_bookmarks():
"""Test importing Chrome bookmarks as a [`Folder`](#magpie.datamodel.Folder)
and print it."""
# FIXME We could check whether dumps from other browsers work as well
bookmarks = dataimport.process_bookmarks_file(data_file_path(brave_export_path),
origin='chrome',
root_path=['roots', 'bookmark_bar'])
pprint(bookmarks)