mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Propagate changes to user_create() function in other test modules
This commit is contained in:
parent
e32fe7aa41
commit
42bcd5e6d3
4 changed files with 6 additions and 6 deletions
|
@ -102,7 +102,7 @@ def config_app(request):
|
|||
|
||||
def test_app_config_get(config_app):
|
||||
|
||||
user_create("alice", "Alice", "White", _get_maindomain(), "test123Ynh")
|
||||
user_create("alice", _get_maindomain(), "test123Ynh", fullname="Alice White")
|
||||
|
||||
assert isinstance(app_config_get(config_app), dict)
|
||||
assert isinstance(app_config_get(config_app, full=True), dict)
|
||||
|
|
|
@ -77,7 +77,7 @@ def setup_function(function):
|
|||
|
||||
if "with_permission_app_installed" in markers:
|
||||
assert not app_is_installed("permissions_app")
|
||||
user_create("alice", "Alice", "White", maindomain, "test123Ynh")
|
||||
user_create("alice", maindomain, "test123Ynh", fullname="Alice White")
|
||||
with patch.object(os, "isatty", return_value=False):
|
||||
install_app("permissions_app_ynh", "/urlpermissionapp" "&admin=alice")
|
||||
assert app_is_installed("permissions_app")
|
||||
|
|
|
@ -19,8 +19,8 @@ def setup_function(function):
|
|||
if os.system("systemctl is-active slapd >/dev/null") != 0:
|
||||
os.system("systemctl start slapd && sleep 3")
|
||||
|
||||
user_create("alice", "Alice", "White", maindomain, "Yunohost", admin=True)
|
||||
user_create("bob", "Bob", "Snow", maindomain, "test123Ynh")
|
||||
user_create("alice", maindomain, "Yunohost", admin=True, fullname="Alice White")
|
||||
user_create("bob", maindomain, "test123Ynh", fullname="Bob Snow")
|
||||
|
||||
|
||||
def teardown_function():
|
||||
|
|
|
@ -158,8 +158,8 @@ def setup_function(function):
|
|||
|
||||
socket.getaddrinfo = new_getaddrinfo
|
||||
|
||||
user_create("alice", "Alice", "White", maindomain, dummy_password)
|
||||
user_create("bob", "Bob", "Snow", maindomain, dummy_password)
|
||||
user_create("alice", maindomain, dummy_password, fullname="Alice White")
|
||||
user_create("bob", maindomain, dummy_password, fullname="Bob Snow")
|
||||
_permission_create_with_dummy_app(
|
||||
permission="wiki.main",
|
||||
url="/",
|
||||
|
|
Loading…
Add table
Reference in a new issue