
This commit imports the latest source of the pwic module directly and modifies it just enough for it to be an importable module. Source: https://github.com/gitbra/pwic
10 lines
302 B
Python
10 lines
302 B
Python
from ttfrog import db
|
|
from ttfrog.pwic.pwic_admin import PwicConst
|
|
|
|
|
|
def test_db_init():
|
|
config = db.init({"SALT": "salt", "DB_DEFAULT_PORT": "012345"})
|
|
assert config.SALT == "salt"
|
|
assert config.DEFAULTS["port"] == "012345"
|
|
assert config.DEFAULTS["page"] == PwicConst.DEFAULTS["page"]
|