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
82784dc45d
commit
2388a16fd2
1 changed files with 4 additions and 4 deletions
|
@ -413,7 +413,7 @@ def test_backup_with_different_output_directory(mocker):
|
||||||
# Create the backup
|
# Create the backup
|
||||||
with message(mocker, "backup_created"):
|
with message(mocker, "backup_created"):
|
||||||
backup_create(
|
backup_create(
|
||||||
system=["conf_ssh"],
|
system=["conf_ynh_settings"],
|
||||||
apps=None,
|
apps=None,
|
||||||
output_directory="/opt/test_backup_output_directory",
|
output_directory="/opt/test_backup_output_directory",
|
||||||
name="backup",
|
name="backup",
|
||||||
|
@ -436,7 +436,7 @@ def test_backup_using_copy_method(mocker):
|
||||||
# Create the backup
|
# Create the backup
|
||||||
with message(mocker, "backup_created"):
|
with message(mocker, "backup_created"):
|
||||||
backup_create(
|
backup_create(
|
||||||
system=["conf_nginx"],
|
system=["conf_ynh_settings"],
|
||||||
apps=None,
|
apps=None,
|
||||||
output_directory="/opt/test_backup_output_directory",
|
output_directory="/opt/test_backup_output_directory",
|
||||||
methods=["copy"],
|
methods=["copy"],
|
||||||
|
@ -675,9 +675,9 @@ def test_backup_binds_are_readonly(mocker, monkeypatch):
|
||||||
def custom_mount_and_backup(self):
|
def custom_mount_and_backup(self):
|
||||||
self._organize_files()
|
self._organize_files()
|
||||||
|
|
||||||
confssh = os.path.join(self.work_dir, "conf/ssh")
|
conf = os.path.join(self.work_dir, "conf/")
|
||||||
output = subprocess.check_output(
|
output = subprocess.check_output(
|
||||||
"touch %s/test 2>&1 || true" % confssh,
|
"touch %s/test 2>&1 || true" % conf,
|
||||||
shell=True,
|
shell=True,
|
||||||
env={"LANG": "en_US.UTF-8"},
|
env={"LANG": "en_US.UTF-8"},
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Reference in a new issue