eric7/Testing/__init__.py

branch
unittest
changeset 9074
1afb90182258
parent 9066
a219ade50f7c
child 9089
b48a6d0f6309
--- a/eric7/Testing/__init__.py	Wed May 18 09:19:09 2022 +0200
+++ b/eric7/Testing/__init__.py	Wed May 18 10:54:32 2022 +0200
@@ -7,3 +7,28 @@
 Package implementing testing functionality and interface to various test
 frameworks.
 """
+
+from .Interfaces import FrameworkNames
+
+
+def supportedLanguages():
+    """
+    Function to get a list of supported programming languages.
+    
+    @return list of supported programming languages
+    @rtype list of str
+    """
+    return list(FrameworkNames.keys())
+
+
+def isLanguageSupported(language):
+    """
+    Function to check, if the given programming language is supported by any
+    testing framework.
+    
+    @param language programming language
+    @type str
+    @return flag indicating support
+    @rtype bool
+    """
+    return language in FrameworkNames.keys()

eric ide

mercurial