fix: test: import buku on test function

This commit is contained in:
rachmadaniHaryono 2021-01-11 15:34:19 +08:00
parent 1667d55be9
commit 47c2f365df

View File

@ -25,7 +25,6 @@ import yaml
from hypothesis import example, given, settings
from hypothesis import strategies as st
import buku
from buku import BukuDb, parse_tags, prompt
logging.basicConfig() # you need to initialize logging, otherwise you will not see anything from vcrpy
@ -1062,6 +1061,7 @@ def test_delete_rec_on_non_integer(
setup, tmp_path, monkeypatch, kwargs, exp_res, raise_error
):
"""test delete rec on non integer arg."""
import buku
bdb = BukuDb(dbfile=tmp_path / "tmp.db")
for bookmark in TEST_BOOKMARKS: