src/eric7/Testing/__init__.py

branch
eric7
changeset 9209
b99e7fd55fd3
parent 9089
b48a6d0f6309
child 9221
bf71ee032bb4
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/eric7/Testing/__init__.py	Thu Jul 07 11:23:56 2022 +0200
@@ -0,0 +1,34 @@
+# -*- coding: utf-8 -*-
+
+# Copyright (c) 2022 Detlev Offenbach <detlev@die-offenbachs.de>
+#
+
+"""
+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

eric ide

mercurial