backup sqlite db to json with tinyDB
This commit is contained in:
parent
9b578637ba
commit
ab54ab981a
2 changed files with 10 additions and 34 deletions
|
|
@ -1,20 +0,0 @@
|
|||
#!/usr/bin/python
|
||||
# -*- coding: UTF-8 -*-
|
||||
|
||||
import pytest
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def persistence():
|
||||
from stacosys.conf import config
|
||||
|
||||
config.params = {"main.db_file": None}
|
||||
from stacosys.core import persistence
|
||||
|
||||
return persistence.Persistence()
|
||||
|
||||
|
||||
def test_init_persistence(persistence):
|
||||
assert persistence is not None
|
||||
assert persistence.get_db() is not None
|
||||
assert persistence.get_table_comments() is not None
|
||||
Loading…
Add table
Add a link
Reference in a new issue