Improve unit-tests (#1479)

* tests were failing on windows and macos
* improve coverage
This commit is contained in:
Alexander Kukushkin
2020-04-09 10:34:35 +02:00
committed by GitHub
parent 369a93ce2a
commit 27cda08ece
5 changed files with 32 additions and 15 deletions
+2 -2
View File
@@ -110,8 +110,8 @@ def validate_data_dir(data_dir):
bin_dir = schema.data.get("postgresql", {}).get("bin_dir", None)
major_version = get_major_version(bin_dir)
if pgversion != major_version:
raise ConfigParseError("data_dir directory postgresql version ({}) doesn't match"
"with 'postgres --version' output ({})".format(pgversion, major_version))
raise ConfigParseError("data_dir directory postgresql version ({}) doesn't match with "
"'postgres --version' output ({})".format(pgversion, major_version))
return True