Browse Source

[Tests] Fix previous commit forgotten useless variable + fix comment in code

monf 8 years ago
parent
commit
59cd3858f4
2 changed files with 1 additions and 3 deletions
  1. 0 2
      Tests/test_utils.py
  2. 1 1
      kalliope/core/Utils/Utils.py

+ 0 - 2
Tests/test_utils.py

@@ -108,8 +108,6 @@ class TestUtils(unittest.TestCase):
         # touch the file
         open(path_to_test, 'a').close()
 
-        pp = Utils.get_real_file_path(file_name)
-
         self.assertEquals(Utils.get_real_file_path(file_name),
                           expected_result,
                           "Fail to match the /an/unknown/path/kalliope path")

+ 1 - 1
kalliope/core/Utils/Utils.py

@@ -151,7 +151,7 @@ class Utils(object):
                 1: os.getcwd() + os.sep + file_path_to_test,
                 2: "/etc/kalliope" + os.sep + file_path_to_test,
                 # In this case 'get_current_file_parent_parent_path' is corresponding to kalliope root path
-                # from /an/unknown/path/kalliope/core/Utils to /an/unknown/path/kalliope
+                # from /an/unknown/path/kalliope/kalliope/core/Utils to /an/unknown/path/kalliope/kalliope
                 3: cls.get_current_file_parent_parent_path(current_script_path) + os.sep + file_path_to_test
             }