src/eric7/Testing/__init__.py

Thu, 07 Jul 2022 11:23:56 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Thu, 07 Jul 2022 11:23:56 +0200
branch
eric7
changeset 9209
b99e7fd55fd3
parent 9089
eric7/Testing/__init__.py@b48a6d0f6309
child 9221
bf71ee032bb4
permissions
-rw-r--r--

Reorganized the project structure to use the source layout in order to support up-to-date build systems with "pyproject.toml".

# -*- 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