vtt/test/test_db.py
evilchili 7aa6f03d5d Import pwic as source, add overrides
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
2025-09-21 14:56:05 -07:00

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"]