eric7/Utilities/__init__.py

branch
unittest
changeset 9066
a219ade50f7c
parent 9027
f259edcf185a
child 9072
8d3ae97ee666
--- a/eric7/Utilities/__init__.py	Mon May 16 17:22:43 2022 +0200
+++ b/eric7/Utilities/__init__.py	Mon May 16 19:46:51 2022 +0200
@@ -1304,15 +1304,18 @@
         return volumeDirectory
 
 
+# TODO: rename to getTestFileNames and add a name beginning with 'test_'
 def getTestFileName(fn):
     """
-    Function to build the filename of a unittest file.
+    Function to build the filename of a test file.
+    
+    The filename for the test file is built by prepending
+    the string "test" to the file name passed into this function.
     
-    The filename for the unittest file is built by prepending
-    the string "test" to the filename passed into this function.
-    
-    @param fn filename basis to be used for the unittest filename (string)
-    @return filename of the corresponding unittest file (string)
+    @param fn file name basis to be used for the test file name
+    @type str
+    @return file name of the corresponding test file
+    @rtype str
     """
     dn, fn = os.path.split(fn)
     return os.path.join(dn, "test{0}".format(fn))

eric ide

mercurial