From f334114b6acc42f50810b84cc5bcdcd1b2a684bd Mon Sep 17 00:00:00 2001 From: Remi Cresson <remi.cresson@irstea.fr> Date: Thu, 2 Jun 2022 13:13:00 +0200 Subject: [PATCH] FIX, REFAC: use f-string and os.path.join() for paths concat --- tests/decloud_unittest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/decloud_unittest.py b/tests/decloud_unittest.py index 0823b5e..657ea08 100644 --- a/tests/decloud_unittest.py +++ b/tests/decloud_unittest.py @@ -7,7 +7,7 @@ import filecmp import gdal import otbApplication as otb from abc import ABC -from decloud.core.system import get_env_var, pathify, basename +from decloud.core.system import get_env_var, basename class DecloudTest(ABC, unittest.TestCase): @@ -15,7 +15,7 @@ class DecloudTest(ABC, unittest.TestCase): DECLOUD_DATA_DIR = get_env_var("DECLOUD_DATA_DIR") def get_path(self, path): - return pathify(self.DECLOUD_DATA_DIR) + path + return os.path.join(self.DECLOUD_DATA_DIR, path) def compare_images(self, image, reference, mae_threshold=0.01): -- GitLab