src/eric7/Testing/__init__.py

Sun, 26 Feb 2023 12:44:03 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 26 Feb 2023 12:44:03 +0100
branch
mpy_network
changeset 9803
2ab3de60b51c
parent 9653
e67609152c5e
child 9654
7328efba128b
child 10373
093dcebe5ecb
permissions
-rw-r--r--

MicroPython
- fixed an issue checking, if the device data is available

# -*- coding: utf-8 -*-

# Copyright (c) 2022 - 2023 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