Improve coverage.

This commit is contained in:
Antoine Nguyen
2018-01-13 09:53:42 +01:00
parent e0aa745f7e
commit 3cebf2db1a
4 changed files with 93 additions and 67 deletions
+2 -2
View File
@@ -201,13 +201,13 @@ class AdminParametersForm(param_forms.AdminParametersForm):
if storage_dir:
if not os.path.isdir(storage_dir):
raise forms.ValidationError(
ugettext_lazy("Directory not found")
ugettext_lazy("Directory not found.")
)
code, output = exec_cmd("which openssl")
if code:
raise forms.ValidationError(
ugettext_lazy(
"openssl not found, please make sure it is installed")
"openssl not found, please make sure it is installed.")
)
return storage_dir