mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Fix tests
This commit is contained in:
parent
2f7ec5b368
commit
dfa021fbf7
1 changed files with 5 additions and 0 deletions
|
@ -19,6 +19,7 @@ from yunohost.app import (
|
||||||
app_config_set,
|
app_config_set,
|
||||||
app_ssowatconf,
|
app_ssowatconf,
|
||||||
)
|
)
|
||||||
|
from yunohost.user import user_create, user_delete
|
||||||
|
|
||||||
from yunohost.utils.error import YunohostError, YunohostValidationError
|
from yunohost.utils.error import YunohostError, YunohostValidationError
|
||||||
|
|
||||||
|
@ -101,6 +102,8 @@ def config_app(request):
|
||||||
|
|
||||||
def test_app_config_get(config_app):
|
def test_app_config_get(config_app):
|
||||||
|
|
||||||
|
user_create("alice", "Alice", "White", _get_maindomain(), "test123Ynh")
|
||||||
|
|
||||||
assert isinstance(app_config_get(config_app), dict)
|
assert isinstance(app_config_get(config_app), dict)
|
||||||
assert isinstance(app_config_get(config_app, full=True), dict)
|
assert isinstance(app_config_get(config_app, full=True), dict)
|
||||||
assert isinstance(app_config_get(config_app, export=True), dict)
|
assert isinstance(app_config_get(config_app, export=True), dict)
|
||||||
|
@ -108,6 +111,8 @@ def test_app_config_get(config_app):
|
||||||
assert isinstance(app_config_get(config_app, "main.components"), dict)
|
assert isinstance(app_config_get(config_app, "main.components"), dict)
|
||||||
assert app_config_get(config_app, "main.components.boolean") == "0"
|
assert app_config_get(config_app, "main.components.boolean") == "0"
|
||||||
|
|
||||||
|
user_delete("alice")
|
||||||
|
|
||||||
|
|
||||||
def test_app_config_nopanel(legacy_app):
|
def test_app_config_nopanel(legacy_app):
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue