--- 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()