diff --git a/test/test_datasync.py b/test/test_datasync.py index 45ce3b1..cac0a29 100644 --- a/test/test_datasync.py +++ b/test/test_datasync.py @@ -44,6 +44,7 @@ class TestDabDataSync(unittest.TestCase): nextcloud_pwd = pwd_file.read() else: raise RuntimeError("NextCloud pwd file not found") + files = glob.glob(str(testdir_path / "*.json")) files += glob.glob(str(testdir_path / "*.json")) for file in files: @@ -61,6 +62,19 @@ class TestDabDataSync(unittest.TestCase): shutil.rmtree(testdir_path / "test_data", ignore_errors=True) shutil.rmtree(testdir_path / "test_data2", ignore_errors=True) + files = glob.glob(str(testdir_path / "*.json")) + files += glob.glob(str(testdir_path / "*.json")) + for file in files: + with open(file) as f: + data = json.load(f) + try: + data["Args"]["FSSync_NextCloud_Password"]["value"] = "" + except Exception: + pass + os.remove(file) + with open(file, "w") as f: + json.dump(data, f, sort_keys=True, indent=4) + def test_version(self): self.assertNotEqual(dabdatasync.__version__, "?.?.?") diff --git a/test/test_manifest_nextcloud.json b/test/test_manifest_nextcloud.json index c7e672b..78aa0e2 100644 --- a/test/test_manifest_nextcloud.json +++ b/test/test_manifest_nextcloud.json @@ -239,7 +239,7 @@ }, "FSSync_NextCloud_Password": { "type": "STRING", - "value": "F3P8m-nQHik-NSmb2-mnFEF-s85RE" + "value": "" }, "FSSync_NextCloud_Path": { "type": "STRING", diff --git a/test/test_manifest_nextcloud_disabled.json b/test/test_manifest_nextcloud_disabled.json index 7a27b72..0783e5d 100644 --- a/test/test_manifest_nextcloud_disabled.json +++ b/test/test_manifest_nextcloud_disabled.json @@ -11,7 +11,7 @@ }, "FSSync_NextCloud_Password": { "type": "STRING", - "value": "F3P8m-nQHik-NSmb2-mnFEF-s85RE" + "value": "" }, "FSSync_NextCloud_Path": { "type": "STRING",