Propagate changes to user_create() function in other test modules

This commit is contained in:
Alexandre Aubin 2022-10-09 21:53:35 +02:00
parent e32fe7aa41
commit 42bcd5e6d3
4 changed files with 6 additions and 6 deletions

View file

@ -102,7 +102,7 @@ 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") user_create("alice", _get_maindomain(), "test123Ynh", fullname="Alice White")
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)

View file

@ -77,7 +77,7 @@ def setup_function(function):
if "with_permission_app_installed" in markers: if "with_permission_app_installed" in markers:
assert not app_is_installed("permissions_app") 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): with patch.object(os, "isatty", return_value=False):
install_app("permissions_app_ynh", "/urlpermissionapp" "&admin=alice") install_app("permissions_app_ynh", "/urlpermissionapp" "&admin=alice")
assert app_is_installed("permissions_app") assert app_is_installed("permissions_app")

View file

@ -19,8 +19,8 @@ def setup_function(function):
if os.system("systemctl is-active slapd >/dev/null") != 0: if os.system("systemctl is-active slapd >/dev/null") != 0:
os.system("systemctl start slapd && sleep 3") os.system("systemctl start slapd && sleep 3")
user_create("alice", "Alice", "White", maindomain, "Yunohost", admin=True) user_create("alice", maindomain, "Yunohost", admin=True, fullname="Alice White")
user_create("bob", "Bob", "Snow", maindomain, "test123Ynh") user_create("bob", maindomain, "test123Ynh", fullname="Bob Snow")
def teardown_function(): def teardown_function():

View file

@ -158,8 +158,8 @@ def setup_function(function):
socket.getaddrinfo = new_getaddrinfo socket.getaddrinfo = new_getaddrinfo
user_create("alice", "Alice", "White", maindomain, dummy_password) user_create("alice", maindomain, dummy_password, fullname="Alice White")
user_create("bob", "Bob", "Snow", maindomain, dummy_password) user_create("bob", maindomain, dummy_password, fullname="Bob Snow")
_permission_create_with_dummy_app( _permission_create_with_dummy_app(
permission="wiki.main", permission="wiki.main",
url="/", url="/",