chg: test: remove unused fixture
This commit is contained in:
parent
961071eac5
commit
c51d454f2f
@ -686,16 +686,6 @@ def test_refreshdb(refreshdb_fixture, title_in, exp_res):
|
|||||||
assert from_db[2] == exp_res, 'from_db: {}'.format(from_db)
|
assert from_db[2] == exp_res, 'from_db: {}'.format(from_db)
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture
|
|
||||||
def test_print_db(tmp_path):
|
|
||||||
bdb = BukuDb(dbfile=tmp_path / 'tmp.db')
|
|
||||||
# clear all record first before testing
|
|
||||||
bdb.delete_rec_all()
|
|
||||||
bdb.add_rec
|
|
||||||
yield bdb
|
|
||||||
bdb.delete_rec(index=1)
|
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def test_print_caplog(caplog):
|
def test_print_caplog(caplog):
|
||||||
caplog.handler.records.clear()
|
caplog.handler.records.clear()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user