mirror of https://github.com/kianby/stacosys
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
432 B
Python
21 lines
432 B
Python
#!/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
|