mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
+ Added Session class and global session object to aurweb.db, these are sessions created by sqlalchemy ORM's sessionmaker and will allow us to use declarative/imperative models. Signed-off-by: Kevin Morris <kevr@0cost.org>
13 lines
281 B
Python
13 lines
281 B
Python
from aurweb import config
|
|
|
|
|
|
def test_get():
|
|
assert config.get("options", "disable_http_login") == "0"
|
|
|
|
|
|
def test_getboolean():
|
|
assert not config.getboolean("options", "disable_http_login")
|
|
|
|
|
|
def test_getint():
|
|
assert config.getint("options", "disable_http_login") == 0
|